Thread: [Ipsec-tools-devel] MIPv6 support (2)
Brought to you by:
mit_warlord,
netbsd
From: Francis D. <Fra...@en...> - 2005-10-29 15:07:32
|
Here is a patch for MIPv6 support in setkey. (some kernels support selection on the MH header type exactly as ICMPv6 type,code, BTW including in forwarding) Regards Fra...@en... *** src/setkey/parse.y-orig Wed Jun 29 15:01:30 2005 --- src/setkey/parse.y Sat Oct 29 17:06:51 2005 *************** *** 59,64 **** --- 59,68 ---- #include "vchar.h" #include "extern.h" + #ifndef IPPROTO_MH + #define IPPROTO_MH 135 + #endif + #define DEFAULT_NATT_PORT 4500 #ifndef UDP_ENCAP_ESPINUDP *************** *** 549,555 **** /* fixed port fields if ulp is icmpv6 */ if ($10.buf != NULL) { ! if ($9 != IPPROTO_ICMPV6) return -1; free($5.buf); free($8.buf); --- 553,560 ---- /* fixed port fields if ulp is icmpv6 */ if ($10.buf != NULL) { ! if (($9 != IPPROTO_ICMPV6) && ! ($9 != IPPROTO_MH)) return -1; free($5.buf); free($8.buf); *************** *** 596,602 **** /* fixed port fields if ulp is icmpv6 */ if ($10.buf != NULL) { ! if ($9 != IPPROTO_ICMPV6) return -1; free($5.buf); free($8.buf); --- 601,608 ---- /* fixed port fields if ulp is icmpv6 */ if ($10.buf != NULL) { ! if (($9 != IPPROTO_ICMPV6) && ! ($9 != IPPROTO_MH)) return -1; free($5.buf); free($8.buf); |