Home
last modified time | relevance | path

Searched refs:dport (Results 1 – 25 of 60) sorted by relevance

123

/external/tcpdump/
Dprint-udp.c292 udpipaddr_print(netdissect_options *ndo, const struct ip *ip, int sport, int dport) in udpipaddr_print() argument
313 udpport_string(dport))); in udpipaddr_print()
319 udpport_string(dport))); in udpipaddr_print()
335 udpport_string(dport))); in udpipaddr_print()
341 udpport_string(dport))); in udpipaddr_print()
355 uint16_t sport, dport, ulen; in udp_print() local
377 dport = EXTRACT_16BITS(&up->uh_dport); in udp_print()
380 udpipaddr_print(ndo, ip, sport, dport); in udp_print()
386 udpipaddr_print(ndo, ip, sport, dport); in udp_print()
397 udpipaddr_print(ndo, ip, sport, dport); in udp_print()
[all …]
Dprint-tcp.c162 uint16_t sport, dport, win, urp; local
188 dport = EXTRACT_16BITS(&tp->th_dport);
199 tcpport_string(dport)));
202 tcpport_string(sport), tcpport_string(dport)));
212 tcpport_string(dport)));
215 tcpport_string(sport), tcpport_string(dport)));
262 if (sport > dport)
264 else if (sport == dport) {
271 tha.port = dport << 16 | sport;
275 tha.port = sport << 16 | dport;
[all …]
Dprint-pgm.c153 uint16_t sport, dport; in pgm_print() local
198 dport = EXTRACT_16BITS(&pgm->pgm_dport); in pgm_print()
207 tcpport_string(dport))); in pgm_print()
210 tcpport_string(sport), tcpport_string(dport))); in pgm_print()
220 tcpport_string(dport))); in pgm_print()
223 tcpport_string(sport), tcpport_string(dport))); in pgm_print()
/external/iptables/extensions/
Dlibxt_udp.t4 -p udp -m udp --dport 1;=;OK
5 -p udp -m udp --dport 65535;=;OK
11 -p udp -m udp ! --dport 1;=;OK
12 -p udp -m udp ! --dport 65535;=;OK
13 -p udp -m udp --sport 1 --dport 65535;=;OK
14 -p udp -m udp --sport 65535 --dport 1;=;OK
15 -p udp -m udp ! --sport 1 --dport 65535;=;OK
16 -p udp -m udp ! --sport 65535 --dport 1;=;OK
20 -p udp -m udp --dport -1;;FAIL
Dlibxt_tcp.t4 -p tcp -m tcp --dport 1;=;OK
5 -p tcp -m tcp --dport 65535;=;OK
11 -p tcp -m tcp ! --dport 1;=;OK
12 -p tcp -m tcp ! --dport 65535;=;OK
13 -p tcp -m tcp --sport 1 --dport 65535;=;OK
14 -p tcp -m tcp --sport 65535 --dport 1;=;OK
15 -p tcp -m tcp ! --sport 1 --dport 65535;=;OK
16 -p tcp -m tcp ! --sport 65535 --dport 1;=;OK
19 -p tcp -m tcp --dport -1;;FAIL
Dlibxt_dccp.t4 -p dccp -m dccp --dport 1;=;OK
5 -p dccp -m dccp --dport 65535;=;OK
11 -p dccp -m dccp ! --dport 1;=;OK
12 -p dccp -m dccp ! --dport 65535;=;OK
13 -p dccp -m dccp --sport 1 --dport 65535;=;OK
14 -p dccp -m dccp --sport 65535 --dport 1;=;OK
15 -p dccp -m dccp ! --sport 1 --dport 65535;=;OK
16 -p dccp -m dccp ! --sport 65535 --dport 1;=;OK
20 -p dccp -m dccp --dport -1;;FAIL
Dlibxt_connlimit.man25 iptables \-A INPUT \-p tcp \-\-syn \-\-dport 23 \-m connlimit \-\-connlimit\-above 2 \-j REJECT
28 iptables \-A INPUT \-p tcp \-\-syn \-\-dport 23 \-m connlimit \-\-connlimit\-upto 2 \-j ACCEPT
32 iptables \-p tcp \-\-syn \-\-dport 80 \-m connlimit \-\-connlimit\-above 16
37 ip6tables \-p tcp \-\-syn \-\-dport 80 \-s fe80::/64 \-m connlimit \-\-connlimit\-above
41 ip6tables \-p tcp \-\-syn \-\-dport 49152:65535 \-d 2001:db8::1 \-m connlimit
Dlibxt_sctp.t7 -p sctp -m sctp --dport 1;=;OK
8 -p sctp -m sctp --dport 1:65535;=;OK
9 -p sctp -m sctp --dport 65535;=;OK
10 -p sctp -m sctp --dport -1;;FAIL
11 -p sctp -m sctp --dport 65536;;FAIL
Dlibxt_HMARK.t4 -j HMARK --hmark-src-prefix 32 --hmark-dst-prefix 32 --hmark-sport-mask 0xffff --hmark-dport-mask 0…
6 -j HMARK --hmark-src-prefix 1 --hmark-dst-prefix 2 --hmark-sport-mask 0x0003 --hmark-dport-mask 0x0…
8 -j HMARK --hmark-src-prefix 32 --hmark-dst-prefix 32 --hmark-sport-mask 0xffff --hmark-dport-mask 0…
Dlibxt_cpu.man9 iptables \-t nat \-A PREROUTING \-p tcp \-\-dport 80 \-m cpu \-\-cpu 0
12 iptables \-t nat \-A PREROUTING \-p tcp \-\-dport 80 \-m cpu \-\-cpu 1
Dlibxt_SYNPROXY.man48 iptables \-t raw \-A PREROUTING \-i eth0 \-p tcp \-\-dport 80
57 iptables \-A INPUT \-i eth0 \-p tcp \-\-dport 80
64 iptables \-A INPUT \-i eth0 \-p tcp \-\-dport 80 \-m state \-\-state INVALID \-j DROP
Dlibxt_sctp.man4 [\fB!\fP] \fB\-\-destination\-port\fP,\fB\-\-dport\fP \fIport\fP[\fB:\fP\fIport\fP]
24 iptables \-A INPUT \-p sctp \-\-dport 80 \-j DROP
Dlibxt_string.man27 iptables \-A INPUT \-p tcp \-\-dport 80 \-m string \-\-algo bm \-\-string 'GET /index.html' \-j LOG
31 iptables \-p udp \-\-dport 53 \-m string \-\-algo bm \-\-from 40 \-\-to 57 \-\-hex\-string '|03|www…
/external/ltp/testcases/network/iptables/
Diptables_tests.sh229 local dport=45886
235 iptables -A INPUT -p tcp -d 127.0.0.1 --dport $dport -j LOG \
243 tst_resm TINFO "telnet 127.0.0.1 $dport"
244 telnet 127.0.0.1 $dport > tst_iptables.out 2>&1
250 "iptables did not log packets to port $dport"
254 tst_resm TINFO "Packets to port $dport logged."
257 tst_resm TFAIL "telnet to 127.0.0.1 $dport should fail."
275 local dport=0
280 iptables -A INPUT -p tcp -d 127.0.0.1 --dport 45801:45803 -j LOG \
298 for dport in 45801 45802 45803 45804 45805 45806; do
[all …]
/external/autotest/client/deps/lansim/src/py/
Dhost.py177 def _tcp_pick_port(self, dhost, dport): argument
180 if (dhost, dport, p) in self._tcp_fwd_out:
192 dport = pkt.ip.tcp.dport
195 if (shost, sport, dport) in self._tcp_fwd_out:
196 fhost, fport, oport = self._tcp_fwd_out[(shost, sport, dport)]
199 pkt.ip.tcp.dport = fport
206 if dport in self._tcp_fwd_ports:
208 fhost, fport = self._tcp_fwd_ports[dport]
212 if (shost, sport, dport) in self._tcp_fwd_in:
213 lport = self._tcp_fwd_in[(shost, sport, dport)]
[all …]
/external/libnl/src/lib/
Dexp.c130 uint16_t dport = nfnl_exp_get_dst_port(exp, tuple); in nl_cli_exp_parse_src_port() local
131 nfnl_exp_set_ports(exp, tuple, sport, dport); in nl_cli_exp_parse_src_port()
136 uint32_t dport = nl_cli_parse_u32(arg); in nl_cli_exp_parse_dst_port() local
138 nfnl_exp_set_ports(exp, tuple, sport, dport); in nl_cli_exp_parse_dst_port()
/external/autotest/client/site_tests/security_Firewall/
Dbaseline.webservd1 -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
2 -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
Dbaseline.iptables7 -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
8 -A INPUT -d 224.0.0.251/32 -p udp -m udp --dport 5353 -j ACCEPT
Dbaseline.ip6tables7 -A INPUT -d ff02::fb/128 -p udp -m udp --dport 5353 -j ACCEPT
8 -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
/external/selinux/libsemanage/tests/
Dnc_sort_sorted19 -A selinux_new_input -p tcp --dport 80 -j SECMARK --selctx system_u:object_r:http_server_packet_t
20 -A selinux_new_output -p tcp --dport 80 -j SECMARK --selctx system_u:object_r:http_client_packet_t
Dnc_sort_malformed18 base -A selinux_new_input -p tcp --dport 80 -j SECMARK --selctx system_u:object_r:http_server_packe…
22 module -A selinux_new_output -p tcp --dport 80 -j SECMARK --selctx system_u:object_r:http_client_pa…
Dnc_sort_unsorted20 module -A selinux_new_input -p tcp --dport 80 -j SECMARK --selctx system_u:object_r:http_server_pac…
24 module -A selinux_new_output -p tcp --dport 80 -j SECMARK --selctx system_u:object_r:http_client_pa…
/external/iproute2/ip/
Dipxfrm.c479 fprintf(fp, "dport %u ", ntohs(sel->dport)); in xfrm_selector_print()
487 fprintf(fp, "code %u ", ntohs(sel->dport)); in xfrm_selector_print()
493 ntohs(sel->dport)); in xfrm_selector_print()
500 fprintf(fp, "(dport) 0x%.4x ", sel->dport); in xfrm_selector_print()
1271 if (get_u16(&sel->dport, *argv, 0)) in xfrm_selector_upspec_parse()
1273 sel->dport = htons(sel->dport); in xfrm_selector_upspec_parse()
1274 if (sel->dport) in xfrm_selector_upspec_parse()
1298 if (get_u16(&sel->dport, *argv, 0) || in xfrm_selector_upspec_parse()
1299 (sel->dport & ~((__u16)0xff))) in xfrm_selector_upspec_parse()
1301 sel->dport = htons(sel->dport); in xfrm_selector_upspec_parse()
[all …]
/external/libnetfilter_conntrack/src/conntrack/
Dgrp_getter.c44 this->dport = ct->head.orig.l4dst.all; in get_attr_grp_orig_port()
51 this->dport = ct->repl.l4dst.all; in get_attr_grp_repl_port()
80 this->dport = ct->master.l4dst.all; in get_attr_grp_master_port()
Dgrp_setter.c76 ct->head.orig.l4dst.all = this->dport; in set_attr_grp_orig_port()
83 ct->repl.l4dst.all = this->dport; in set_attr_grp_repl_port()
138 ct->master.l4dst.all = this->dport; in set_attr_grp_master_port()

123