| /NextBSD/contrib/tcpdump/ |
| HD | print-udp.c | 99 vat_print(netdissect_options *ndo, const void *hdr, register const struct udphdr *up) in vat_print() 126 register const struct udphdr *up) in rtp_print() 277 register const struct udphdr *up, in udp_cksum() 285 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, in udp6_cksum() 353 register const struct udphdr *up; in udp_print() 364 up = (struct udphdr *)bp; in udp_print() 381 if (length < sizeof(struct udphdr)) { in udp_print() 387 if (ulen < sizeof(struct udphdr)) { in udp_print() 392 ulen -= sizeof(struct udphdr); in udp_print() 393 length -= sizeof(struct udphdr); in udp_print() [all …]
|
| HD | udp.h | 40 struct udphdr { struct
|
| /NextBSD/sys/netinet/ |
| HD | udp_usrreq.c | 332 off += sizeof(struct udphdr); in udp_append() 394 struct udphdr *uh; in udp_input() 425 if (m->m_len < iphlen + sizeof(struct udphdr)) { in udp_input() 426 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == NULL) { in udp_input() 432 uh = (struct udphdr *)((caddr_t)ip + iphlen); in udp_input() 464 if (len > ip_len || len < sizeof(struct udphdr)) { in udp_input() 756 struct udphdr *uh; in udp_common_ctlinput() 781 uh = (struct udphdr *)((caddr_t)ip + (ip->ip_hl << 2)); in udp_common_ctlinput() 1392 ui->ui_ulen = htons((u_short)len + sizeof(struct udphdr)); in udp_output() 1399 plen = (u_short)len + sizeof(struct udphdr); in udp_output() [all …]
|
| HD | in_rss.c | 175 const struct udphdr *uh; in rss_mbuf_software_hash_v4() 296 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4() 297 if (m->m_len < iphlen + sizeof(struct udphdr)) { in rss_mbuf_software_hash_v4()
|
| HD | udp.h | 41 struct udphdr { struct
|
| /NextBSD/lib/libstand/ |
| HD | udp.c | 69 struct udphdr *uh; 84 uh = (struct udphdr *)pkt - 1; 146 struct udphdr *uh; 154 uh = (struct udphdr *)pkt - 1;
|
| HD | tftp.c | 213 struct udphdr *uh; in recvtftp() 214 uh = (struct udphdr *) pkt - 1; in recvtftp() 232 struct udphdr *uh; in recvtftp() 247 uh = (struct udphdr *) pkt - 1; in recvtftp()
|
| /NextBSD/sys/netinet6/ |
| HD | udp6_usrreq.c | 178 m_adj(n, off + sizeof(struct udphdr)); in udp6_append() 200 struct udphdr *uh; in udp6_input() 216 IP6_EXTHDR_CHECK(m, off, sizeof(struct udphdr), IPPROTO_DONE); in udp6_input() 218 uh = (struct udphdr *)((caddr_t)ip6 + off); in udp6_input() 220 IP6_EXTHDR_GET(uh, struct udphdr *, m, off, sizeof(*uh)); in udp6_input() 244 if ((ulen < sizeof(struct udphdr)) || (ulen > plen)) { in udp6_input() 253 if ((ulen < sizeof(struct udphdr)) || (plen != ulen)) { in udp6_input() 502 struct udphdr uh; in udp6_common_ctlinput() 629 u_int32_t plen = sizeof(struct udphdr) + ulen; in udp6_output() 631 struct udphdr *udp6; in udp6_output() [all …]
|
| HD | in6_rss.c | 177 const struct udphdr *uh; in rss_mbuf_software_hash_v6() 317 if (m->m_len < off + sizeof(struct udphdr)) { in rss_mbuf_software_hash_v6() 321 uh = (const struct udphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6()
|
| /NextBSD/sys/netinet/libalias/ |
| HD | alias_cuseeme.c | 178 struct udphdr *ud = ip_next(pip); in AliasHandleCUSeeMeOut() 180 if (ntohs(ud->uh_ulen) - sizeof(struct udphdr) >= sizeof(struct cu_header)) { in AliasHandleCUSeeMeOut() 202 struct udphdr *ud; in AliasHandleCUSeeMeIn()
|
| HD | alias.c | 348 struct udphdr *ud; in IcmpAliasIn2() 355 ud = (struct udphdr *)ip_next(ip); in IcmpAliasIn2() 529 struct udphdr *ud; in IcmpAliasOut2() 537 ud = (struct udphdr *)ip_next(ip); in IcmpAliasOut2() 728 struct udphdr *ud; in UdpAliasIn() 733 ud = (struct udphdr *)ip_next(pip); in UdpAliasIn() 815 struct udphdr *ud; in UdpAliasOut() 827 ud = (struct udphdr *)ip_next(pip); in UdpAliasOut() 880 ud = (struct udphdr *)ip_next(pip); in UdpAliasOut() 1540 struct udphdr *ud; in LibAliasUnaliasOut() [all …]
|
| HD | alias_local.h | 398 udp_next(struct udphdr *udphdr) in udp_next() argument 400 return ((void *)(udphdr + 1)); in udp_next()
|
| HD | alias_nbt.c | 343 struct udphdr *uh; in AliasHandleUdpNbt() 352 uh = (struct udphdr *)ip_next(pip); in AliasHandleUdpNbt() 772 struct udphdr *uh; in AliasHandleUdpNbtNS() 788 uh = (struct udphdr *)ip_next(pip); in AliasHandleUdpNbtNS()
|
| /NextBSD/cddl/lib/libdtrace/ |
| HD | udp.d | 51 struct udphdr *udp_hdr; /* raw UDP header */ 70 translator udpinfo_t < struct udphdr *p > {
|
| /NextBSD/sbin/dhclient/ |
| HD | packet.c | 115 struct udphdr udp; in assemble_udp_ip_header() 166 struct udphdr *udp; in decode_udp_ip_header() 178 udp = (struct udphdr *)(buf + bufix + ip_len); in decode_udp_ip_header()
|
| /NextBSD/tools/tools/net80211/wesside/dics/ |
| HD | dics.c | 165 struct udphdr* uh; 171 uh = (struct udphdr*) ((char*)iph + 20); 232 struct udphdr* uh; in send_stuff() 258 uh = (struct udphdr*) ((char*)iph + 20); in send_stuff()
|
| /NextBSD/contrib/traceroute/ |
| HD | traceroute.c | 427 sizeof(struct udphdr), 436 sizeof(struct udphdr), 1411 struct udphdr *const outudp = (struct udphdr *) outp; in udp_prep() 1428 struct udphdr *const udp = (struct udphdr *) data; in udp_check() 1437 struct udphdr *const outudp = (struct udphdr *) outp; in udplite_prep() 1454 struct udphdr *const udp = (struct udphdr *) data; in udplite_check()
|
| /NextBSD/sys/netpfil/ipfw/ |
| HD | ip_fw_log.c | 84 #define UDP(p) ((struct udphdr *)(p)) 440 struct udphdr *udp; in ipfw_log() 461 udp = (struct udphdr *)(((char *)ip) + hlen); in ipfw_log() 466 udp = L3HDR(struct udphdr, ip); in ipfw_log()
|
| /NextBSD/usr.sbin/ppp/ |
| HD | ip.c | 303 const struct udphdr *uh; in FilterCheck() 353 uh = (const struct udphdr *)payload; in FilterCheck() 496 ip_LogDNS(const struct udphdr *uh, const char *direction) in ip_LogDNS() 567 const struct udphdr *uh; in PacketCheck() 650 uh = (const struct udphdr *)payload; in PacketCheck() 802 uh = (const struct udphdr *)payload; in PacketCheck()
|
| /NextBSD/sbin/natd/ |
| HD | natd.c | 845 struct udphdr* udphdr; in FormatPacket() local 864 udphdr = (struct udphdr*) ((char*) ip + (ip->ip_hl << 2)); in FormatPacket() 867 ntohs (udphdr->uh_sport), in FormatPacket() 869 ntohs (udphdr->uh_dport)); in FormatPacket()
|
| /NextBSD/contrib/ipfilter/ipsend/ |
| HD | ipsend.c | 65 void udpcksum(ip_t *, struct udphdr *, int); 164 udpcksum(ip_t *ip, struct udphdr *udp, int len) in udpcksum()
|
| /NextBSD/sys/netgraph/netflow/ |
| HD | netflow_v9.h | 110 #define _NETFLOW_V9_MAX_SIZE(x) (x) - sizeof(struct ip6_hdr) - sizeof(struct udphdr) - 16
|
| /NextBSD/sys/contrib/octeon-sdk/ |
| HD | cvmip.h | 120 cvmip_udp_hdr_t udphdr; member
|
| /NextBSD/sys/netipsec/ |
| HD | ipsec_output.c | 208 struct udphdr *udp; in ipsec_process_done() 210 size = sizeof(struct udphdr); in ipsec_process_done() 229 udp = (struct udphdr *)(mtod(mi, caddr_t) + off); in ipsec_process_done()
|
| /NextBSD/sys/net/ |
| HD | flowtable.c | 224 struct udphdr *uh; in flowtable_lookup_ipv4() 226 uh = (struct udphdr *)((char *)ip + iphlen); in flowtable_lookup_ipv4() 289 #define UDP(p) ((struct udphdr *)(p)) 344 PULLUP_TO(hlen, ulp, struct udphdr); in flowtable_lookup_ipv6()
|