| version 1.158, 2007/03/04 06:03:22 |
version 1.158.2.2, 2007/07/15 13:27:59 |
| Line 384 udp_input(struct mbuf *m, ...) |
|
| Line 384 udp_input(struct mbuf *m, ...) |
|
| goto badcsum; |
goto badcsum; |
| |
|
| /* construct source and dst sockaddrs. */ |
/* construct source and dst sockaddrs. */ |
| bzero(&src, sizeof(src)); |
sockaddr_in_init(&src, &ip->ip_src, uh->uh_sport); |
| src.sin_family = AF_INET; |
sockaddr_in_init(&dst, &ip->ip_dst, uh->uh_dport); |
| src.sin_len = sizeof(struct sockaddr_in); |
|
| bcopy(&ip->ip_src, &src.sin_addr, sizeof(src.sin_addr)); |
|
| src.sin_port = uh->uh_sport; |
|
| bzero(&dst, sizeof(dst)); |
|
| dst.sin_family = AF_INET; |
|
| dst.sin_len = sizeof(struct sockaddr_in); |
|
| bcopy(&ip->ip_dst, &dst.sin_addr, sizeof(dst.sin_addr)); |
|
| dst.sin_port = uh->uh_dport; |
|
| |
|
| if ((n = udp4_realinput(&src, &dst, &m, iphlen)) == -1) { |
if ((n = udp4_realinput(&src, &dst, &m, iphlen)) == -1) { |
| udpstat.udps_hdrops++; |
udpstat.udps_hdrops++; |
| Line 1536 udp4_espinudp(struct mbuf **mp, int off, |
|
| Line 1528 udp4_espinudp(struct mbuf **mp, int off, |
|
| m_tag_prepend(n, tag); |
m_tag_prepend(n, tag); |
| |
|
| #ifdef FAST_IPSEC |
#ifdef FAST_IPSEC |
| ipsec4_common_input(n, iphdrlen); |
ipsec4_common_input(n, iphdrlen, IPPROTO_ESP); |
| #else |
#else |
| esp4_input(n, iphdrlen); |
esp4_input(n, iphdrlen); |
| #endif |
#endif |