Home
last modified time | relevance | path

Searched refs:uh_ulen (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/boot/libsa/
H A Dudp.c86 uh->uh_ulen = htons(len); in sendudp()
89 ui->ui_len = uh->uh_ulen; in sendudp()
123 if (n == -1 || n < sizeof (*uh) || n != ntohs(uh->uh_ulen)) { in readudp()
144 n = ntohs(uh->uh_ulen) + sizeof (struct ip); in readudp()
157 ui->ui_len = uh->uh_ulen; in readudp()
169 if (ntohs(uh->uh_ulen) < sizeof (*uh)) { in readudp()
173 ntohs(uh->uh_ulen), (int)sizeof (*uh)); in readudp()
179 n = (n > (ntohs(uh->uh_ulen) - sizeof (*uh))) ? in readudp()
180 ntohs(uh->uh_ulen) - sizeof (*uh) : n; in readudp()
H A Drpc.c288 int16_t uh_ulen; /* udp length */ in rpc_fromaddr() member
H A Dip.c278 bcopy(((u_char *)ip) + hlen, uh, uh->uh_ulen - hlen); in readipv4()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_udp.c60 udplen = ntohs((ushort_t)udp->uh_ulen) - sizeof (struct udphdr); in interpret_udp()
70 ntohs((ushort_t)udp->uh_ulen)); in interpret_udp()
97 (void) sprintf(get_line((char *)(uintptr_t)udp->uh_ulen - in interpret_udp()
99 ntohs((ushort_t)udp->uh_ulen), in interpret_udp()
/illumos-gate/usr/src/common/net/dhcp/
H A Dudp_sum.c67 ck.len = udph->uh_ulen; in udp_chksum()
77 ((caddr_t)udph)[ntohs(udph->uh_ulen)] = '\0'; in udp_chksum()
/illumos-gate/usr/src/stand/lib/inet/
H A Dudp.c124 mp->b_wptr = ((unsigned char *)udphp) + ntohs(udphp->uh_ulen); in udp_input()
189 udphp->uh_ulen = htons(mp->b_wptr - mp->b_rptr); in udp_output()
/illumos-gate/usr/src/boot/include/netinet/
H A Dudp.h44 u_short uh_ulen; /* udp length */ member
H A Dudp_var.h52 #define ui_ulen ui_u.uh_ulen
/illumos-gate/usr/src/uts/common/netinet/
H A Dudp.h27 int16_t uh_ulen; /* udp length */ member
H A Dudp_var.h33 #define ui_ulen ui_u.uh_ulen
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux.c134 outudp->uh_ulen = in set_buffers()
287 ui->ui_len = outudp->uh_ulen; in send_probe()
H A Dtraceroute_aux6.c108 outudp->uh_ulen = htons((ushort_t)(plen - in set_buffers6()
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_rpcb_pxy.c849 udp->uh_ulen = htons(ntohs(udp->uh_ulen) + diff);
1481 udp->uh_ulen = htons(ntohs(udp->uh_ulen) + len);
/illumos-gate/usr/src/uts/common/io/chxge/
H A Dsge.c1936 (uint16_t)(dst) + (udpp->uh_ulen + htons(IPPROTO_UDP)); in calc_ocsum()
/illumos-gate/usr/src/cmd/mdb/common/modules/ip/
H A Dip.c1240 mdb_nhconvert(&hlen, &udph->uh_ulen, sizeof (hlen)); in udphdr_print()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge.c5274 (uint16_t)(udp_hdr->uh_ulen*4); in ql_hw_lso_setup()