route6.c (95023) | route6.c (105194) |
---|---|
1/* $FreeBSD: head/sys/netinet6/route6.c 95023 2002-04-19 04:46:24Z suz $ */ | 1/* $FreeBSD: head/sys/netinet6/route6.c 105194 2002-10-16 01:54:46Z sam $ */ |
2/* $KAME: route6.c,v 1.24 2001/03/14 03:07:05 itojun Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 45 unchanged lines hidden (view full) --- 55route6_input(mp, offp, proto) 56 struct mbuf **mp; 57 int *offp, proto; /* proto is unused */ 58{ 59 struct ip6_hdr *ip6; 60 struct mbuf *m = *mp; 61 struct ip6_rthdr *rh; 62 int off = *offp, rhlen; | 2/* $KAME: route6.c,v 1.24 2001/03/14 03:07:05 itojun Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 45 unchanged lines hidden (view full) --- 55route6_input(mp, offp, proto) 56 struct mbuf **mp; 57 int *offp, proto; /* proto is unused */ 58{ 59 struct ip6_hdr *ip6; 60 struct mbuf *m = *mp; 61 struct ip6_rthdr *rh; 62 int off = *offp, rhlen; |
63 struct mbuf *n; | 63 struct ip6aux *ip6a; |
64 | 64 |
65 n = ip6_findaux(m); 66 if (n) { 67 struct ip6aux *ip6a = mtod(n, struct ip6aux *); | 65 ip6a = ip6_findaux(m); 66 if (ip6a) { |
68 /* XXX reject home-address option before rthdr */ 69 if (ip6a->ip6a_flags & IP6A_SWAP) { 70 ip6stat.ip6s_badoptions++; 71 m_freem(m); 72 return IPPROTO_DONE; 73 } 74 } 75 --- 147 unchanged lines hidden --- | 67 /* XXX reject home-address option before rthdr */ 68 if (ip6a->ip6a_flags & IP6A_SWAP) { 69 ip6stat.ip6s_badoptions++; 70 m_freem(m); 71 return IPPROTO_DONE; 72 } 73 } 74 --- 147 unchanged lines hidden --- |