udphdr
struct udphdr *udp;
udp = (struct udphdr *)p;
struct udphdr udp;
struct udphdr udp;
datalen -= sizeof(struct udphdr);
fwrite(&udp, sizeof(struct udphdr), 1, packet_log); /* UDP */
udp_cksum(struct packhdr *hdr, const struct udphdr *u, u_int16_t *d)
int i, hdrlen, tlen = ntohs(u->uh_ulen) - sizeof(struct udphdr);
for (i = 0; i < (int)sizeof(struct udphdr); i += 2)
static int udp_cksum(struct packhdr *, const struct udphdr *,
struct udphdr *uh;
uh = (struct udphdr *)pkt - 1;
struct udphdr *uh;
uh = (struct udphdr *)pkt - 1;
offsetof(struct udphdr, uh_sum);
offsetof(struct udphdr, uh_sum);
offset = hdrlen + offsetof(struct udphdr, uh_sum);
hdr->csum_offset = offsetof(struct udphdr, uh_sum);
struct udphdr *uh;
uh = (struct udphdr *)pkt - 1;
struct udphdr *uh;
uh = (struct udphdr *)pkt - 1;
struct udphdr *uh;
uh = (struct udphdr *) pkt - 1;
ext->udp = (struct udphdr *)(mtod(m, caddr_t) + hoff);
struct udphdr *uh;
uh = mtod(m, struct udphdr *);
struct udphdr *uh;
struct udphdr *uh = _uh;
struct udphdr *uh = &pd2.hdr.udp;
pd->proto == IPPROTO_UDP ? sizeof(struct udphdr) :
struct udphdr *uh = &pd->hdr.udp;
ntohs(uh->uh_ulen) < sizeof(struct udphdr)) {
struct udphdr udp;
struct udphdr *udp;
sizeof(struct udphdr) +
(mtod(m0, caddr_t) + hlen + sizeof(struct udphdr));
plen += sizeof(struct udphdr);
udp = (struct udphdr *)(mtod(m0, caddr_t) + hlen);
const struct udphdr *uh;
len = pip->ip_hl * 4 + sizeof(struct udphdr);
uh = (struct udphdr *)(mtod(m0, caddr_t) + pip->ip_hl * 4);
struct udphdr *udp;
min_hdrlen = sizeof(struct udphdr);
offset += offsetof(struct udphdr, uh_sum);
offset += offsetof(struct udphdr, uh_sum);
if (m->m_pkthdr.len < skip + sizeof(struct udphdr)) {
m_copyback(m, skip + offsetof(struct udphdr, uh_sum),
m_copyback(m, skip + offsetof(struct udphdr,
struct udphdr *uh;
mi = m_makespace(m, iphlen, sizeof(struct udphdr), &roff);
uh = (struct udphdr *)(mtod(mi, caddr_t) + roff);
adjust += sizeof(struct udphdr);
ui->ui_len = htons((u_int16_t)len + sizeof (struct udphdr));
struct ip6_hdr *, int, struct udphdr *, struct sockaddr *,
struct udphdr *uh;
uh = ip6_exthdr_get(mp, iphlen, sizeof(struct udphdr));
len < sizeof(struct udphdr)) {
int skip = iphlen + sizeof(struct udphdr);
mtod(m, u_char *) + sizeof(struct udphdr), iphlen);
m_adj(m, sizeof(struct udphdr));
skip -= sizeof(struct udphdr);
int off = iphlen + sizeof(struct udphdr);
struct ip6_hdr *ip6, int hlen, struct udphdr *uh,
struct udphdr uh;
struct udphdr *uhp;
uhp = (struct udphdr *)((caddr_t)ip + (ip->ip_hl << 2));
struct udphdr ui_u; /* udp header */
min_hdrlen = sizeof(struct udphdr);
icmp_len = sizeof(struct ip6_hdr) + sizeof(struct udphdr);
offset += offsetof(struct udphdr, uh_sum);
offset += offsetof(struct udphdr, uh_sum);
M_PREPEND(m, hlen + sizeof(struct udphdr), M_DONTWAIT);
udp6 = (struct udphdr *)(mtod(m, caddr_t) + hlen);
u_int32_t plen = sizeof(struct udphdr) + ulen;
struct udphdr *udp6;
struct udphdr udp;
struct udphdr *udp;
udp = (struct udphdr *)(buf + ip_len);
struct udphdr udp;
struct udphdr *udp;
udp = (struct udphdr *)(buf + offset + ip_len);
sizeof(struct udphdr) + dhcplen;
struct udphdr uh;
struct udphdr *uh;
uh = (struct udphdr *)((uint8_t *)ip6 + sizeof(*ip6));
const struct udphdr *uh;
uh = (const struct udphdr *) (((const char *) pip) +
if (pip->ip_hl * 4 + sizeof(struct udphdr) > len)
PARSE_FUNC_DECLARATION(udphdr)
struct udphdr *udp;
static inline void swap_udp(struct udphdr *udp);
static inline void *parse_udp(struct udphdr *udp);
static inline void swap_udp(struct udphdr *udp) {
static inline void *parse_udp(struct udphdr *udp) {
struct udphdr *udp = NULL;
static inline uint16_t calc_csum_udp4(struct udphdr *udp, struct iphdr *ipv4) {
static inline uint16_t calc_csum_udp6(struct udphdr *udp, struct ipv6hdr *ipv6) {
sizeof(struct udphdr))) == NULL)
sizeof(struct udphdr))) == NULL)
sizeof(struct udphdr))) == NULL)
sizeof(struct udphdr) -
sizeof(struct udphdr) -
const struct udphdr *ouh;
ouh = (struct udphdr *)(((u_char *)oip) + hlen);
const struct udphdr *ouh;
ouh = (struct udphdr *)(((u_char *)oip) + hlen);
const struct udphdr *ouh;
vat_print(const void *hdr, u_int len, const struct udphdr *up)
rtp_print(const void *hdr, u_int len, const struct udphdr *up)
const struct udphdr *up;
up = (const struct udphdr *)bp;
sizeof(struct udphdr) + sizeof(struct packetdata));
packetlen += sizeof(struct udphdr);
struct udphdr *get_udphdr(struct tr_conf *, struct ip6_hdr *, u_char *);
struct udphdr *up = (struct udphdr *)(p + conf->lsrrlen);
struct udphdr *up;
up = (struct udphdr *)((u_char *)hip + hlen);
struct udphdr *up;
struct udphdr *
return(useicmp ? (struct udphdr *)cp : NULL);
return(useicmp ? NULL : (struct udphdr *)cp);
(1500 - sizeof(struct ip) - sizeof(struct udphdr) - OPTIONS_OFFSET)
struct udphdr udp;
struct udphdr *udp;
udp = (struct udphdr *)(buf + offset + ip_len);