diff options
author | sam <sam@FreeBSD.org> | 2003-11-08 23:09:42 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-11-08 23:09:42 +0000 |
commit | 555f1c248bd42d7b11054c8b369e37c31edbed4e (patch) | |
tree | 1e4d42947a232924db32b3768567ea2d4914bf90 /sys/netinet/in_proto.c | |
parent | 854b820d7c80d857dea648c6ae35e8cfeb1f4a78 (diff) | |
download | FreeBSD-src-555f1c248bd42d7b11054c8b369e37c31edbed4e.zip FreeBSD-src-555f1c248bd42d7b11054c8b369e37c31edbed4e.tar.gz |
divert socket fixups:
o pickup Giant in divert_packet to protect sbappendaddr since it
can be entered through MPSAFE callouts or through ip_input when
mpsafenet is 1
o add missing locking on output
o add locking to abort and shutdown
o add a ctlinput handler to invalidate held routing table references
on an ICMP redirect (may not be needed)
Supported by: FreeBSD Foundation
Diffstat (limited to 'sys/netinet/in_proto.c')
-rw-r--r-- | sys/netinet/in_proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index 49bdde8..c57f878 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -206,7 +206,7 @@ struct protosw inetsw[] = { #endif #ifdef IPDIVERT { SOCK_RAW, &inetdomain, IPPROTO_DIVERT, PR_ATOMIC|PR_ADDR, - div_input, 0, 0, ip_ctloutput, + div_input, 0, div_ctlinput, ip_ctloutput, 0, div_init, 0, 0, 0, &div_usrreqs, |