version 1.93.2.2, 2000/11/22 16:06:10 |
version 1.124, 2000/12/22 20:01:18 |
|
|
|
|
#ifdef PFIL_HOOKS |
#ifdef PFIL_HOOKS |
/* Register our Packet Filter hook. */ |
/* Register our Packet Filter hook. */ |
inet_pfil_hook.ph_key = (void *)(u_long) AF_INET; |
inet_pfil_hook.ph_type = PFIL_TYPE_AF; |
inet_pfil_hook.ph_dlt = DLT_RAW; |
inet_pfil_hook.ph_af = AF_INET; |
i = pfil_head_register(&inet_pfil_hook); |
i = pfil_head_register(&inet_pfil_hook); |
if (i != 0) |
if (i != 0) |
printf("ip_init: WARNING: unable to register pfil hook, " |
printf("ip_init: WARNING: unable to register pfil hook, " |
Line 479 ip_input(struct mbuf *m) |
|
Line 479 ip_input(struct mbuf *m) |
|
ip = mtod(m, struct ip *); |
ip = mtod(m, struct ip *); |
#endif /* PFIL_HOOKS */ |
#endif /* PFIL_HOOKS */ |
|
|
|
#ifdef ALTQ |
|
/* XXX Temporary until ALTQ is changed to use a pfil hook */ |
|
if (altq_input != NULL && (*altq_input)(m, AF_INET) == 0) { |
|
/* packet dropped by traffic conditioner */ |
|
return; |
|
} |
|
#endif |
|
|
/* |
/* |
* Convert fields to host representation. |
* Convert fields to host representation. |
*/ |
*/ |
|
|
* Switch out to protocol's input routine. |
* Switch out to protocol's input routine. |
*/ |
*/ |
#if IFA_STATS |
#if IFA_STATS |
ia->ia_ifa.ifa_data.ifad_inbytes += ip->ip_len; |
if (ia && ip) |
|
ia->ia_ifa.ifa_data.ifad_inbytes += ip->ip_len; |
#endif |
#endif |
ipstat.ips_delivered++; |
ipstat.ips_delivered++; |
{ |
{ |