Searched refs:uh_sum (Results 1 - 25 of 48) sorted by relevance

12

/freebsd-10.3-release/sys/netinet/
H A Dudp.h45 u_short uh_sum; /* udp checksum */ member in struct:udphdr
H A Dudp_var.h53 #define ui_sum ui_u.uh_sum
H A Dudp_usrreq.c462 if (uh->uh_sum) {
463 u_short uh_sum; local
468 uh_sum = m->m_pkthdr.csum_data;
470 uh_sum = in_pseudo(ip->ip_src.s_addr,
473 uh_sum ^= 0xffff;
481 uh_sum = in_cksum(m, len + sizeof (struct ip));
484 if (uh_sum) {
1401 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum);
H A Dsctp_os_bsd.h361 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); \
/freebsd-10.3-release/contrib/tcpdump/
H A Dudp.h45 u_int16_t uh_sum; /* udp checksum */ member in struct:udphdr
H A Dprint-udp.c532 udp_sum = EXTRACT_16BITS(&up->uh_sum);
551 udp_sum = EXTRACT_16BITS(&up->uh_sum);
/freebsd-10.3-release/sbin/dhclient/
H A Dpacket.c147 memset(&udp.uh_sum, 0, sizeof(udp.uh_sum));
149 udp.uh_sum = wrapsum(checksum((unsigned char *)&udp, sizeof(udp),
236 usum = udp->uh_sum;
237 udp->uh_sum = 0;
/freebsd-10.3-release/sys/ddb/
H A Ddb_textdump.c99 char uh_sum[8]; member in struct:ustar_header
193 for (i = 0; i < sizeof(uhp->uh_sum); i++)
194 uhp->uh_sum[i] = ' ';
198 snprintf(uhp->uh_sum, sizeof(uhp->uh_sum), "%6o", sum);
/freebsd-10.3-release/contrib/ipfilter/ipsend/
H A Dipsend.c189 udp->uh_sum = temp32 & 65535;
190 udp->uh_sum = chksum((u_short *)udp, len);
191 if (udp->uh_sum == 0)
192 udp->uh_sum = 0xffff;
432 udp->uh_sum = 0;
H A Diptests.c150 u->uh_sum = 0;
1312 u->uh_sum = 0;
/freebsd-10.3-release/sys/netinet/libalias/
H A Dalias_nbt.c193 u_short *uh_sum; member in struct:__anon11393
385 if (uh->uh_sum != 0) {
397 ADJUST_CHECKSUM(acc, uh->uh_sum);
506 if (*nbtarg->uh_sum != 0) {
516 ADJUST_CHECKSUM(acc, *nbtarg->uh_sum);
572 if (*nbtarg->uh_sum != 0) {
582 ADJUST_CHECKSUM(acc, *nbtarg->uh_sum);
789 nbtarg.uh_sum = &(uh->uh_sum);
H A Dalias.c771 if (ud->uh_sum != 0) {
788 ADJUST_CHECKSUM(accumulate, ud->uh_sum);
847 if (ud->uh_sum != 0) {
852 ADJUST_CHECKSUM(accumulate, ud->uh_sum);
891 if (ud->uh_sum != 0) {
898 ADJUST_CHECKSUM(accumulate, ud->uh_sum);
1588 ADJUST_CHECKSUM(accumulate, ud->uh_sum);
/freebsd-10.3-release/sys/netinet6/
H A Dudp6_usrreq.c203 uint16_t uh_sum; local
248 if (uh->uh_sum == 0) {
257 if (uh->uh_sum == 0) {
266 uh_sum = m->m_pkthdr.csum_data;
268 uh_sum = in6_cksum_pseudo(ip6, ulen, nxt,
270 uh_sum ^= 0xffff;
272 uh_sum = in6_cksum_partial(m, nxt, off, plen, ulen);
274 if (uh_sum != 0) {
817 udp6->uh_sum = 0;
832 if ((udp6->uh_sum
[all...]
/freebsd-10.3-release/cddl/lib/libdtrace/
H A Dudp.d73 udp_checksum = p == NULL ? 0 : ntohs(p->uh_sum);
/freebsd-10.3-release/lib/libstand/
H A Dudp.c113 uh->uh_sum = in_cksum(ui, len);
234 if (uh->uh_sum) {
H A Drpc.c292 u_int16_t uh_sum; /* udp checksum */ member in struct:hackhdr
/freebsd-10.3-release/contrib/ipfilter/ipsd/Celler/
H A Dip_compat.h156 __u16 uh_sum; member in struct:__anon1587
/freebsd-10.3-release/contrib/ipfilter/ipsend/.OLD/
H A Dip_compat.h158 __u16 uh_sum; member in struct:__anon1594
/freebsd-10.3-release/tools/tools/net80211/wesside/dics/
H A Ddics.c262 uh->uh_sum = 0;
268 uh->uh_sum = udp_checksum((unsigned char*)uh, 8+dlen,
/freebsd-10.3-release/sys/netpfil/ipfw/
H A Dip_fw_nat.c366 uh->uh_sum = cksum;
368 offsetof(struct udphdr, uh_sum);
/freebsd-10.3-release/sys/contrib/ipfilter/netinet/
H A Dip_proxy.c1041 } else if ((udp != NULL) && (udp->uh_sum != 0)) {
1043 u_short sum = ntohs(udp->uh_sum);
1045 udp->uh_sum = htons(sum);
1047 udp->uh_sum = fr_cksum(fin, ip,
H A Dip_tftp_pxy.c319 udp.uh_sum = 0;
/freebsd-10.3-release/contrib/traceroute/
H A Dtraceroute.c1416 outudp->uh_sum = 0;
1419 outudp->uh_sum = (sum) ? sum : 0xffff;
1442 outudp->uh_sum = 0;
1445 outudp->uh_sum = (sum) ? sum : 0xffff;
/freebsd-10.3-release/sys/netipsec/
H A Dipsec_output.c238 udp->uh_sum = 0;
/freebsd-10.3-release/tools/tools/net80211/wesside/wesside/
H A Dwesside.c807 uh->uh_sum = 0;
808 uh->uh_sum = udp_checksum((unsigned char*)uh, 8+PRGA_LEN,
1915 uh->uh_sum = 0;
1920 uh->uh_sum = udp_checksum(ptr - 8, 8+5, &ih->ip_src,

Completed in 547 milliseconds

12