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

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dudp.h72 struct udphdr { struct
H A Dudp_usrreq.c278 register struct udphdr *uh;
318 if (m->m_len < iphlen + sizeof(struct udphdr)) {
319 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == 0) {
326 uh = (struct udphdr *)((caddr_t)ip + iphlen);
341 if (len > ip->ip_len || len < sizeof(struct udphdr)) {
493 iphlen + sizeof(struct udphdr),
497 iphlen + sizeof(struct udphdr),
542 int payload_len = len - sizeof(struct udphdr) > 4 ? 4 : len - sizeof(struct udphdr);
543 if (m->m_len < iphlen + sizeof(struct udphdr)
[all...]
H A Dbootp.h125 struct udphdr bp_udp;
H A Ddhcp.h63 struct udphdr udp;
H A Dudp_var.h74 struct udphdr ui_u; /* udp header */
H A Dip_fw2.c660 struct udphdr *const udp = (struct udphdr *)icmp;
1568 struct udphdr *udp;
1570 PULLUP_TO(hlen + sizeof(struct udphdr));
1571 udp = L3HDR(struct udphdr, ip);
H A Dip_compat.h703 typedef struct udphdr udphdr_t;
H A Dip_mroute.c1891 struct udphdr *udp = (struct udphdr *)(((char *)ip) + (ip->ip_hl << 2));
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/
H A Dkdp_udp.h63 struct udphdr { struct
72 struct udphdr ui_u; /* udp header */
H A Dkdp_udp.c394 ui->ui_len = htons((u_short)pkt.len + sizeof (struct udphdr));
462 ui->ui_len = htons((u_short)pkt.len + sizeof (struct udphdr));
736 pkt.len = ntohs((u_short)ui->ui_ulen) - sizeof (struct udphdr);
1198 ui->ui_len = htons((u_short)pkt.len + sizeof (struct udphdr));
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dudp6_output.c145 u_int32_t plen = sizeof(struct udphdr) + ulen;
147 struct udphdr *udp6;
271 M_PREPEND(m, hlen + sizeof(struct udphdr), M_DONTWAIT);
280 udp6 = (struct udphdr *)(mtod(m, caddr_t) + hlen);
H A Desp_output.c165 if ((sav->flags & SADB_X_EXT_NATT) != 0) hdrsiz += sizeof(struct udphdr) + 4;
180 * sizeof(struct udphdr) in case NAT traversal is used
182 return sizeof(struct newesp) + esp_max_ivlen() + 17 + 16 + sizeof(struct udphdr);
227 struct udphdr *udp = NULL;
384 udp = mtod(md, struct udphdr *);
410 esphlen += sizeof(struct udphdr);
411 espoff += sizeof(struct udphdr);
431 udp = mtod(n, struct udphdr *);
432 esp = (struct esp *)((caddr_t)udp + sizeof(struct udphdr));
442 udp = mtod(md, struct udphdr *);
[all...]
H A Dudp6_usrreq.c195 register struct udphdr *uh;
203 IP6_EXTHDR_CHECK(m, off, sizeof(struct udphdr), return IPPROTO_DONE);
218 uh = (struct udphdr *)((caddr_t)ip6 + off);
274 * KAME note: usually we drop udphdr from mbuf here.
275 * We need udphdr for IPsec processing so we do that later.
347 off + sizeof (struct udphdr));
445 m_adj(m, off + sizeof(struct udphdr));
472 struct udphdr uh;
H A Desp_input.c498 struct udphdr *udp;
505 if (m->m_len < off + sizeof(struct udphdr)) {
506 m = m_pullup(m, off + sizeof(struct udphdr));
515 udp = (struct udphdr *)(((u_int8_t *)ip) + off);
H A Dip6_fw.c415 struct udphdr *const udp = (struct udphdr *) ((caddr_t) ip6+ off);
698 struct udphdr *udp;
712 udp = (struct udphdr *) ((caddr_t)ip6 + off);
H A Dipsec.c1002 struct udphdr uh;
1044 if (off + sizeof(struct udphdr) > m->m_pkthdr.len)
1110 struct udphdr uh;
1144 if (off + sizeof(struct udphdr) > m->m_pkthdr.len)
2840 struct udphdr *udp;
2847 if (state->m->m_len < hlen + sizeof(struct udphdr)) {
2848 state->m = m_pullup(state->m, hlen + sizeof(struct udphdr));
2857 udp = (struct udphdr *)(((u_int8_t *)ip) + hlen);
4084 struct udphdr *uh;
4103 uh = (struct udphdr*)((cha
[all...]

Completed in 79 milliseconds