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

12

/freebsd-11-stable/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.c471 if (uh->uh_sum) {
472 u_short uh_sum; local
477 uh_sum = m->m_pkthdr.csum_data;
479 uh_sum = in_pseudo(ip->ip_src.s_addr,
482 uh_sum ^= 0xffff;
490 uh_sum = in_cksum(m, len + sizeof (struct ip));
493 if (uh_sum) {
1453 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum);
H A Dsctp_os_bsd.h346 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); \
/freebsd-11-stable/sbin/dhclient/
H A Dpacket.c136 memset(&udp.uh_sum, 0, sizeof(udp.uh_sum));
138 udp.uh_sum = wrapsum(checksum((unsigned char *)&udp, sizeof(udp),
225 usum = udp->uh_sum;
226 udp->uh_sum = 0;
/freebsd-11-stable/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-11-stable/contrib/ipfilter/ipsend/
H A Dipsend.c165 udp->uh_sum = temp32 & 65535;
166 udp->uh_sum = chksum((u_short *)udp, len);
167 if (udp->uh_sum == 0)
168 udp->uh_sum = 0xffff;
408 udp->uh_sum = 0;
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_nbt.c193 u_short *uh_sum; member in struct:__anon8183
389 if (uh->uh_sum != 0) {
401 ADJUST_CHECKSUM(acc, uh->uh_sum);
517 if (*nbtarg->uh_sum != 0) {
527 ADJUST_CHECKSUM(acc, *nbtarg->uh_sum);
588 if (*nbtarg->uh_sum != 0) {
598 ADJUST_CHECKSUM(acc, *nbtarg->uh_sum);
805 nbtarg.uh_sum = &(uh->uh_sum);
H A Dalias.c788 if (ud->uh_sum != 0) {
805 ADJUST_CHECKSUM(accumulate, ud->uh_sum);
871 if (ud->uh_sum != 0) {
876 ADJUST_CHECKSUM(accumulate, ud->uh_sum);
915 if (ud->uh_sum != 0) {
922 ADJUST_CHECKSUM(accumulate, ud->uh_sum);
1629 ADJUST_CHECKSUM(accumulate, ud->uh_sum);
/freebsd-11-stable/cddl/lib/libdtrace/
H A Dudp.d74 udp_checksum = p == NULL ? 0 : ntohs(p->uh_sum);
/freebsd-11-stable/stand/libsa/
H A Dudp.c95 uh->uh_sum = in_cksum(ui, len + sizeof (struct ip));
140 if (uh->uh_sum) {
H A Drpc.c289 uint16_t uh_sum; /* udp checksum */ member in struct:hackhdr
/freebsd-11-stable/sys/netgraph/
H A Dng_checksum.c382 uh->uh_sum = in_pseudo(ip4->ip_src.s_addr,
386 uh->uh_sum = in_cksum_skip(m,
389 if (uh->uh_sum == 0)
390 uh->uh_sum = 0xffff;
507 uh->uh_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0);
510 uh->uh_sum = in_cksum_skip(m,
513 if (uh->uh_sum == 0)
514 uh->uh_sum = 0xffff;
/freebsd-11-stable/sys/netinet6/
H A Dudp6_usrreq.c205 uint16_t uh_sum; local
244 if (uh->uh_sum == 0) {
253 if (uh->uh_sum == 0) {
262 uh_sum = m->m_pkthdr.csum_data;
264 uh_sum = in6_cksum_pseudo(ip6, ulen, nxt,
266 uh_sum ^= 0xffff;
268 uh_sum = in6_cksum_partial(m, nxt, off, plen, ulen);
270 if (uh_sum != 0) {
831 udp6->uh_sum = 0;
846 if ((udp6->uh_sum
[all...]
/freebsd-11-stable/contrib/tcpdump/
H A Dudp.h44 uint16_t uh_sum; /* udp checksum */ member in struct:udphdr
H A Dprint-udp.c542 udp_sum = EXTRACT_16BITS(&up->uh_sum);
560 udp_sum = EXTRACT_16BITS(&up->uh_sum);
/freebsd-11-stable/sys/netipsec/
H A Dudpencap.c236 udp->uh_sum = 0;
257 off = offsetof(struct udphdr, uh_sum);
/freebsd-11-stable/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-11-stable/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c1078 if (len < offsetof(struct udphdr, uh_sum))
1082 udp->uh_sum = cksum_adjust(udp->uh_sum,
1086 udp->uh_sum = cksum_add(udp->uh_sum,
1255 csum = &UDP(mtodo(m, hlen))->uh_sum;
1631 csum = &UDP(mtodo(m, hlen))->uh_sum;
/freebsd-11-stable/tools/tools/netmap/
H A Dpkt-gen.c793 #define uh_sum check macro
882 udp.uh_sum = ~cksum_add(~udp.uh_sum, htons(udp_sum));
885 udp.uh_sum = ~cksum_add(~udp.uh_sum, htons(ip_sum));
974 udp.uh_sum = ~cksum_add(~udp.uh_sum, udp_sum);
1083 udp.uh_sum = wrapsum(
1095 udp.uh_sum = wrapsum(
2021 memcpy(&sum, targ->g->af == AF_INET ? &pkt->ipv4.udp.uh_sum
[all...]
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dfils_hlp.c274 udph->uh_sum = htons(0x0000); /* TODO: calculate checksum */
495 sport, dport, ulen, ntohs(udph->uh_sum));
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_proxy.c1039 } else if ((udp != NULL) && (udp->uh_sum != 0)) {
1041 u_short sum = ntohs(udp->uh_sum);
1043 udp->uh_sum = htons(sum);
1045 udp->uh_sum = fr_cksum(fin, ip,
/freebsd-11-stable/contrib/traceroute/
H A Dtraceroute.c1495 outudp->uh_sum = 0;
1498 outudp->uh_sum = (sum) ? sum : 0xffff;
1521 outudp->uh_sum = 0;
1524 outudp->uh_sum = (sum) ? sum : 0xffff;
/freebsd-11-stable/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,
/freebsd-11-stable/contrib/ipfilter/tools/
H A Dipftest.c688 csump += offsetof(udphdr_t, uh_sum);

Completed in 211 milliseconds

12