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

12

/external/iptables/include/libiptc/
H A Dipt_kernel_headers.h13 #include <netinet/udp.h>
23 #include <linux/udp.h>
/external/iproute2/include/libiptc/
H A Dipt_kernel_headers.h12 #include <netinet/udp.h>
/external/iptables/extensions/
H A Dlibxt_udp.c16 "udp match options:\n"
68 if ((service = getservbyport(htons(port), "udp")))
108 const struct xt_udp *udp = (struct xt_udp *)match->data; local
110 printf(" udp");
111 print_ports("spt", udp->spts[0], udp->spts[1],
112 udp->invflags & XT_UDP_INV_SRCPT,
114 print_ports("dpt", udp->dpts[0], udp->dpts[1],
115 udp
[all...]
/external/android-clat/
H A Ddump.h23 void dump_udp(const struct udphdr *udp, const struct iphdr *ip,
31 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6,
H A Dclatd_microbenchmark.c39 #include <netinet/udp.h>
89 struct udphdr udp = { local
92 .len = htons(len + sizeof(udp)),
98 .tot_len = htons(len + sizeof(ip) + sizeof(udp)),
109 { &udp, sizeof(udp) }, // Transport header
119 sum = ipv4_pseudo_header_checksum(&ip, ntohs(udp.len));
120 sum = ip_checksum_add(sum, &udp, sizeof(udp));
122 udp
[all...]
H A Ddump.c26 #include <netinet/udp.h>
132 /* print udp header */
133 void dump_udp_generic(const struct udphdr *udp, uint32_t temp_checksum, argument
137 temp_checksum = ip_checksum_add(temp_checksum, udp, sizeof(struct udphdr));
142 printf("source = %x\n",ntohs(udp->source));
143 printf("dest = %x\n",ntohs(udp->dest));
144 printf("len = %x\n",ntohs(udp->len));
145 printf("check = %x (mine %x)\n",udp->check,my_checksum);
148 /* print ipv4/udp header */
149 void dump_udp(const struct udphdr *udp, cons argument
157 dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const uint8_t *payload, size_t payload_size) argument
[all...]
H A Dtranslate.h24 #include <netinet/udp.h>
80 int udp_packet(clat_packet out, clat_packet_index pos, const struct udphdr *udp,
86 int udp_translate(clat_packet out, clat_packet_index pos, const struct udphdr *udp,
H A Dtranslate.c120 * protocol - protocol number (tcp, udp, etc)
154 * protocol - protocol number (tcp, udp, etc)
336 * takes a udp packet and sets it up for translation
338 * udp - pointer to udp header in packet
343 int udp_packet(clat_packet out, clat_packet_index pos, const struct udphdr *udp, argument
353 payload = (const uint8_t *) (udp + 1);
356 return udp_translate(out, pos, udp, old_sum, new_sum, payload, payload_size);
395 * common between ipv4/ipv6 - setup checksum and send udp packet
397 * udp
404 udp_translate(clat_packet out, clat_packet_index pos, const struct udphdr *udp, uint32_t old_sum, uint32_t new_sum, const uint8_t *payload, size_t payload_size) argument
[all...]
H A Dclatd_test.cpp277 struct udphdr *udp = (struct udphdr *) payload; local
278 EXPECT_NE(0, udp->check) << msg << ": UDP checksum 0 should be 0xffff";
281 EXPECT_EQ(payload_length, ntohs(udp->len)) << msg << ": Incorrect UDP length\n";
399 struct udphdr *udp; local
403 udp = (struct udphdr *) (ip + 1);
404 pseudo_checksum = ipv4_pseudo_header_checksum(ip, ntohs(udp->len));
409 udp = (struct udphdr *) (ip6 + 1);
410 pseudo_checksum = ipv6_pseudo_header_checksum(ip6, ntohs(udp->len), IPPROTO_UDP);
418 udp->check = 0;
419 udp
754 struct udphdr *udp; local
[all...]
H A Dchecksum.c21 #include <netinet/udp.h>
85 * calculate the pseudo header checksum for use in tcp/udp/icmp headers
105 * calculate the pseudo header checksum for use in tcp/udp headers
/external/libnl/etc/
H A Dpktloc41 udp.sport u16 tcp+0
42 udp.dport u16 tcp+2
43 udp.length u16 tcp+4
44 udp.csum u16 tcp+6
/external/iptables/include/linux/netfilter/
H A Dnf_conntrack_tuple_common.h22 } udp; member in union:nf_conntrack_man_proto
/external/kernel-headers/original/uapi/linux/netfilter/
H A Dnf_conntrack_tuple_common.h22 } udp; member in union:nf_conntrack_man_proto
/external/dnsmasq/src/
H A Dbpf.c168 u16 uh_ulen; /* udp length */
169 u16 uh_sum; /* udp checksum */
170 } udp; local
219 udp.uh_sport = htons(daemon->dhcp_server_port);
220 udp.uh_dport = htons(daemon->dhcp_client_port);
223 udp.uh_sum = 0;
224 udp.uh_ulen = sum = htons(sizeof(struct udphdr) + len);
231 sum += ((u16 *)&udp)[i];
236 udp.uh_sum = (sum == 0xffff) ? sum : ~sum;
244 iov[2].iov_base = &udp;
[all...]
/external/toybox/toys/pending/
H A Dtcpsvd.c49 int udp;
238 hints.ai_socktype = ((TT.udp) ?SOCK_DGRAM : SOCK_STREAM);
247 sockfd = xsocket(rp->ai_family, TT.udp ?SOCK_DGRAM :SOCK_STREAM, 0);
249 if (TT.udp) setsockopt(sockfd, IPPROTO_IP, IP_PKTINFO, &set, sizeof(set));
274 TT.udp = (*toys.which->name == 'u');
275 if (TT.udp) toys.optflags &= ~FLAG_C;
292 if (!TT.udp && (listen(fd, TT.bn) < 0)) perror_exit("Listen failed");
307 if (TT.udp) {
363 setenv("PROTO", TT.udp ?"UDP" :"TCP", 1);
370 if (!TT.udp) {
[all...]
/external/selinux/libsepol/tests/policies/test-cond/
H A Drefpolicy-base.conf1743 portcon udp 7007 system_u:object_r:afs_bos_port_t:s0
1745 portcon udp 7000 system_u:object_r:afs_fs_port_t:s0
1746 portcon udp 7005 system_u:object_r:afs_fs_port_t:s0
1747 portcon udp 7004 system_u:object_r:afs_ka_port_t:s0
1748 portcon udp 7002 system_u:object_r:afs_pt_port_t:s0
1749 portcon udp 7003 system_u:object_r:afs_vl_port_t:s0
1750 portcon udp 10080 system_u:object_r:amanda_port_t:s0
1752 portcon udp 10081 system_u:object_r:amanda_port_t:s0
1759 portcon udp 2427 system_u:object_r:asterisk_port_t:s0
1760 portcon udp 272
[all...]
/external/dnsmasq/contrib/port-forward/
H A Ddnsmasq-portforward49 protocol=udp
/external/libvpx/libvpx/vp8/common/
H A Dmfqe.c146 unsigned char *udp; local
234 for (up = u, udp = ud, i = 0; i < uvblksize; ++i, up += uv_stride, udp += uvd_stride)
235 memcpy(udp, up, uvblksize);
337 unsigned char *udp = ud_ptr + 4*(i*dest->uv_stride+j); local
342 for (k = 0; k < 4; ++k, up += show->uv_stride, udp += dest->uv_stride,
345 memcpy(udp, up, 4);
/external/autotest/client/deps/lansim/src/py/
H A Dhost.py303 "ip.udp.dport": port},
304 lambda pkt: recv_callback(pkt.ip.udp.data,
306 pkt.ip.udp.sport))
316 pkt_udp = dpkt.udp.UDP(
/external/netperf/doc/examples/
H A Drunemomni.sh168 netperf $HDR -T $i -t omni -f m -c -C -H $control_host -l $length $confidence -- $CSV -H $data -s 1M -S 1M -r $req -b $burst -T udp;HDR=-"P 0";
183 netperf $HDR -T $i -t omni -f m -c -C -H $control_host -l $length $confidence -- $CSV -H $data -s 1M -S 1M -m $req -T udp;HDR=-"P 0";
/external/chromium-trace/catapult/netlog_viewer/netlog_viewer/
H A Devents_view.css82 #events-view-source-list-tbody .source-udp-socket {
/external/dhcpcd-6.8.2/
H A Ddhcp.c40 #include <netinet/udp.h>
115 struct udphdr udp; member in struct:udp_dhcp_packet
1596 struct udphdr *udp; local
1602 udp = &udpp->udp;
1606 * ip structure and an invalid ip_len (basically udp length).
1607 * We then fill the udp structure and put the checksum
1608 * of the whole packet into the udp checksum.
1610 * If we don't do the ordering like so then the udp checksum will be
1622 udp
1646 struct udp_dhcp_packet *udp; local
3180 get_udp_data(const uint8_t **data, const uint8_t *udp) argument
[all...]
/external/wpa_supplicant_8/hostapd/src/ap/
H A Ddhcp_snoop.c11 #include <netinet/udp.h>
/external/wpa_supplicant_8/src/ap/
H A Ddhcp_snoop.c11 #include <netinet/udp.h>
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Ddhcp_snoop.c11 #include <netinet/udp.h>

Completed in 594 milliseconds

12