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

/darwin-on-arm/xnu/bsd/netinet/
H A Dudp.h72 struct udphdr { struct
H A Dbootp.h125 struct udphdr bp_udp;
H A Ddhcp.h63 struct udphdr udp;
H A Dudp_usrreq.c256 register struct udphdr *uh;
302 if (m->m_len < iphlen + sizeof(struct udphdr)) {
303 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == 0) {
310 uh = (struct udphdr *)(void *)((caddr_t)ip + iphlen);
330 if (len > ip->ip_len || len < sizeof(struct udphdr)) {
524 iphlen + sizeof(struct udphdr),
528 iphlen + sizeof(struct udphdr),
557 uh = (struct udphdr *)(void *)((caddr_t)ip + iphlen);
591 int payload_len = len - sizeof(struct udphdr) > 4 ? 4 : len - sizeof(struct udphdr);
[all...]
H A Dudp_var.h74 struct udphdr ui_u; /* udp header */
H A Dip_compat.h703 typedef struct udphdr udphdr_t;
H A Dip_fw2.c1158 struct udphdr *const udp = (struct udphdr *)icmp;
2070 struct udphdr *udp;
2072 PULLUP_TO(hlen + sizeof(struct udphdr));
2073 udp = L3HDR(struct udphdr, ip);
H A Dip_mroute.c1899 struct udphdr *udp = (struct udphdr *)(((char *)ip) + (ip->ip_hl << 2));
/darwin-on-arm/xnu/osfmk/kdp/
H A Dkdp_udp.h64 struct udphdr { struct
73 struct udphdr ui_u; /* udp header */
H A Dkdp_udp.c494 ui->ui_len = htons((u_short)pkt.len + sizeof (struct udphdr));
565 ui->ui_len = htons((u_short)pkt.len + sizeof (struct udphdr));
921 pkt.len = ntohs((u_short)ui->ui_ulen) - (unsigned int)sizeof (struct udphdr);
1442 ui->ui_len = htons((u_short)pkt.len + sizeof (struct udphdr));
/darwin-on-arm/xnu/bsd/netinet6/
H A Desp_output.c193 if ((sav->flags & SADB_X_EXT_NATT) != 0) hdrsiz += sizeof(struct udphdr) + 4;
208 * sizeof(struct udphdr) in case NAT traversal is used
210 return sizeof(struct newesp) + esp_max_ivlen() + 17 + AH_MAXSUMSIZE + sizeof(struct udphdr);
255 struct udphdr *udp = NULL;
412 udp = mtod(md, struct udphdr *);
438 esphlen += sizeof(struct udphdr);
439 espoff += sizeof(struct udphdr);
459 udp = mtod(n, struct udphdr *);
460 esp = (struct esp *)(void *)((caddr_t)udp + sizeof(struct udphdr));
470 udp = mtod(md, struct udphdr *);
[all...]
H A Dudp6_output.c175 u_int32_t plen = sizeof(struct udphdr) + ulen;
177 struct udphdr *udp6;
322 M_PREPEND(m, hlen + sizeof(struct udphdr), M_DONTWAIT);
331 udp6 = (struct udphdr *)(void *)(mtod(m, caddr_t) + hlen);
359 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum);
H A Dudp6_usrreq.c209 register struct udphdr *uh;
218 IP6_EXTHDR_CHECK(m, off, sizeof(struct udphdr), return IPPROTO_DONE);
229 uh = (struct udphdr *)(void *)((caddr_t)ip6 + off);
318 * KAME note: usually we drop udphdr from mbuf here.
319 * We need udphdr for IPsec processing so we do that later.
412 off + sizeof (struct udphdr));
438 uh = (struct udphdr *)(void *)((caddr_t)ip6 + off);
546 m_adj(m, off + sizeof(struct udphdr));
578 struct udphdr uh;
H A Desp_input.c146 size_t stripsiz = sizeof(struct udphdr);
206 !(ip->ip_p == IPPROTO_UDP && off >= sizeof(struct udphdr))) {
439 off -= sizeof(struct udphdr); // off no longer includes the udphdr's size
445 struct udphdr *encap_uh = (__typeof__(encap_uh))(void *)((caddr_t)ip + off);
649 struct udphdr *udp;
656 if (m->m_len < off + sizeof(struct udphdr)) {
657 m = m_pullup(m, off + sizeof(struct udphdr));
666 udp = (struct udphdr *)(void *)(((u_int8_t *)ip) + off);
H A Dip6_fw.c422 struct udphdr *const udp = (struct udphdr *) ((caddr_t) ip6+ off);
705 struct udphdr *udp;
719 udp = (struct udphdr *) ((caddr_t)ip6 + off);
H A Dipsec.c1023 struct udphdr uh;
1065 if (off + sizeof(struct udphdr) > m->m_pkthdr.len)
1131 struct udphdr uh;
1165 if (off + sizeof(struct udphdr) > m->m_pkthdr.len)
3061 struct udphdr *udp;
3068 if (state->m->m_len < hlen + sizeof(struct udphdr)) {
3069 state->m = m_pullup(state->m, hlen + sizeof(struct udphdr));
3078 udp = (struct udphdr *)(void *)(((u_int8_t *)ip) + hlen);
4426 struct udphdr *uh;
/darwin-on-arm/xnu/bsd/net/
H A Dpf.c4724 struct udphdr *uh = pd->hdr.udp;
4962 struct udphdr *uh = pd->hdr.udp;
6320 struct udphdr *uh = pd->hdr.udp;
6834 struct udphdr uh;
7981 if (off < (int)sizeof (struct ip) || len < (int)sizeof (struct udphdr))
8226 struct udphdr uh;
8236 ntohs(uh.uh_ulen) < sizeof (struct udphdr)) {
8820 struct udphdr uh;
8830 ntohs(uh.uh_ulen) < sizeof (struct udphdr)) {
H A Dpfvar.h1406 struct udphdr *udp;
H A Dif_bridge.c3334 amt += sizeof (struct udphdr *);

Completed in 172 milliseconds