| version 1.63, 2000/03/01 12:49:42 |
version 1.64, 2000/03/22 20:58:30 |
|
|
| */ |
*/ |
| |
|
| #include "opt_ipsec.h" |
#include "opt_ipsec.h" |
| |
#include "opt_ipkdb.h" |
| #include "ipkdb.h" |
|
| |
|
| #include <sys/param.h> |
#include <sys/param.h> |
| #include <sys/malloc.h> |
#include <sys/malloc.h> |
|
|
| #include <netkey/key_debug.h> |
#include <netkey/key_debug.h> |
| #endif /*IPSEC*/ |
#endif /*IPSEC*/ |
| |
|
| |
#ifdef IPKDB |
| |
#include <ipkdb/ipkdb.h> |
| |
#endif |
| |
|
| /* |
/* |
| * UDP protocol implementation. |
* UDP protocol implementation. |
| * Per RFC 768, August, 1980. |
* Per RFC 768, August, 1980. |
| Line 289 udp_input(m, va_alist) |
|
| Line 292 udp_input(m, va_alist) |
|
| goto bad; |
goto bad; |
| } |
} |
| udpstat.udps_noport++; |
udpstat.udps_noport++; |
| #if NIPKDB > 0 |
#ifdef IPKDB |
| if (checkipkdb(&ip->ip_src, uh->uh_sport, uh->uh_dport, |
if (checkipkdb(&ip->ip_src, uh->uh_sport, uh->uh_dport, |
| m, iphlen + sizeof(struct udphdr), |
m, iphlen + sizeof(struct udphdr), |
| m->m_pkthdr.len - iphlen - sizeof(struct udphdr))) { |
m->m_pkthdr.len - iphlen - sizeof(struct udphdr))) { |
| Line 638 udp4_realinput(src, dst, m, off) |
|
| Line 641 udp4_realinput(src, dst, m, off) |
|
| goto bad; |
goto bad; |
| } |
} |
| udpstat.udps_noport++; |
udpstat.udps_noport++; |
| #if NIPKDB > 0 |
#ifdef IPKDB |
| if (checkipkdb(src4, *sport, *dport, m, off, |
if (checkipkdb(src4, *sport, *dport, m, off, |
| m->m_pkthdr.len - off)) { |
m->m_pkthdr.len - off)) { |
| /* |
/* |
| Line 1090 udp_input(m, va_alist) |
|
| Line 1093 udp_input(m, va_alist) |
|
| } |
} |
| udpstat.udps_noport++; |
udpstat.udps_noport++; |
| *ip = save_ip; |
*ip = save_ip; |
| #if NIPKDB > 0 |
#ifdef IPKDB |
| if (checkipkdb(&ip->ip_src, |
if (checkipkdb(&ip->ip_src, |
| uh->uh_sport, |
uh->uh_sport, |
| uh->uh_dport, |
uh->uh_dport, |