Home
last modified time | relevance | path

Searched refs:udphdr (Results 1 – 25 of 44) sorted by relevance

12

/dragonfly/lib/libalias/
H A Dalias_cuseeme.c71 struct udphdr *ud; in AliasHandleCUSeeMeOut()
73 ud = (struct udphdr *)((char *)pip + (pip->ip_hl << 2)); in AliasHandleCUSeeMeOut()
74 if (ntohs(ud->uh_ulen) - sizeof(struct udphdr) >= sizeof(struct cu_header)) { in AliasHandleCUSeeMeOut()
96 struct udphdr *ud; in AliasHandleCUSeeMeIn()
104 ud = (struct udphdr *)((char *)pip + (pip->ip_hl << 2)); in AliasHandleCUSeeMeIn()
H A Dalias_nbt.c206 struct udphdr * uh; in AliasHandleUdpNbt()
212 uh = (struct udphdr *) ((char *) pip + (pip->ip_hl << 2)); in AliasHandleUdpNbt()
215 ndh = (NbtDataHeader *)((char *)uh + (sizeof (struct udphdr))); in AliasHandleUdpNbt()
624 struct udphdr * uh; in AliasHandleUdpNbtNS()
637 uh = (struct udphdr *) ((char *) pip + (pip->ip_hl << 2)); in AliasHandleUdpNbtNS()
639 nsh = (NbtNSHeader *)((char *)uh + (sizeof(struct udphdr))); in AliasHandleUdpNbtNS()
H A Dalias.c334 struct udphdr *ud; in IcmpAliasIn2()
341 ud = (struct udphdr *) ((char *) ip + (ip->ip_hl <<2)); in IcmpAliasIn2()
526 struct udphdr *ud; in IcmpAliasOut2()
533 ud = (struct udphdr *) ((char *) ip + (ip->ip_hl <<2)); in IcmpAliasOut2()
736 struct udphdr *ud; in UdpAliasIn()
743 ud = (struct udphdr *) ((char *) pip + (pip->ip_hl << 2)); in UdpAliasIn()
805 struct udphdr *ud; in UdpAliasOut()
812 ud = (struct udphdr *) ((char *) pip + (pip->ip_hl << 2)); in UdpAliasOut()
1402 struct udphdr *ud; in PacketUnaliasOut()
1414 ud = (struct udphdr *) ((char *) pip + (pip->ip_hl << 2)); in PacketUnaliasOut()
/dragonfly/sys/netinet6/
H A Dudp6_output.c117 u_int32_t plen = sizeof(struct udphdr) + ulen; in udp6_output()
119 struct udphdr *udp6; in udp6_output()
217 M_PREPEND(m, hlen + sizeof(struct udphdr), M_NOWAIT); in udp6_output()
226 udp6 = (struct udphdr *)(mtod(m, caddr_t) + hlen); in udp6_output()
H A Dudp6_usrreq.c140 struct udphdr *uh; in udp6_input()
149 IP6_EXTHDR_CHECK(m, off, sizeof(struct udphdr), IPPROTO_DONE); in udp6_input()
156 uh = (struct udphdr *)((caddr_t)ip6 + off); in udp6_input()
265 m_adj(n, off + sizeof(struct udphdr)); in udp6_input()
313 m_adj(m, off + sizeof(struct udphdr)); in udp6_input()
362 m_adj(m, off + sizeof(struct udphdr)); in udp6_input()
389 struct udphdr uh; in udp6_ctlinput()
/dragonfly/contrib/tcpdump/
H A Dprint-udp.c300 const struct udphdr *up, in udp_cksum()
308 const struct udphdr *up, u_int len) in udp6_cksum()
371 const struct udphdr *up; in udp_print()
380 up = (const struct udphdr *)bp; in udp_print()
394 if (length < sizeof(struct udphdr)) { in udp_print()
411 if (ulen < sizeof(struct udphdr)) { in udp_print()
416 ulen -= sizeof(struct udphdr); in udp_print()
417 length -= sizeof(struct udphdr); in udp_print()
566 sum = udp_cksum(ndo, ip, up, length + sizeof(struct udphdr)); in udp_print()
579 sum = udp6_cksum(ndo, ip6, up, length + sizeof(struct udphdr)); in udp_print()
H A Dudp.h40 struct udphdr { struct
H A Dprint-icmp6.c488 static const struct udphdr *get_upperlayer(netdissect_options *ndo, const u_char *, u_int *);
1029 const struct udphdr *ouh; in icmp6_print()
1331 static const struct udphdr *
1336 const struct udphdr *uh; in get_upperlayer()
1358 uh = (const struct udphdr *)bp; in get_upperlayer()
/dragonfly/sys/netinet/
H A Dip_demux.c247 if (iplen < iphlen + sizeof(struct udphdr)) { in ip_lengthcheck()
251 if (m->m_len < hoff + iphlen + sizeof(struct udphdr)) { in ip_lengthcheck()
252 m = m_pullup(m, hoff + iphlen + sizeof(struct udphdr)); in ip_lengthcheck()
291 struct udphdr *uh; in ip_hashfn()
318 uh = (struct udphdr *)((caddr_t)ip + iphlen); in ip_hashfn()
H A Dudp_usrreq.c352 arg->iphlen + sizeof(struct udphdr), in udp_mcast_input()
377 struct udphdr *uh; in udp_input()
407 KASSERT(m->m_len >= iphlen + sizeof(struct udphdr), in udp_input()
411 uh = (struct udphdr *)((caddr_t)ip + iphlen); in udp_input()
424 if (len > ip_len || len < sizeof(struct udphdr)) { in udp_input()
583 iphlen + sizeof(struct udphdr), &udp_in); in udp_input()
632 m_adj(m, iphlen + sizeof(struct udphdr)); in udp_input()
746 const struct udphdr *uh; in udp_get_inpnotify()
748 uh = (const struct udphdr *) in udp_get_inpnotify()
776 const struct udphdr *uh; in udp_ctlinput()
[all …]
H A Dudp.h45 struct udphdr { struct
H A Dudp_var.h82 struct udphdr ui_u; /* udp header */
/dragonfly/stand/lib/
H A Dudp.c64 struct udphdr *uh; in sendudp()
79 uh = (struct udphdr *)pkt - 1; in sendudp()
137 struct udphdr *uh; in readudp()
145 uh = (struct udphdr *)pkt - 1; in readudp()
H A Dtftp.c161 struct udphdr *uh; in recvtftp()
164 uh = (struct udphdr *) pkt - 1; in recvtftp()
/dragonfly/sbin/dhclient/
H A Dpacket.c114 struct udphdr udp; in assemble_udp_ip_header()
165 struct udphdr *udp; in decode_udp_ip_header()
177 udp = (struct udphdr *)(buf + bufix + ip_len); in decode_udp_ip_header()
/dragonfly/tools/tools/net80211/wesside/dics/
H A Ddics.c165 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()
/dragonfly/usr.sbin/ppp/
H A Dip.c278 const struct udphdr *uh; in FilterCheck()
328 uh = (const struct udphdr *)payload; in FilterCheck()
470 ip_LogDNS(const struct udphdr *uh, const char *direction) in ip_LogDNS()
541 const struct udphdr *uh; in PacketCheck()
624 uh = (const struct udphdr *)payload; in PacketCheck()
776 uh = (const struct udphdr *)payload; in PacketCheck()
/dragonfly/usr.sbin/traceroute/
H A Dtraceroute.c505 sizeof(struct udphdr) + sizeof(struct packetdata)); in main()
899 struct udphdr *up = (struct udphdr *)(p + lsrrlen); in send_probe()
1034 struct udphdr *up; in packet_ok()
1056 up = (struct udphdr *)((u_char *)hip + hlen); in packet_ok()
/dragonfly/sbin/natd/
H A Dnatd.c626 struct udphdr* udphdr; in FormatPacket() local
645 udphdr = (struct udphdr *)((char *)ip + (ip->ip_hl << 2)); in FormatPacket()
648 ntohs(udphdr->uh_sport), in FormatPacket()
650 ntohs(udphdr->uh_dport)); in FormatPacket()
/dragonfly/contrib/wpa_supplicant/src/ap/
H A Dfils_hlp.c162 struct udphdr *udph; in fils_dhcp_handler()
483 const struct udphdr *udph; in fils_process_hlp_udp()
489 udph = (const struct udphdr *) (iph + 1); in fils_process_hlp_udp()
/dragonfly/tools/tools/netrate/pktgen/
H A Dpktgen.c468 psum = htons((u_short)pktg->pktg_datalen + sizeof(struct udphdr) + in pktgen_start_ifsq_handler()
470 ulen = htons(pktg->pktg_datalen + sizeof(struct udphdr)); in pktgen_start_ifsq_handler()
529 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); in pktgen_start_ifsq_handler()
/dragonfly/sys/net/ip6fw/
H A Dip6_fw.c362 struct udphdr *const udp = (struct udphdr *) ((caddr_t) ip6+ off); in ip6fw_report()
642 struct udphdr *udp; in ip6_fw_chk()
656 udp = (struct udphdr *) ((caddr_t)ip6 + off); in ip6_fw_chk()
/dragonfly/stand/boot/pc32/libi386/
H A Dpxe.c627 struct udphdr *uh; in readudp()
630 uh = (struct udphdr *) pkt - 1; in readudp()
/dragonfly/contrib/wpa_supplicant/src/common/
H A Ddhcp.h59 struct udphdr udph;
/dragonfly/contrib/dhcpcd/src/
H A Ddhcp.h176 struct udphdr udp;

12