diff options
author | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 2009-06-30 07:07:47 +0000 |
---|---|---|
committer | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 2009-06-30 07:07:47 +0000 |
commit | 31bf30a12605ab0dd297f15810b15ddb48b9b4f7 (patch) | |
tree | 114882d96f2ea4725ba94c5f5098286a1f111eb2 /net/miredo/files/patch-misc-client-hook.bsd | |
parent | - Update to 1.19 (diff) |
- FIx client-hook to be workable
- Fix EINVAL from routing socket in relay mode
- Move clean_cb() before exit() to fix client mode
Diffstat (limited to 'net/miredo/files/patch-misc-client-hook.bsd')
-rw-r--r-- | net/miredo/files/patch-misc-client-hook.bsd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/miredo/files/patch-misc-client-hook.bsd b/net/miredo/files/patch-misc-client-hook.bsd new file mode 100644 index 000000000000..45980442de54 --- /dev/null +++ b/net/miredo/files/patch-misc-client-hook.bsd @@ -0,0 +1,28 @@ +--- misc/client-hook.bsd.orig 2009-04-10 01:34:15.000000000 +0900 ++++ misc/client-hook.bsd 2009-06-23 17:15:54.000000000 +0900 +@@ -18,21 +18,13 @@ + + "$IFCONFIG" "$IFACE" "$STATE" + +-# FIXME: untested, certainly syntaxically incorrect +-"$ROUTE" flush dev "$IFACE" 2>/dev/null +-"$IFCONFIG" "$IFACE" flush 2>/dev/null +- + case "$STATE" in + up) +- # FIXME: untested, most likely syntaxically incorrect +- "$IFCONFIG" "$IFACE" inet6 add "${LLADDRESS}/64" +- "$IFCONFIG" "$IFACE" inet6 add "${ADDRESS}/32" +- "$ROUTE" add -inet6 default "${LLADDRESS}%${IFACE}" ++ "$IFCONFIG" "$IFACE" inet6 "${LLADDRESS}/64" ++ "$IFCONFIG" "$IFACE" inet6 "${ADDRESS}/128" ++ "$ROUTE" delete -inet6 default ++ "$ROUTE" add -inet6 default -iface "$IFACE" + ;; + esac + +-# TODO: MacOS X should probably gets its fork of the script +-# MacOS X DNS resolver must be reloaded when IPv6 availability changes +-#/sbin/killall -HUP something +- + exit 0 |