diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-10-31 09:00:33 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-10-31 09:00:33 +0000 |
commit | c4a21dc23a6a2b5c8a859e8aa1a970aa992be160 (patch) | |
tree | ee51db8db4ff481938fb93dac2f3d56c6db4f2f0 /sys/netinet6/in6_proto.c | |
parent | e7d4db7aa9a0459685c34750cb251f39443debed (diff) |
Add IPv6 support to CARP.
ok deraadt@
Diffstat (limited to 'sys/netinet6/in6_proto.c')
-rw-r--r-- | sys/netinet6/in6_proto.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c index 50bdd85af92..0c9d66e4fdf 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_proto.c,v 1.42 2003/08/07 09:11:53 itojun Exp $ */ +/* $OpenBSD: in6_proto.c,v 1.43 2003/10/31 09:00:32 mcbride Exp $ */ /* $KAME: in6_proto.c,v 1.66 2000/10/10 15:35:47 itojun Exp $ */ /* @@ -103,6 +103,11 @@ #include <netinet6/in6_gif.h> #endif +#include "carp.h" +#if NCARP > 0 +#include <netinet/ip_carp.h> +#endif + /* * TCP/IP protocol family: IP6, ICMP6, UDP, TCP. */ @@ -210,6 +215,13 @@ struct ip6protosw inet6sw[] = { rip6_usrreq, 0, 0, 0, 0, }, +#if NCARP > 0 +{ SOCK_RAW, &inet6domain, IPPROTO_CARP, PR_ATOMIC|PR_ADDR, + carp6_input, rip6_output, 0, rip6_ctloutput, + rip6_usrreq, + 0, 0, 0, 0, carp_sysctl +}, +#endif /* NCARP */ /* raw wildcard */ { SOCK_RAW, &inet6domain, 0, PR_ATOMIC|PR_ADDR, rip6_input, rip6_output, 0, rip6_ctloutput, |