Lines Matching defs:udp
87 #include <netinet/udp.h>
1359 /* Check if the ICMP error message is related to an existing TCP, UDP or */
1595 udphdr_t *udp;
1597 udp = (udphdr_t *)dp;
1599 csump = (u_short *)&udp->uh_sum;
1716 * Fix UDP pseudo header checksum to compensate for the
1723 * For offending TCP/UDP IP packets, translate the ports as
1727 * Since the port fields are part of the TCP/UDP checksum
1730 * be offset by the checksum change. However, the TCP/UDP
1757 * TCP/UDP header, given the changes in both the IP
1761 * TCP/UDP checksum instead.
1763 * If we will both the IP and TCP/UDP checksums
1765 * delta applied to the TCP/UDP checksum. If we
1766 * do not change the TCP/UDP checksum them we
2093 /* This function is only called for TCP/UDP NAT table entries where the */
2856 fin->fin_plen += sizeof(ip6_t) + 8; /* UDP + new IPv4 hdr */
2857 fin->fin_dlen += sizeof(ip6_t) + 8; /* UDP + old IPv4 hdr */
2923 /* A NULL tcp indicates a non TCP/UDP packet. When dealing */
3187 /* A NULL tcp indicates a non TCP/UDP packet. When dealing */
3255 fin->fin_plen += sizeof(ip6_t) + 8; /* UDP + new IPv6 hdr */
3256 fin->fin_dlen += sizeof(ip6_t) + 8; /* UDP + old IPv6 hdr */
3659 /* fill in the final details. At present a 0 checksum for UDP is being set */