Searched refs:uh_ulen (Results 1 - 25 of 32) sorted by relevance

12

/freebsd-11-stable/sys/netinet/
H A Dudp.h44 u_short uh_ulen; /* udp length */ member in struct:udphdr
H A Dudp_var.h52 #define ui_ulen ui_u.uh_ulen
H A Dudp_usrreq.c442 len = ntohs((u_short)uh->uh_ulen);
489 uh->uh_ulen : htons(ip_len);
/freebsd-11-stable/stand/libsa/
H A Dudp.c87 uh->uh_ulen = htons(len);
90 ui->ui_len = uh->uh_ulen;
124 if (n == -1 || n < sizeof(*uh) || n != ntohs(uh->uh_ulen)) {
145 n = ntohs(uh->uh_ulen) + sizeof(*ip);
152 ui->ui_len = uh->uh_ulen;
164 if (ntohs(uh->uh_ulen) < sizeof(*uh)) {
168 ntohs(uh->uh_ulen), (int)sizeof(*uh));
174 n = (n > (ntohs(uh->uh_ulen) - sizeof(*uh))) ?
175 ntohs(uh->uh_ulen) - sizeof(*uh) : n;
H A Drpc.c288 int16_t uh_ulen; /* udp length */ member in struct:hackhdr
H A Dip.c279 bcopy(((u_char *)ip) + hlen, uh, uh->uh_ulen - hlen);
/freebsd-11-stable/sbin/dhclient/
H A Dpacket.c135 udp.uh_ulen = htons(sizeof(udp) + len);
141 IPPROTO_UDP + (u_int32_t)ntohs(udp.uh_ulen)))));
206 len = ntohs(udp->uh_ulen) - sizeof(*udp);
231 IPPROTO_UDP + (u_int32_t)ntohs(udp->uh_ulen)))));
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Diptests.c124 u->uh_ulen = htons(sizeof(*u) + 4);
125 ip->ip_len = sizeof(*ip) + ntohs(u->uh_ulen);
138 for (i = 0; i < ((sizeof(*ip) + ntohs(u->uh_ulen)) >> 2); i++) {
154 for (; i < ((sizeof(*ip) * 2 + ntohs(u->uh_ulen)) >> 2); i++) {
772 u->uh_ulen = htons(sizeof(*u) + 4);
782 u->uh_ulen = htons(sizeof(*u) + 4);
783 ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen);
784 printf("4.1 UDP uh_ulen > packet size - short packets\n");
785 for (i = ntohs(u->uh_ulen) * 2; i > sizeof(*u) + 4; i--) {
786 u->uh_ulen
[all...]
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_cuseeme.c180 if (ntohs(ud->uh_ulen) - sizeof(struct udphdr) >= sizeof(struct cu_header)) {
215 end = (char *)ud + ntohs(ud->uh_ulen);
H A Dalias_nbt.c356 pmax = (char *)uh + ntohs(uh->uh_ulen);
808 pmax = (char *)uh + ntohs(uh->uh_ulen);
H A Dalias.c749 if (dlen < ntohs(ud->uh_ulen))
849 if (dlen < ntohs(ud->uh_ulen))
/freebsd-11-stable/cddl/lib/libdtrace/
H A Dudp.d73 udp_length = p == NULL ? 0 : ntohs(p->uh_ulen);
/freebsd-11-stable/contrib/tcpdump/
H A Dudp.h43 uint16_t uh_ulen; /* udp length */ member in struct:udphdr
H A Dprint-udp.c109 ND_TCHECK_16BITS(&up->uh_ulen);
111 (uint32_t)(EXTRACT_16BITS(&up->uh_ulen) - sizeof(*up)),
121 ND_TCHECK_16BITS(&up->uh_ulen);
123 (uint32_t)(EXTRACT_16BITS(&up->uh_ulen) - sizeof(*up) - 8),
151 ND_TCHECK_16BITS(&up->uh_ulen);
152 dlen = EXTRACT_16BITS(&up->uh_ulen) - sizeof(*up) - 8;
401 if (!ND_TTEST(up->uh_ulen)) {
405 ulen = EXTRACT_16BITS(&up->uh_ulen);
/freebsd-11-stable/sys/netipsec/
H A Dudpencap.c237 udp->uh_ulen = htons(m->m_pkthdr.len - hlen);
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_rpcb_pxy.c828 udp->uh_ulen = htons(ntohs(udp->uh_ulen) + diff);
1469 udp->uh_ulen = htons(ntohs(udp->uh_ulen) + len);
H A Dip_tftp_pxy.c318 udp.uh_ulen = htons(sizeof(udp));
H A Dip_nat.c5229 uh->uh_ulen += fin->fin_plen;
5230 uh->uh_ulen = htons(uh->uh_ulen);
5674 uh->uh_ulen += fin->fin_plen;
5675 uh->uh_ulen = htons(uh->uh_ulen);
7373 uh->uh_ulen = 8;
/freebsd-11-stable/contrib/ipfilter/iplang/
H A Diplang_y.y673 aip->ah_udp->uh_ulen += sz;
701 aip->ah_udp->uh_ulen += inc;
1217 udp->uh_ulen = sizeof(*udp);
1227 inc_anipheaders(len - udp->uh_ulen);
1228 udp->uh_ulen = len;
1745 udp->uh_ulen = htons(udp->uh_ulen);
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dfils_hlp.c273 udph->uh_ulen = htons(sizeof(*udph) + (end - pos));
492 ulen = ntohs(udph->uh_ulen);
/freebsd-11-stable/tools/tools/net80211/wesside/dics/
H A Ddics.c261 uh->uh_ulen = htons(8+dlen);
/freebsd-11-stable/sys/netinet6/
H A Dudp6_usrreq.c230 ulen = ntohs((u_short)uh->uh_ulen);
821 udp6->uh_ulen = htons(cscov);
828 udp6->uh_ulen = htons((u_short)plen);
830 udp6->uh_ulen = 0;
/freebsd-11-stable/contrib/traceroute/
H A Dtraceroute.c1494 outudp->uh_ulen = htons((u_short)protlen);
1520 outudp->uh_ulen = htons(8);
/freebsd-11-stable/usr.sbin/ppp/
H A Dip.c507 len = ntohs(uh->uh_ulen) - sizeof *uh;
/freebsd-11-stable/tools/tools/net80211/wesside/wesside/
H A Dwesside.c806 uh->uh_ulen = htons(8+PRGA_LEN);
1914 uh->uh_ulen = htons(8+5);

Completed in 254 milliseconds

12