Home
last modified time | relevance | path

Searched refs:udp (Results 1 – 25 of 343) sorted by relevance

12345678910>>...14

/external/iptables/extensions/
Dlibxt_udp.t2 -p udp -m udp --sport 1;=;OK
3 -p udp -m udp --sport 65535;=;OK
4 -p udp -m udp --dport 1;=;OK
5 -p udp -m udp --dport 65535;=;OK
6 -p udp -m udp --sport 1:1023;=;OK
7 -p udp -m udp --sport 1024:65535;=;OK
8 -p udp -m udp --sport 1024:;-p udp -m udp --sport 1024:65535;OK
9 -p udp -m udp ! --sport 1;=;OK
10 -p udp -m udp ! --sport 65535;=;OK
11 -p udp -m udp ! --dport 1;=;OK
[all …]
Dlibxt_udp.txlate1 iptables-translate -A INPUT -p udp -i eth0 --sport 53 -j ACCEPT
2 nft add rule ip filter INPUT iifname "eth0" udp sport 53 counter accept
4 iptables-translate -A OUTPUT -p udp -o eth0 --dport 53:66 -j DROP
5 nft add rule ip filter OUTPUT oifname "eth0" udp dport 53-66 counter drop
7 iptables-translate -I OUTPUT -p udp -d 8.8.8.8 -j ACCEPT
8 nft insert rule ip filter OUTPUT ip protocol udp ip daddr 8.8.8.8 counter accept
10 iptables-translate -I OUTPUT -p udp --dport 1020:1023 --sport 53 -j ACCEPT
11 nft insert rule ip filter OUTPUT udp sport 53 udp dport 1020-1023 counter accept
Dlibxt_length.txlate4 iptables-translate -A INPUT -p udp -m length --length :400
5 nft add rule ip filter INPUT ip protocol udp meta length 0-400 counter
7 iptables-translate -A INPUT -p udp -m length --length 40
8 nft add rule ip filter INPUT ip protocol udp meta length 40 counter
10 iptables-translate -A INPUT -p udp -m length ! --length 40
11 nft add rule ip filter INPUT ip protocol udp meta length != 40 counter
Dlibxt_udp.c108 const struct xt_udp *udp = (struct xt_udp *)match->data; in udp_print() local
111 print_ports("spt", udp->spts[0], udp->spts[1], in udp_print()
112 udp->invflags & XT_UDP_INV_SRCPT, in udp_print()
114 print_ports("dpt", udp->dpts[0], udp->dpts[1], in udp_print()
115 udp->invflags & XT_UDP_INV_DSTPT, in udp_print()
117 if (udp->invflags & ~XT_UDP_INV_MASK) in udp_print()
119 udp->invflags & ~XT_UDP_INV_MASK); in udp_print()
Dlibxt_multiport.t4 -p udp -m multiport --sports 53,1024:65535;=;OK
5 -p udp -m multiport --dports 53,1024:65535;=;OK
6 -p udp -m multiport --ports 53,1024:65535;=;OK
7 -p udp -m multiport --ports 53,1024:65535;=;OK
15 -p udp -m multiport --sports 1024:65536;;FAIL
17 -p udp -m multiport --ports 1024:65536;;FAIL
Dlibip6t_frag.t12 -d ff02::fb/128 -p udp -m udp --dport 5353 -m frag --fragmore;=;OK
13 -d fe80::/64 -p udp --dport 546 -m frag --fraglast;-d fe80::/64 -p udp -m udp --dport 546 -m frag -…
/external/bcc/examples/lua/
Dsock-parse-dns.lua29 local udp = ip.udp -- Only messages >12 octets (DNS header)
30 if udp.length < 12 then return false end
32 udp = udp.data + 12
33 local label = udp[0]
35 udp = udp + label + 1
36 label = udp[0]
38 udp = udp + label + 1
42 if udp[0] == 0 then
43 local qtype = udp[2] -- Low octet from QTYPE
/external/ltp/runtest/
Dnet.nfs5 nfs3_01 nfs01 -v 3 -t udp
10 nfs3_ipv6_01 nfs01 -6 -v 3 -t udp
16 nfs3_02 nfs02 -v 3 -t udp
21 nfs3_ipv6_02 nfs02 -6 -v 3 -t udp
27 nfs3_03 nfs03 -v 3 -t udp
32 nfs3_ipv6_03 nfs03 -6 -v 3 -t udp
38 nfs3_04 nfs04 -v 3 -t udp
43 nfs3_ipv6_04 nfs04 -6 -v 3 -t udp
49 nfs3_05 nfs05 -v 3 -t udp
54 nfs3_ipv6_05 nfs05 -6 -v 3 -t udp
[all …]
/external/webrtc/test/fuzzers/corpora/sdp-corpus/
Dunittest-1.sdp9 a=candidate:a0+B/1 1 udp 2130706432 192.168.1.5 1234 typ host generation 2
10 a=candidate:a0+B/1 2 udp 2130706432 192.168.1.5 1235 typ host generation 2
11 a=candidate:a0+B/2 1 udp 2130706432 ::1 1238 typ host generation 2
12 a=candidate:a0+B/2 2 udp 2130706432 ::1 1239 typ host generation 2
13 a=candidate:a0+B/3 1 udp 2130706432 74.125.127.126 2345 typ srflx raddr 192.168.1.5 rport 2346 gene…
14 a=candidate:a0+B/3 2 udp 2130706432 74.125.127.126 2347 typ srflx raddr 192.168.1.5 rport 2348 gene…
32 a=candidate:a0+B/1 2 udp 2130706432 192.168.1.5 1236 typ host generation 2
33 a=candidate:a0+B/1 1 udp 2130706432 192.168.1.5 1237 typ host generation 2
34 a=candidate:a0+B/2 2 udp 2130706432 ::1 1240 typ host generation 2
35 a=candidate:a0+B/2 1 udp 2130706432 ::1 1241 typ host generation 2
[all …]
Dunittest-8.sdp9 a=candidate:a0+B/1 1 udp 2130706432 192.168.1.5 1234 typ host generation 2
10 a=candidate:a0+B/1 2 udp 2130706432 192.168.1.5 1235 typ host generation 2
11 a=candidate:a0+B/2 1 udp 2130706432 ::1 1238 typ host generation 2
12 a=candidate:a0+B/2 2 udp 2130706432 ::1 1239 typ host generation 2
13 a=candidate:a0+B/3 1 udp 2130706432 74.125.127.126 2345 typ srflx raddr 192.168.1.5 rport 2346 gene…
14 a=candidate:a0+B/3 2 udp 2130706432 74.125.127.126 2347 typ srflx raddr 192.168.1.5 rport 2348 gene…
36 a=candidate:a0+B/1 2 udp 2130706432 192.168.1.5 1236 typ host generation 2
37 a=candidate:a0+B/1 1 udp 2130706432 192.168.1.5 1237 typ host generation 2
38 a=candidate:a0+B/2 2 udp 2130706432 ::1 1240 typ host generation 2
39 a=candidate:a0+B/2 1 udp 2130706432 ::1 1241 typ host generation 2
[all …]
Dunittest-9.sdp9 a=candidate:a0+B/1 1 udp 2130706432 192.168.1.5 1234 typ host generation 2
10 a=candidate:a0+B/1 2 udp 2130706432 192.168.1.5 1235 typ host generation 2
11 a=candidate:a0+B/2 1 udp 2130706432 ::1 1238 typ host generation 2
12 a=candidate:a0+B/2 2 udp 2130706432 ::1 1239 typ host generation 2
13 a=candidate:a0+B/3 1 udp 2130706432 74.125.127.126 2345 typ srflx raddr 192.168.1.5 rport 2346 gene…
14 a=candidate:a0+B/3 2 udp 2130706432 74.125.127.126 2347 typ srflx raddr 192.168.1.5 rport 2348 gene…
37 a=candidate:a0+B/1 2 udp 2130706432 192.168.1.5 1236 typ host generation 2
38 a=candidate:a0+B/1 1 udp 2130706432 192.168.1.5 1237 typ host generation 2
39 a=candidate:a0+B/2 2 udp 2130706432 ::1 1240 typ host generation 2
40 a=candidate:a0+B/2 1 udp 2130706432 ::1 1241 typ host generation 2
[all …]
/external/iptables/iptables/tests/shell/testcases/ipt-save/dumps/
Dfedora27-iptables26 [0:0] -A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
56 [0:0] -A PRE_FedoraWorkstation_allow -p udp -m udp --dport 137 -j CT --helper netbios-ns
85 [5:6] -A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT
87 [0:0] -A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT
110 [0:0] -A OUTPUT -o virbr0 -p udp -m udp --dport 68 -j ACCEPT
129 [0:0] -A IN_FedoraWorkstation_allow -p udp -m udp --dport 137 -m conntrack --ctstate NEW -j ACCEPT
130 [0:0] -A IN_FedoraWorkstation_allow -p udp -m udp --dport 138 -m conntrack --ctstate NEW -j ACCEPT
132 [0:0] -A IN_FedoraWorkstation_allow -d 224.0.0.251/32 -p udp -m udp --dport 5353 -m conntrack --cts…
133 [0:0] -A IN_FedoraWorkstation_allow -p udp -m udp --dport 1025:65535 -m conntrack --ctstate NEW -j …
Dipt-save-filter.txt18 -A FORWARD -d 192.168.100.77/32 -i ppp0 -p udp -m udp --dport 4166 -j ACCEPT
25 -A FORWARD ! -s 192.168.0.0/24 -i eth2 -p udp -j DROP
28 -A FORWARD ! -s 192.168.100.0/24 -i eth1 -p udp -j DROP
30 -A FORWARD -o ppp0 -p udp -m udp --sport 137:139 -j DROP
31 -A FORWARD -o ppp0 -p udp -m udp --sport 445 -j DROP
34 -A FORWARD -i ppp0 -p udp -m udp --dport 137:139 -j DROP
35 -A FORWARD -i ppp0 -p udp -m udp --dport 445 -j DROP
53 -A block -p udp -j reject_log
64 -A reject_log -p udp -j REJECT --reject-with icmp-port-unreachable
Dfedora27-ip6tables117 -A IN_FedoraWorkstation_allow -p udp -m udp --dport 137 -m conntrack --ctstate NEW -j ACCEPT
118 -A IN_FedoraWorkstation_allow -p udp -m udp --dport 138 -m conntrack --ctstate NEW -j ACCEPT
120 -A IN_FedoraWorkstation_allow -d ff02::fb/128 -p udp -m udp --dport 5353 -m conntrack --ctstate NEW…
121 -A IN_FedoraWorkstation_allow -d fe80::/64 -p udp -m udp --dport 546 -m conntrack --ctstate NEW -j …
122 -A IN_FedoraWorkstation_allow -p udp -m udp --dport 1025:65535 -m conntrack --ctstate NEW -j ACCEPT
/external/tcpdump/tests/
Dbabel1v.out1 … (17) payload length: 20) fe80::68d3:1235:d068:1f9e.6697 > ff02::1:6.6697: [udp sum ok] babel 2 (8)
3 …P (17) payload length: 20) fe80::3428:af91:251:d626.6697 > ff02::1:6.6697: [udp sum ok] babel 2 (8)
5 …17) payload length: 122) fe80::68d3:1235:d068:1f9e.6697 > ff02::1:6.6697: [udp sum ok] babel 2 (11…
12 …(17) payload length: 36) fe80::68d3:1235:d068:1f9e.6697 > ff02::1:6.6697: [udp sum ok] babel 2 (24)
15 …P (17) payload length: 20) fe80::3428:af91:251:d626.6697 > ff02::1:6.6697: [udp sum ok] babel 2 (8)
17 … (17) payload length: 20) fe80::68d3:1235:d068:1f9e.6697 > ff02::1:6.6697: [udp sum ok] babel 2 (8)
19 … (17) payload length: 36) fe80::3428:af91:251:d626.6697 > ff02::1:6.6697: [udp sum ok] babel 2 (24)
22 … (17) payload length: 20) fe80::68d3:1235:d068:1f9e.6697 > ff02::1:6.6697: [udp sum ok] babel 2 (8)
24 …P (17) payload length: 20) fe80::3428:af91:251:d626.6697 > ff02::1:6.6697: [udp sum ok] babel 2 (8)
26 …(17) payload length: 64) fe80::68d3:1235:d068:1f9e.6697 > ff02::1:6.6697: [udp sum ok] babel 2 (52)
[all …]
Dikev2fourv4.out2 …192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 0x0765 -> 0xf5df!] isakmp 2.0 msgid 00000000 coo…
22 …192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 0x0629 -> 0x0cd0!] isakmp 2.0 msgid 00000000 coo…
25 …192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 0x0785 -> 0x7702!] isakmp 2.0 msgid 00000000 coo…
46 …192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 0x071d -> 0x8650!] isakmp 2.0 msgid 00000000 coo…
58 …192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 0x07d9 -> 0xb2d6!] isakmp 2.0 msgid 00000001 coo…
61 …192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 0x0689 -> 0x0748!] isakmp 2.0 msgid 00000001 coo…
64 …192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 0x07e9 -> 0x35ac!] isakmp 2.0 msgid 00000002 coo…
67 …192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 0x06c9 -> 0xdeaf!] isakmp 2.0 msgid 00000003 coo…
70 …192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 0x0639 -> 0xc72b!] isakmp 2.0 msgid 00000002 coo…
73 …192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 0x0639 -> 0x4119!] isakmp 2.0 msgid 00000003 coo…
[all …]
Dikev2fourv.out2 …192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 0x0765 -> 0xf5df!] isakmp 2.0 msgid 00000000 coo…
22 …192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 0x0629 -> 0x0cd0!] isakmp 2.0 msgid 00000000 coo…
25 …192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 0x0785 -> 0x7702!] isakmp 2.0 msgid 00000000 coo…
46 …192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 0x071d -> 0x8650!] isakmp 2.0 msgid 00000000 coo…
58 …192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 0x07d9 -> 0xb2d6!] isakmp 2.0 msgid 00000001 coo…
61 …192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 0x0689 -> 0x0748!] isakmp 2.0 msgid 00000001 coo…
64 …192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 0x07e9 -> 0x35ac!] isakmp 2.0 msgid 00000002 coo…
67 …192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 0x06c9 -> 0xdeaf!] isakmp 2.0 msgid 00000003 coo…
70 …192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 0x0639 -> 0xc72b!] isakmp 2.0 msgid 00000002 coo…
73 …192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 0x0639 -> 0x4119!] isakmp 2.0 msgid 00000003 coo…
[all …]
Dbabel_rtt.out1 …P (17) payload length: 26) fe80::5054:ff:fe85:5da9.6696 > ff02::1:6.6696: [udp sum ok] babel 2 (14)
3 …P (17) payload length: 52) fe80::5054:ff:fe23:4567.6696 > ff02::1:6.6696: [udp sum ok] babel 2 (40)
6 …P (17) payload length: 52) fe80::5054:ff:fe85:5da9.6696 > ff02::1:6.6696: [udp sum ok] babel 2 (40)
9 …P (17) payload length: 26) fe80::5054:ff:fe85:5da9.6696 > ff02::1:6.6696: [udp sum ok] babel 2 (14)
11 …P (17) payload length: 26) fe80::5054:ff:fe23:4567.6696 > ff02::1:6.6696: [udp sum ok] babel 2 (14)
13 …P (17) payload length: 26) fe80::5054:ff:fe23:4567.6696 > ff02::1:6.6696: [udp sum ok] babel 2 (14)
15 …P (17) payload length: 26) fe80::5054:ff:fe85:5da9.6696 > ff02::1:6.6696: [udp sum ok] babel 2 (14)
17 …P (17) payload length: 52) fe80::5054:ff:fe23:4567.6696 > ff02::1:6.6696: [udp sum ok] babel 2 (40)
20 …P (17) payload length: 88) fe80::5054:ff:fe85:5da9.6696 > ff02::1:6.6696: [udp sum ok] babel 2 (76)
/external/android-clat/
Ddump.c136 void dump_udp_generic(const struct udphdr *udp, uint32_t temp_checksum, const uint8_t *payload, in dump_udp_generic() argument
140 temp_checksum = ip_checksum_add(temp_checksum, udp, sizeof(struct udphdr)); in dump_udp_generic()
145 printf("source = %x\n", ntohs(udp->source)); in dump_udp_generic()
146 printf("dest = %x\n", ntohs(udp->dest)); in dump_udp_generic()
147 printf("len = %x\n", ntohs(udp->len)); in dump_udp_generic()
148 printf("check = %x (mine %x)\n", udp->check, my_checksum); in dump_udp_generic()
152 void dump_udp(const struct udphdr *udp, const struct iphdr *ip, const uint8_t *payload, in dump_udp() argument
155 temp_checksum = ipv4_pseudo_header_checksum(ip, sizeof(*udp) + payload_size); in dump_udp()
156 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp()
160 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const uint8_t *payload, in dump_udp6() argument
[all …]
/external/libwebsockets/lib/core-net/
Doutput.c216 wsi->udp->sa_pending = wsi->udp->sa; in lws_issue_raw()
217 wsi->udp->salen_pending = wsi->udp->salen; in lws_issue_raw()
297 wsi->udp->salen = sizeof(wsi->udp->sa); in lws_ssl_capable_read_no_ssl()
299 &wsi->udp->sa, &wsi->udp->salen); in lws_ssl_capable_read_no_ssl()
361 len, 0, &wsi->udp->sa_pending, in lws_ssl_capable_write_no_ssl()
362 wsi->udp->salen_pending); in lws_ssl_capable_write_no_ssl()
365 len, 0, &wsi->udp->sa, wsi->udp->salen); in lws_ssl_capable_write_no_ssl()
/external/bcc/tests/python/
Dtest_clang_complex.c108 case 17: goto udp; in handle_packet()
116 udp: { in handle_packet()
117 struct udp_t *udp = cursor_advance(cursor, sizeof(*udp)); in handle_packet() local
118 if (udp->dport != 5000) { in handle_packet()
162 incr_cksum_l4(&udp->crc, ip->src, cfg_leaf->bpfdev_ip, 1); in handle_packet()
163 incr_cksum_l4(&udp->crc, ip->dst, cfg_leaf->slave_ip, 1); in handle_packet()
Dtest_xlate1.c73 case 17: goto udp; in on_packet()
78 udp: { in on_packet()
79 struct udp_t *udp = cursor_advance(cursor, sizeof(*udp)); in on_packet() local
81 incr_cksum_l4(&udp->crc, orig_dip, xleaf.xdip, 1); in on_packet()
82 incr_cksum_l4(&udp->crc, orig_sip, xleaf.xsip, 1); in on_packet()
/external/linux-kselftest/tools/testing/selftests/net/forwarding/
Drouter_multicast.sh248 $MZ $h1 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 -b 01:00:5e:01:02:03 \
258 $MZ $h1 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 -b 01:00:5e:01:02:03 \
288 $MZ $h1 -6 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 \
298 $MZ $h1 -6 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 \
324 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop
326 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop
328 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop
330 skip_hw dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action pass
334 $MZ $h1 -c 5 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
343 $MZ $h3 -c 5 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c41 struct udphdr udp; member
158 olen += sizeof(h_outer.l4hdr.udp); in encap_ipv4()
159 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in encap_ipv4()
160 h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); in encap_ipv4()
161 h_outer.l4hdr.udp.check = 0; in encap_ipv4()
162 h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + in encap_ipv4()
163 sizeof(h_outer.l4hdr.udp) + in encap_ipv4()
266 olen += sizeof(h_outer.l4hdr.udp); in encap_ipv6()
267 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in encap_ipv6()
268 h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); in encap_ipv6()
[all …]
/external/toybox/toys/pending/
Dtcpsvd.c50 int udp;
239 hints.ai_socktype = ((TT.udp) ?SOCK_DGRAM : SOCK_STREAM); in create_bind_sock()
248 sockfd = xsocket(rp->ai_family, TT.udp ?SOCK_DGRAM :SOCK_STREAM, 0); in create_bind_sock()
250 if (TT.udp) setsockopt(sockfd, IPPROTO_IP, IP_PKTINFO, &set, sizeof(set)); in create_bind_sock()
275 TT.udp = (*toys.which->name == 'u'); in tcpsvd_main()
276 if (TT.udp) toys.optflags &= ~FLAG_C; in tcpsvd_main()
293 if (!TT.udp && (listen(fd, TT.bn) < 0)) perror_exit("Listen failed"); in tcpsvd_main()
308 if (TT.udp) { in tcpsvd_main()
364 setenv("PROTO", TT.udp ?"UDP" :"TCP", 1); in tcpsvd_main()
371 if (!TT.udp) { in tcpsvd_main()
[all …]

12345678910>>...14