Searched refs:udphdr (Results 1 - 25 of 65) sorted by relevance

123

/freebsd-10.0-release/sys/netinet/
H A Dudp.h41 struct udphdr { struct
H A Dudp_usrreq.c282 off += sizeof(struct udphdr);
345 struct udphdr *uh;
370 if (m->m_len < iphlen + sizeof(struct udphdr)) {
371 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == 0) {
377 uh = (struct udphdr *)((caddr_t)ip + iphlen);
402 if (len > ip_len || len < sizeof(struct udphdr)) {
660 struct udphdr *uh;
685 uh = (struct udphdr *)((caddr_t)ip + (ip->ip_hl << 2));
1207 ui->ui_ulen = htons((u_short)len + sizeof(struct udphdr));
1238 htons((u_short)len + sizeof(struct udphdr)
1291 struct udphdr *udphdr; local
[all...]
H A Dudp_var.h42 struct udphdr ui_u; /* udp header */
/freebsd-10.0-release/contrib/tcpdump/
H A Dudp.h41 struct udphdr { struct
H A Dprint-udp.c111 vat_print(const void *hdr, register const struct udphdr *up)
137 rtp_print(const void *hdr, u_int len, register const struct udphdr *up)
288 register const struct udphdr *up,
296 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up,
364 register const struct udphdr *up;
375 up = (struct udphdr *)bp;
393 if (length < sizeof(struct udphdr)) {
398 length -= sizeof(struct udphdr);
536 sum = udp_cksum(ip, up, length + sizeof(struct udphdr));
550 sum = udp6_cksum(ip6, up, length + sizeof(struct udphdr));
[all...]
H A Dprint-icmp6.c56 static struct udphdr *get_upperlayer(u_char *, u_int *);
309 const struct udphdr *ouh;
594 static struct udphdr *
599 struct udphdr *uh;
621 uh = (struct udphdr *)bp;
/freebsd-10.0-release/cddl/lib/libdtrace/
H A Dudp.d50 struct udphdr *udp_hdr; /* raw UDP header */
69 translator udpinfo_t < struct udphdr *p > {
/freebsd-10.0-release/sys/netinet/libalias/
H A Dalias_cuseeme.c178 struct udphdr *ud = ip_next(pip);
180 if (ntohs(ud->uh_ulen) - sizeof(struct udphdr) >= sizeof(struct cu_header)) {
202 struct udphdr *ud;
H A Dalias_local.h398 udp_next(struct udphdr *udphdr) argument
400 return ((void *)(udphdr + 1));
H A Dalias_nbt.c343 struct udphdr *uh;
352 uh = (struct udphdr *)ip_next(pip);
772 struct udphdr *uh;
788 uh = (struct udphdr *)ip_next(pip);
H A Dalias.c348 struct udphdr *ud;
355 ud = (struct udphdr *)ip_next(ip);
529 struct udphdr *ud;
537 ud = (struct udphdr *)ip_next(ip);
728 struct udphdr *ud;
733 ud = (struct udphdr *)ip_next(pip);
815 struct udphdr *ud;
827 ud = (struct udphdr *)ip_next(pip);
880 ud = (struct udphdr *)ip_next(pip);
1540 struct udphdr *u
[all...]
/freebsd-10.0-release/lib/libstand/
H A Dudp.c69 struct udphdr *uh;
84 uh = (struct udphdr *)pkt - 1;
146 struct udphdr *uh;
154 uh = (struct udphdr *)pkt - 1;
H A Dtftp.c213 struct udphdr *uh;
214 uh = (struct udphdr *) pkt - 1;
232 struct udphdr *uh;
247 uh = (struct udphdr *) pkt - 1;
/freebsd-10.0-release/sys/contrib/octeon-sdk/
H A Dcvmip.h120 cvmip_udp_hdr_t udphdr; member in union:__anon6760
/freebsd-10.0-release/sys/netgraph/netflow/
H A Dnetflow_v9.h110 #define _NETFLOW_V9_MAX_SIZE(x) (x) - sizeof(struct ip6_hdr) - sizeof(struct udphdr) - 16
/freebsd-10.0-release/tools/tools/net80211/wesside/dics/
H A Ddics.c165 struct udphdr* uh;
171 uh = (struct udphdr*) ((char*)iph + 20);
232 struct udphdr* uh;
258 uh = (struct udphdr*) ((char*)iph + 20);
/freebsd-10.0-release/sbin/dhclient/
H A Dpacket.c115 struct udphdr udp;
177 struct udphdr *udp;
189 udp = (struct udphdr *)(buf + bufix + ip_len);
/freebsd-10.0-release/sys/netinet6/
H A Dudp6_usrreq.c161 m_adj(n, off + sizeof(struct udphdr));
182 struct udphdr *uh;
201 IP6_EXTHDR_CHECK(m, off, sizeof(struct udphdr), IPPROTO_DONE);
203 uh = (struct udphdr *)((caddr_t)ip6 + off);
205 IP6_EXTHDR_GET(uh, struct udphdr *, m, off, sizeof(*uh));
272 * here. We need udphdr for IPsec processing so we do that
486 struct udphdr uh;
599 u_int32_t plen = sizeof(struct udphdr) + ulen;
601 struct udphdr *udp6;
755 M_PREPEND(m, hlen + sizeof(struct udphdr), M_NOWAI
[all...]
/freebsd-10.0-release/contrib/ipfilter/ipsd/Celler/
H A Dip_compat.h192 typedef struct udphdr udphdr_t;
/freebsd-10.0-release/contrib/ipfilter/ipsend/.OLD/
H A Dip_compat.h233 typedef struct udphdr udphdr_t;
/freebsd-10.0-release/sys/netpfil/ipfw/
H A Dip_fw_log.c83 #define UDP(p) ((struct udphdr *)(p))
431 struct udphdr *udp;
452 udp = (struct udphdr *)(((char *)ip) + hlen);
457 udp = L3HDR(struct udphdr, ip);
H A Dip_fw_nat.c345 struct udphdr *uh;
365 uh = (struct udphdr *)(ip + 1);
368 offsetof(struct udphdr, uh_sum);
/freebsd-10.0-release/contrib/ipfilter/ipsend/
H A Dipsend.c65 void udpcksum(ip_t *, struct udphdr *, int);
164 udpcksum(ip_t *ip, struct udphdr *udp, int len)
/freebsd-10.0-release/usr.sbin/ppp/
H A Dip.c303 const struct udphdr *uh;
353 uh = (const struct udphdr *)payload;
496 ip_LogDNS(const struct udphdr *uh, const char *direction)
567 const struct udphdr *uh;
650 uh = (const struct udphdr *)payload;
802 uh = (const struct udphdr *)payload;
/freebsd-10.0-release/sbin/natd/
H A Dnatd.c845 struct udphdr* udphdr; local
864 udphdr = (struct udphdr*) ((char*) ip + (ip->ip_hl << 2));
867 ntohs (udphdr->uh_sport),
869 ntohs (udphdr->uh_dport));

Completed in 286 milliseconds

123