Searched refs:udp (Results 1 - 25 of 29) sorted by relevance

12

/darwin-on-arm/xnu/bsd/netinet/
H A Ddhcp.h41 #include <netinet/udp.h>
63 struct udphdr udp; member in struct:dhcp_packet
H A DMakefile24 tcpip.h udp.h udp_var.h
H A Dbootp.h42 #include <netinet/udp.h>
H A Din_proto.c85 #include <netinet/udp.h>
300 SYSCTL_NODE(_net_inet, IPPROTO_UDP, udp, CTLFLAG_RW|CTLFLAG_LOCKED, 0, "UDP");
H A Din_dhcp.c65 #include <netinet/udp.h>
184 bzero(&pkt->udp, sizeof(pkt->udp));
193 pkt->udp.uh_sport = htons(IPPORT_BOOTPC);
194 pkt->udp.uh_dport = htons(IPPORT_BOOTPS);
195 pkt->udp.uh_sum = 0;
196 pkt->udp.uh_ulen = htons(pkt_size - sizeof(pkt->ip));
H A Dip_mroute.c73 #include <netinet/udp.h>
1899 struct udphdr *udp = (struct udphdr *)(((char *)ip) + (ip->ip_hl << 2)); local
1900 switch (ntohs(udp->uh_dport) & 0xc000) {
1915 log(LOG_DEBUG, "port %x prio%d\n", ntohs(udp->uh_dport), prio);
H A Dip_fw2.c105 #include <netinet/udp.h>
1158 struct udphdr *const udp = (struct udphdr *)icmp; local
1191 ntohs(udp->uh_sport),
1193 ntohs(udp->uh_dport));
2070 struct udphdr *udp; local
2073 udp = L3HDR(struct udphdr, ip);
2074 dst_port = udp->uh_dport;
2075 src_port = udp->uh_sport;
H A Din_pcblist.c79 #include <netinet/udp.h>
H A Din_tclass.c53 #include <netinet/udp.h>
H A Dudp_usrreq.c99 #include <netinet/udp.h>
234 * allocate lock group attribute and group for udp pcb mutexes
616 /* preserve the udp header */
860 * Notify a udp user of an asynchronous error;
1646 /* Check that the values of udp send and recv space do not exceed sb_max */
/darwin-on-arm/xnu/bsd/man/man4/
H A DMakefile43 udp.4 \
/darwin-on-arm/xnu/bsd/netinet6/
H A Desp_output.c87 #include <netinet/udp.h> /* for nat traversal */
255 struct udphdr *udp = NULL; local
412 udp = mtod(md, struct udphdr *);
421 if (sav->remote_ike_port == htons(udp->uh_dport)) {
423 udp->uh_dport = sav->natt_encapsulated_src_port;
424 udp->uh_sum = 0; /* don't need checksum with ESP auth */
459 udp = mtod(n, struct udphdr *);
460 esp = (struct esp *)(void *)((caddr_t)udp + sizeof(struct udphdr));
470 udp = mtod(md, struct udphdr *);
471 esp = (struct esp *)(void *)((caddr_t)udp
[all...]
H A Dip6_fw.c123 #include <netinet/udp.h>
422 struct udphdr *const udp = (struct udphdr *) ((caddr_t) ip6+ off); local
494 ntohs(udp->uh_sport));
501 ntohs(udp->uh_dport));
705 struct udphdr *udp; local
719 udp = (struct udphdr *) ((caddr_t)ip6 + off);
720 src_port = ntohs(udp->uh_sport);
721 dst_port = ntohs(udp->uh_dport);
H A Desp_input.c90 #include <netinet/udp.h>
144 // strip the udp header that's encapsulating ESP
204 // expect udp-encap and esp packets only
427 // offset includes the outer ip and udp header lengths.
432 "IPv4 ESP input: invalid udp encapsulated ESP packet length \n"));
649 struct udphdr *udp; local
666 udp = (struct udphdr *)(void *)(((u_int8_t *)ip) + off);
670 sav->natt_encapsulated_src_port = udp->uh_sport;
671 } else if (sav->natt_encapsulated_src_port != udp->uh_sport) { /* something wrong */
677 udp
[all...]
H A Dudp6_output.c123 #include <netinet/udp.h>
H A Din6_proto.c124 #include <netinet/udp.h>
H A Dudp6_usrreq.c122 #include <netinet/udp.h>
H A Dipsec.c91 #include <netinet/udp.h>
98 #include <netinet/udp.h>
949 * (like 4.4BSD tcp/udp processing). XXX should we panic here?
3061 struct udphdr *udp; local
3078 udp = (struct udphdr *)(void *)(((u_int8_t *)ip) + hlen);
3079 sin->sin_port = udp->uh_dport;
/darwin-on-arm/xnu/bsd/net/classq/
H A Dclassq_util.c81 #include <netinet/udp.h>
/darwin-on-arm/xnu/bsd/net/
H A Dpf.c97 #include <netinet/udp.h>
2066 pf_cksum_fixup(u_int16_t cksum, u_int16_t old, u_int16_t new, u_int8_t udp) argument
2070 if (udp && !cksum)
2075 if (udp && !l)
3662 if (pd->hdr.udp == NULL)
3664 sport = pd->hdr.udp->uh_sport;
3665 dport = pd->hdr.udp->uh_dport;
4049 sxport.port = pd->hdr.udp->uh_sport;
4050 dxport.port = pd->hdr.udp->uh_dport;
4051 hdrlen = sizeof (*pd->hdr.udp);
[all...]
H A Dbpf.c116 #include <netinet/udp.h>
H A Dntstat.c56 #include <netinet/udp.h>
H A Dpf_norm.c82 #include <netinet/udp.h>
H A Dpfvar.h1406 struct udphdr *udp; member in union:pf_pdesc::__anon272
/darwin-on-arm/xnu/bsd/kern/
H A Dkpi_socketfilter.c48 #include <netinet/udp.h>

Completed in 258 milliseconds

12