version 1.178, 2003/09/06 03:36:30 |
version 1.180, 2003/11/10 20:03:29 |
Line 443 ip_input(struct mbuf *m) |
|
Line 443 ip_input(struct mbuf *m) |
|
if ((m->m_flags & M_PKTHDR) == 0) |
if ((m->m_flags & M_PKTHDR) == 0) |
panic("ipintr no HDR"); |
panic("ipintr no HDR"); |
#endif |
#endif |
#ifdef IPSEC |
|
/* |
|
* should the inner packet be considered authentic? |
|
* see comment in ah4_input(). |
|
*/ |
|
if (m) { |
|
m->m_flags &= ~M_AUTHIPHDR; |
|
m->m_flags &= ~M_AUTHIPDGM; |
|
} |
|
#endif |
|
|
|
/* |
/* |
* If no IP addresses have been set yet but the interfaces |
* If no IP addresses have been set yet but the interfaces |
Line 1932 ip_sysctl(name, namelen, oldp, oldlenp, |
|
Line 1922 ip_sysctl(name, namelen, oldp, oldlenp, |
|
|
|
int error, old; |
int error, old; |
|
|
/* All sysctl names at this level are terminal. */ |
/* All sysctl names (except ifq.*) at this level are terminal. */ |
if (namelen != 1) |
if ((namelen != 1) && !(namelen == 2 && name[0] == IPCTL_IFQ)) |
return (ENOTDIR); |
return (ENOTDIR); |
|
|
switch (name[0]) { |
switch (name[0]) { |
case IPCTL_FORWARDING: |
case IPCTL_FORWARDING: |
Line 2069 ip_sysctl(name, namelen, oldp, oldlenp, |
|
Line 2059 ip_sysctl(name, namelen, oldp, oldlenp, |
|
case IPCTL_CHECKINTERFACE: |
case IPCTL_CHECKINTERFACE: |
return (sysctl_int(oldp, oldlenp, newp, newlen, |
return (sysctl_int(oldp, oldlenp, newp, newlen, |
&ip_checkinterface)); |
&ip_checkinterface)); |
|
case IPCTL_IFQ: |
|
return (sysctl_ifq(name+1, namelen-1, |
|
oldp, oldlenp, newp, newlen, |
|
&ipintrq)); |
|
|
default: |
default: |
return (EOPNOTSUPP); |
return (EOPNOTSUPP); |
} |
} |