Home | History | Annotate | Download | only in netinet

Lines Matching defs:udp

87 #include <netinet/udp.h>
477 "nat ipftq udp tab");
3560 /* Check if the ICMP error message is related to an existing TCP, UDP or */
3758 udphdr_t *udp;
3760 udp = (udphdr_t *)dp;
3762 csump = (u_short *)&udp->uh_sum;
3870 * Fix UDP pseudo header checksum to compensate for the
3878 * For offending TCP/UDP IP packets, translate the ports as
3882 * Since the port fields are part of the TCP/UDP checksum
3885 * be offset by the checksum change. However, the TCP/UDP
3914 * TCP/UDP header, given the changes in both the IP
3918 * TCP/UDP checksum instead.
3920 * If we will both the IP and TCP/UDP checksums
3922 * delta applied to the TCP/UDP checksum. If we
3923 * do not change the TCP/UDP checksum them we
4252 /* This function is only called for TCP/UDP NAT table entries where the */
5158 fin->fin_plen += sizeof(ip_t) + 8; /* UDP + IPv4 hdr */
5159 fin->fin_dlen += sizeof(ip_t) + 8; /* UDP + IPv4 hdr */
5234 /* A NULL tcp indicates a non TCP/UDP packet. When dealing */
5504 /* A NULL tcp indicates a non TCP/UDP packet. When dealing */
5604 fin->fin_plen += sizeof(ip_t) + 8; /* UDP + new IPv4 hdr */
5605 fin->fin_dlen += sizeof(ip_t) + 8; /* UDP + old IPv4 hdr */
5726 udphdr_t *udp;
5753 udp = fin->fin_dp;
5756 if (udp->uh_sum != 0)
5757 csump = &udp->uh_sum;
7224 /* fill in the final details. At present a 0 checksum for UDP is being set */