diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-07-08 19:42:47 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-07-08 19:42:47 +0000 |
commit | 81e7dec44837a6821816c4a2fc34a463219a91ca (patch) | |
tree | 9e7dff2fc4b77980c39f4c2593b14eddf00e3e78 /sys/netinet6/ip6_output.c | |
parent | 7524ee837cf2d945ff4fbee9639a0992db5150e3 (diff) |
remove some unused netinet6 code
ok stsp@ henning@ claudio@
Diffstat (limited to 'sys/netinet6/ip6_output.c')
-rw-r--r-- | sys/netinet6/ip6_output.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index fd1c1b1eca8..4e993ffc8d0 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_output.c,v 1.114 2010/07/01 02:09:45 reyk Exp $ */ +/* $OpenBSD: ip6_output.c,v 1.115 2010/07/08 19:42:46 jsg Exp $ */ /* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */ /* @@ -3167,29 +3167,6 @@ ip6_splithdr(struct mbuf *m, struct ip6_exthdrs *exthdrs) return 0; } -/* - * Compute IPv6 extension header length. - */ -int -ip6_optlen(struct inpcb *inp) -{ - int len; - - if (!inp->inp_outputopts6) - return 0; - - len = 0; -#define elen(x) \ - (((struct ip6_ext *)(x)) ? (((struct ip6_ext *)(x))->ip6e_len + 1) << 3 : 0) - - len += elen(inp->inp_outputopts6->ip6po_hbh); - len += elen(inp->inp_outputopts6->ip6po_dest1); - len += elen(inp->inp_outputopts6->ip6po_rthdr); - len += elen(inp->inp_outputopts6->ip6po_dest2); - return len; -#undef elen -} - u_int32_t ip6_randomid(void) { |