Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 25 of 871) sorted by relevance

12345678910>>...35

/freebsd/contrib/netbsd-tests/ipf/regress/
H A Di81 pass in proto icmp from localhost to localhost icmp-type timest
2 block in proto icmp from any to any icmp-type unreach code 1
3 pass in proto icmp all icmp-type unreach code cutoff-preced
4 pass in proto icmp all icmp-type unreach code filter-prohib
5 pass in proto icmp all icmp-type unreach code isolate
6 pass in proto icmp all icmp-type unreach code needfrag
7 pass in proto icmp all icmp-type unreach code net-prohib
8 pass in proto icmp all icmp-type unreach code net-tos
9 pass in proto icmp all icmp-type unreach code host-preced
10 pass in proto icmp all icmp-type unreach code host-prohib
[all …]
H A Df51 block in proto tcp from any port = 23 to any
2 block in proto udp from any port = 23 to any
3 block in proto tcp/udp from any port = 23 to any
4 pass in proto tcp from any port <= 1023 to any
5 pass in proto udp from any port <= 1023 to any
6 pass in proto tcp/udp from any port <= 1023 to any
7 block in proto tcp from any port >= 1024 to any
8 block in proto udp from any port >= 1024 to any
9 block in proto tcp/udp from any port >= 1024 to any
10 pass in proto tcp from any port >= 1024 to any
[all …]
H A Df61 block in proto tcp from any to any port = 23
2 block in proto udp from any to any port = 23
3 block in proto tcp/udp from any to any port = 23
4 pass in proto tcp from any to any port <= 1023
5 pass in proto udp from any to any port <= 1023
6 pass in proto tcp/udp from any to any port <= 1023
7 block in proto tcp from any to any port >= 1024
8 block in proto udp from any to any port >= 1024
9 block in proto tcp/udp from any to any port >= 1024
10 pass in proto tcp from any to any port >= 1024
[all …]
H A Di191 block in quick log level user.debug proto icmp all
2 block in quick log level mail.info proto icmp all
3 block in quick log level daemon.notice proto icmp all
4 block in quick log level auth.warn proto icmp all
5 block in quick log level syslog.err proto icmp all
6 block in quick log level lpr.crit proto icmp all
7 block in quick log level news.alert proto icmp all
8 block in quick log level uucp.emerg proto icmp all
9 block in quick log level cron.debug proto icmp all
10 block in quick log level ftp.info proto icmp all
[all …]
H A Di71 pass in on ed0 proto tcp from localhost to localhost port = 23 flags S/SA
2 block in on lo0 proto tcp from any to any flags A
3 pass in on lo0 proto tcp from any to any flags /SAP
4 block in on lo0 proto tcp from any to any flags 0x80/A
5 pass in on lo0 proto tcp from any to any flags S/18
6 block in on lo0 proto tcp from any to any flags 2/18
7 pass in on lo0 proto tcp from any to any flags 2
8 block in on lo0 proto tcp from any to any flags /16
9 pass in on lo0 proto tcp from any to any flags 2/SA
10 pass in on lo0 proto tcp from any to any flags S/18
[all …]
/freebsd/sbin/pfctl/tests/files/
H A Dpf0004.ok2 block drop in proto tcp all
3 block drop in proto tcp all
4 block drop in proto udp all
10 block drop in proto tcp from any port = ssh to any
11 block drop in proto tcp from any port = ssh to any port 1024:2048
12 block drop in proto tcp from any port 21 >< 2048 to any port 1024:2048
13 block drop in proto tcp from any port != 1234 to any port 1024:2048
14 block drop in proto tcp from any port >= 80 to any port 1024:2048
15 block drop in inet proto tcp from 10.0.0.0/8 port = ssh to 192.168.0.0/16 port = ircd
16 block drop in inet proto tcp from 10.0.0.0/8 port = ssh to 192.168.0.0/16 port = 6668
[all …]
H A Dpf0010.in2 pass in inet proto icmp all
3 pass in inet6 proto icmp6 all
4 block in inet proto icmp all
5 block in inet6 proto icmp6 all
6 block return-rst in inet proto tcp all
7 block return-rst in inet6 proto tcp all
8 block return-rst(ttl 10) in inet proto tcp all
9 block return-rst(ttl 10) in inet6 proto tcp all
10 block return-icmp in inet proto icmp all
11 block return-icmp(0) in inet proto icmp all
[all …]
H A Dpf0010.ok1 pass in inet proto icmp all keep state
2 pass in inet6 proto ipv6-icmp all keep state
3 block drop in inet proto icmp all
4 block drop in inet6 proto ipv6-icmp all
5 block return-rst in inet proto tcp all
6 block return-rst in inet6 proto tcp all
7 block return-rst(ttl 10) in inet proto tcp all
8 block return-rst(ttl 10) in inet6 proto tcp all
9 block return-icmp(port-unr) in inet proto icmp all
10 block return-icmp(net-unr) in inet proto icmp all
[all …]
H A Dpf0087.in3 pass in on lo1000000 proto tcp from any to 10.0.0.2 port 22 keep state
4 pass in on lo1000001 proto tcp from 10.0.0.1 port 22 to 10.0.0.2 keep state
5 pass in on lo1000001 proto udp from 10.0.0.5 to 10.0.0.4 port 53 keep state
6 pass in on lo1000000 proto udp from any to 10.0.0.2 port 53 keep state
7 pass in proto tcp to 10.0.0.1 port 80 keep state
8 pass out on lo1000001 proto udp from any to 10.0.0.2 port 53 keep state
9 pass in proto tcp to 10.0.0.3 port 80 keep state
10 pass out proto tcp to 10.0.0.1 port 81 keep state
11 pass in proto udp to 10.0.0.3 port 53 keep state
12 pass in on lo1000001 proto udp from 10.0.0.2 port 53 to 10.0.0.2 keep state
[all …]
H A Dpf0011.in1 pass in inet proto icmp all icmp-type 0
2 pass in inet proto icmp all icmp-type 0 code 0
3 pass in inet proto icmp all icmp-type 1
4 pass in inet proto icmp all icmp-type 1 code 1
5 pass in inet6 proto ipv6-icmp all icmp6-type 0
6 pass in inet6 proto ipv6-icmp all icmp6-type 0 code 0
7 pass in inet6 proto ipv6-icmp all icmp6-type 1
8 pass in inet6 proto ipv6-icmp all icmp6-type 1 code 1
9 block in inet proto icmp all icmp-type 0
10 block in inet proto icmp all icmp-type 0 code 0
[all …]
H A Dpf0011.ok1 pass in inet proto icmp all icmp-type echorep keep state
2 pass in inet proto icmp all icmp-type echorep code 0 keep state
3 pass in inet proto icmp all icmp-type 1 keep state
4 pass in inet proto icmp all icmp-type 1 code 1 keep state
5 pass in inet6 proto ipv6-icmp all icmp6-type 0 keep state
6 pass in inet6 proto ipv6-icmp all icmp6-type 0 code 0 keep state
7 pass in inet6 proto ipv6-icmp all icmp6-type unreach keep state
8 pass in inet6 proto ipv6-icmp all icmp6-type unreach code admin-unr keep state
9 block drop in inet proto icmp all icmp-type echorep
10 block drop in inet proto icmp all icmp-type echorep code 0
[all …]
H A Dpf0087.ok1 pass in on lo1000000 inet proto tcp from any to 10.0.0.2 port = ssh flags S/SA keep state
2 pass in on lo1000001 inet proto tcp from 10.0.0.1 port = ssh to 10.0.0.2 flags S/SA keep state
3 pass in on lo1000001 inet proto udp from 10.0.0.5 to 10.0.0.4 port = domain keep state
4 pass in on lo1000000 inet proto udp from any to 10.0.0.2 port = domain keep state
5 pass in inet proto tcp from any to 10.0.0.1 port = http flags S/SA keep state
6 pass out on lo1000001 inet proto udp from any to 10.0.0.2 port = domain keep state
7 pass in inet proto tcp from any to 10.0.0.3 port = http flags S/SA keep state
8 pass out inet proto tcp from any to 10.0.0.1 port = 81 flags S/SA keep state
9 pass in inet proto udp from any to 10.0.0.3 port = domain keep state
10 pass in on lo1000001 inet proto udp from 10.0.0.2 port = domain to 10.0.0.2 keep state
[all …]
H A Dpf0047.in37 pass in on lo0 proto tcp from any port = 28 to any label "$srcport"
38 pass in on lo0 proto tcp from any port 28 >< 29 to any label "$srcport"
39 pass in on lo0 proto tcp from any port 28 <> 29 to any label "$srcport"
40 pass in on lo0 proto tcp from any port 28:29 to any label "$srcport"
41 pass in on lo0 proto tcp from any port != 28 to any label "$srcport"
42 pass in on lo0 proto tcp from any port < 28 to any label "$srcport"
43 pass in on lo0 proto tcp from any port <= 28 to any label "$srcport"
44 pass in on lo0 proto tcp from any port > 28 to any label "$srcport"
45 pass in on lo0 proto tcp from any port >= 28 to any label "$srcport"
46 pass in on lo0 proto tcp from any port = 28 to any label "$srcport$srcport"
[all …]
H A Dpf0007.ok3 block return-rst out log on tun1000000 proto tcp all
4 block return-rst in log on tun1000000 proto tcp all
5 block return-icmp(port-unr, port-unr) out log on tun1000000 proto udp all
6 block return-icmp(port-unr, port-unr) in log on tun1000000 proto udp all
13 pass out on tun1000000 inet proto icmp all icmp-type echoreq code 0 keep state
14 pass in on tun1000000 inet proto icmp all icmp-type echoreq code 0 keep state
15 pass out on tun1000000 proto udp all keep state
16 pass in on tun1000000 proto udp from any to any port = domain keep state
17 pass out on tun1000000 proto tcp all flags S/SA modulate state
18 pass in on tun1000000 proto tcp all flags S/SA modulate state
[all …]
H A Dpf0007.in6 block return-rst out log on tun1000000 proto tcp all
7 block return-rst in log on tun1000000 proto tcp all
8 block return-icmp out log on tun1000000 proto udp all
9 block return-icmp in log on tun1000000 proto udp all
20 pass out on tun1000000 inet proto icmp all icmp-type 8 code 0 keep state
21 pass in on tun1000000 inet proto icmp all icmp-type 8 code 0 keep state
23 pass out on tun1000000 proto udp all keep state
25 pass in on tun1000000 proto udp from any to any port = domain keep state
27 pass out on tun1000000 proto tcp all modulate state
28 pass in on tun1000000 proto { tcp udp icmp } all modulate state
[all …]
/freebsd/sys/netipsec/
H A Dipsec_support.h101 #define IPSEC_ENABLED(proto) \
102 ((proto ## _ipsec_support)->enabled & IPSEC_MODULE_ENABLED)
154 #define IPSEC_INPUT(proto, m, ...) \ argument
155 (*(proto ## _ipsec_support)->methods->input)(m, __VA_ARGS__)
156 #define IPSEC_CHECK_POLICY(proto, m, ...) \ argument
157 (*(proto ## _ipsec_support)->methods->check_policy)(m, __VA_ARGS__)
158 #define IPSEC_FORWARD(proto, m) \ argument
159 (*(proto ## _ipsec_support)->methods->forward)(m)
160 #define IPSEC_OUTPUT(proto, m, ...) \ argument
161 (*(proto ## _ipsec_suppor
99 IPSEC_ENABLED(proto) global() argument
152 IPSEC_INPUT(proto,m,...) global() argument
162 IPSEC_CAPS(proto,m,...) global() argument
164 IPSEC_HDRSIZE(proto,inp) global() argument
166 IPSEC_CTLINPUT(proto,param) global() argument
169 UDPENCAP_INPUT(proto,m,...) global() argument
171 UDPENCAP_PCBCTL(proto,inp,sopt) global() argument
201 UDPENCAP_INPUT(proto,m,...) global() argument
203 UDPENCAP_PCBCTL(proto,inp,sopt) global() argument
206 IPSEC_INPUT(proto,...) global() argument
208 IPSEC_CHECK_POLICY(proto,...) global() argument
210 IPSEC_FORWARD(proto,...) global() argument
212 IPSEC_OUTPUT(proto,...) global() argument
214 IPSEC_PCBCTL(proto,...) global() argument
216 IPSEC_CAPS(proto,...) global() argument
218 IPSEC_HDRSIZE(proto,...) global() argument
220 IPSEC_CTLINPUT(proto,...) global() argument
[all...]
/freebsd/contrib/netbsd-tests/ipf/expected/
H A Di81 pass in inet proto icmp from 127.0.0.1/32 to 127.0.0.1/32 icmp-type timest
2 block in inet proto icmp from any to any icmp-type unreach code 1
3 pass in inet proto icmp from any to any icmp-type unreach code 15
4 pass in inet proto icmp from any to any icmp-type unreach code 13
5 pass in inet proto icmp from any to any icmp-type unreach code 8
6 pass in inet proto icmp from any to any icmp-type unreach code 4
7 pass in inet proto icmp from any to any icmp-type unreach code 9
8 pass in inet proto icmp from any to any icmp-type unreach code 11
9 pass in inet proto icmp from any to any icmp-type unreach code 14
10 pass in inet proto icmp from any to any icmp-type unreach code 10
[all …]
H A Di19.dist1 block in log level user.debug quick proto icmp from any to any
2 block in log level mail.info quick proto icmp from any to any
3 block in log level daemon.notice quick proto icmp from any to any
4 block in log level auth.warn quick proto icmp from any to any
5 block in log level syslog.err quick proto icmp from any to any
6 block in log level lpr.crit quick proto icmp from any to any
7 block in log level news.alert quick proto icmp from any to any
8 block in log level uucp.emerg quick proto icmp from any to any
9 block in log level cron.debug quick proto icmp from any to any
10 block in log level ftp.info quick proto icmp from any to any
[all …]
H A Di71 pass in on ed0(!) inet proto tcp from 127.0.0.1/32 to 127.0.0.1/32 port = 23 flags S/SA
2 block in on lo0(!) proto tcp from any to any flags A/FSRPAU
3 pass in on lo0(!) proto tcp from any to any flags /SPA
4 block in on lo0(!) proto tcp from any to any flags C/A
5 pass in on lo0(!) proto tcp from any to any flags S/SA
6 block in on lo0(!) proto tcp from any to any flags S/SA
7 pass in on lo0(!) proto tcp from any to any flags S/FSRPAU
8 block in on lo0(!) proto tcp from any to any flags /A
9 pass in on lo0(!) proto tcp from any to any flags S/SA
10 pass in on lo0(!) proto tcp from any to any flags S/SA
[all …]
H A Di1216 pass in inet proto tcp from 2.2.2.0/24 port = 53 to 5.5.5.5/32
17 pass in inet proto tcp from 3.3.3.3/32 port = 53 to 5.5.5.5/32
18 pass in inet proto tcp from 2.2.2.0/24 port = 9 to 5.5.5.5/32
19 pass in inet proto tcp from 3.3.3.3/32 port = 9 to 5.5.5.5/32
20 pass in inet proto tcp from 2.2.2.0/24 port = 53 to 6.6.6.6/32
21 pass in inet proto tcp from 3.3.3.3/32 port = 53 to 6.6.6.6/32
22 pass in inet proto tcp from 2.2.2.0/24 port = 9 to 6.6.6.6/32
23 pass in inet proto tcp from 3.3.3.3/32 port = 9 to 6.6.6.6/32
24 pass in inet proto udp from 2.2.2.0/24 to 5.5.5.5/32 port = 53
25 pass in inet proto udp from 3.3.3.3/32 to 5.5.5.5/32 port = 53
[all …]
/freebsd/sys/net/
H A Dnetisr.c390 u_int i, proto; in netisr_register() local
392 proto = nhp->nh_proto; in netisr_register()
399 ("%s: nh_name NULL for %u", __func__, proto)); in netisr_register()
423 KASSERT(proto < NETISR_MAXPROT, in netisr_register()
424 ("%s(%u, %s): protocol too big", __func__, proto, name)); in netisr_register()
430 KASSERT(netisr_proto[proto].np_name == NULL, in netisr_register()
431 ("%s(%u, %s): name present", __func__, proto, name)); in netisr_register()
432 KASSERT(netisr_proto[proto].np_handler == NULL, in netisr_register()
433 ("%s(%u, %s): handler present", __func__, proto, name)); in netisr_register()
435 netisr_proto[proto] in netisr_register()
485 u_int i, proto; netisr_clearqdrops() local
517 u_int i, proto; netisr_getqdrops() local
549 u_int proto; netisr_getqlimit() local
578 u_int i, proto; netisr_setqlimit() local
641 u_int i, proto; netisr_unregister() local
683 u_int proto; netisr_register_vnet() local
700 netisr_drain_proto_vnet(struct vnet * vnet,u_int proto) netisr_drain_proto_vnet() argument
758 u_int proto; netisr_unregister_vnet() local
884 netisr_process_workstream_proto(struct netisr_workstream * nwsp,u_int proto) netisr_process_workstream_proto() argument
989 netisr_queue_workstream(struct netisr_workstream * nwsp,u_int proto,struct netisr_work * npwp,struct mbuf * m,int * dosignalp) netisr_queue_workstream() argument
1030 netisr_queue_internal(u_int proto,struct mbuf * m,u_int cpuid) netisr_queue_internal() argument
1056 netisr_queue_src(u_int proto,uintptr_t source,struct mbuf * m) netisr_queue_src() argument
1097 netisr_queue(u_int proto,struct mbuf * m) netisr_queue() argument
1108 netisr_dispatch_src(u_int proto,uintptr_t source,struct mbuf * m) netisr_dispatch_src() argument
1240 netisr_dispatch(u_int proto,struct mbuf * m) netisr_dispatch() argument
1378 u_int counter, proto; sysctl_netisr_proto() local
1482 u_int counter, cpuid, proto; sysctl_netisr_work() local
1535 int first, proto; DB_SHOW_COMMAND() local
[all...]
/freebsd/usr.sbin/ppp/
H A Dproto.c50 proto_WrapperOctets(struct lcp *lcp, u_short proto) in proto_WrapperOctets() argument
52 return (lcp->his_protocomp && !(proto & 0xff00)) ? 1 : 2; in proto_WrapperOctets()
56 proto_Prepend(struct mbuf *bp, u_short proto, unsigned comp, int extra) in proto_Prepend() argument
60 cp[0] = proto >> 8; in proto_Prepend()
61 cp[1] = proto & 0xff; in proto_Prepend()
73 int pri __unused, u_short *proto) in proto_LayerPush() argument
75 log_Printf(LogDEBUG, "proto_LayerPush: Using 0x%04x\n", *proto); in proto_LayerPush()
76 bp = proto_Prepend(bp, *proto, l->lcp.his_protocomp, in proto_LayerPush()
77 acf_WrapperOctets(&l->lcp, *proto)); in proto_LayerPush()
79 link_ProtocolRecord(l, *proto, PROTO_OUT); in proto_LayerPush()
[all …]
/freebsd/sys/netlink/
H A Dnetlink_module.c131 nl_verify_proto(int proto) in nl_verify_proto() argument
133 if (proto < 0 || proto >= NL_MAX_HANDLERS) { in nl_verify_proto()
136 int handler_defined = nl_handlers[proto].cb != NULL; in nl_verify_proto()
141 nl_get_proto_name(int proto) in nl_get_proto_name() argument
143 return (nl_handlers[proto].proto_name); in nl_get_proto_name()
147 netlink_register_proto(int proto, const char *proto_name, nl_handler_f handler) in netlink_register_proto() argument
149 if ((proto < 0) || (proto >= NL_MAX_HANDLERS)) in netlink_register_proto()
152 KASSERT((nl_handlers[proto].cb == NULL), ("netlink handler %d is already set", proto)); in netlink_register_proto()
153 nl_handlers[proto].cb = handler; in netlink_register_proto()
154 nl_handlers[proto].proto_name = proto_name; in netlink_register_proto()
[all …]
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dproto.c46 struct proto *pc_proto;
54 static TAILQ_HEAD(, proto) protos = TAILQ_HEAD_INITIALIZER(protos);
57 proto_register(struct proto *proto, bool isdefault) in proto_register() argument
62 TAILQ_INSERT_HEAD(&protos, proto, prt_next); in proto_register()
66 TAILQ_INSERT_TAIL(&protos, proto, prt_next); in proto_register()
71 proto_alloc(struct proto *proto, int side) in proto_alloc() argument
75 PJDLOG_ASSERT(proto != NULL); in proto_alloc()
82 conn->pc_proto = proto; in proto_alloc()
108 struct proto *proto; in proto_common_setup() local
116 TAILQ_FOREACH(proto, &protos, prt_next) { in proto_common_setup()
[all …]
/freebsd/share/examples/ipfilter/rules/
H A DBASIC_1.FW25 block in log proto tcp all flags S/SA head 101 group 100
28 block in log proto tcp all flags S/SA head 201 group 200
29 block in log proto udp all head 202 group 200
60 pass in quick proto udp from any to any port = 53 keep state group 202
70 pass in quick proto tcp from any to any port = ftp keep state group 201
71 pass in quick proto tcp from any to any port = ftp-data keep state group 201
72 pass in quick proto tcp from any port = ftp-data to any port > 1023 keep state group 101
76 pass in quick proto udp from any to any port = ntp keep state group 202
80 pass in quick proto tcp from any to any port = 22 keep state group 201
81 pass in quick proto tcp from any to any port = telnet keep state group 201
[all …]

12345678910>>...35