Home
last modified time | relevance | path

Searched refs:ports (Results 1 – 25 of 51) sorted by relevance

123

/net/dsa/
Ddsa2.c33 list_for_each_entry(dp, &dst->ports, list) { in dsa_switch_find()
68 INIT_LIST_HEAD(&dst->ports); in dsa_tree_alloc()
138 list_for_each_entry(dp, &dst->ports, list) in dsa_tree_find_port_by_node()
203 list_for_each_entry(dp, &dst->ports, list) { in dsa_tree_setup_routing_table()
218 list_for_each_entry(dp, &dst->ports, list) in dsa_tree_find_first_cpu()
236 list_for_each_entry(dp, &dst->ports, list) in dsa_tree_setup_default_cpu()
247 list_for_each_entry(dp, &dst->ports, list) in dsa_tree_teardown_default_cpu()
443 list_for_each_entry(dp, &ds->dst->ports, list) { in dsa_switch_setup()
488 list_for_each_entry(dp, &ds->dst->ports, list) in dsa_switch_setup()
518 list_for_each_entry(dp, &ds->dst->ports, list) in dsa_switch_teardown()
[all …]
Dtag_ocelot.c147 ocelot_port = ocelot->ports[dp->index]; in ocelot_xmit()
248 if (ocelot->ports[src_port]->vlan_aware && in ocelot_rcv()
/net/netfilter/
Dnf_conntrack_sane.c42 static u_int16_t ports[MAX_PORTS]; variable
44 module_param_array(ports, ushort, &ports_c, 0400);
192 ports[ports_c++] = SANE_PORT; in nf_conntrack_sane_init()
198 HELPER_NAME, SANE_PORT, ports[i], ports[i], in nf_conntrack_sane_init()
202 HELPER_NAME, SANE_PORT, ports[i], ports[i], in nf_conntrack_sane_init()
Dnf_conntrack_tftp.c30 static unsigned short ports[MAX_PORTS]; variable
32 module_param_array(ports, ushort, &ports_c, 0400);
33 MODULE_PARM_DESC(ports, "Port numbers of TFTP servers");
119 ports[ports_c++] = TFTP_PORT; in nf_conntrack_tftp_init()
123 HELPER_NAME, TFTP_PORT, ports[i], i, in nf_conntrack_tftp_init()
127 HELPER_NAME, TFTP_PORT, ports[i], i, in nf_conntrack_tftp_init()
Dnf_conntrack_irc.c25 static unsigned short ports[MAX_PORTS]; variable
49 module_param_array(ports, ushort, &ports_c, 0400);
50 MODULE_PARM_DESC(ports, "port numbers of IRC servers");
280 ports[ports_c++] = IRC_PORT; in nf_conntrack_irc_init()
284 IRC_PORT, ports[i], i, &irc_exp_policy, in nf_conntrack_irc_init()
Dnf_flow_table_ip.c166 struct flow_ports *ports; in nf_flow_tuple_ip() local
198 ports = (struct flow_ports *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ip()
202 tuple->src_port = ports->source; in nf_flow_tuple_ip()
203 tuple->dst_port = ports->dest; in nf_flow_tuple_ip()
443 struct flow_ports *ports; in nf_flow_tuple_ipv6() local
470 ports = (struct flow_ports *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ipv6()
474 tuple->src_port = ports->source; in nf_flow_tuple_ipv6()
475 tuple->dst_port = ports->dest; in nf_flow_tuple_ipv6()
Dnf_conntrack_ftp.c43 static u_int16_t ports[MAX_PORTS]; variable
45 module_param_array(ports, ushort, &ports_c, 0400);
585 ports[ports_c++] = FTP_PORT; in nf_conntrack_ftp_init()
591 HELPER_NAME, FTP_PORT, ports[i], ports[i], in nf_conntrack_ftp_init()
595 HELPER_NAME, FTP_PORT, ports[i], ports[i], in nf_conntrack_ftp_init()
Dxt_multiport.c35 s = minfo->ports[i]; in ports_match_v1()
39 e = minfo->ports[++i]; in ports_match_v1()
Dnf_conntrack_sip.c39 static unsigned short ports[MAX_PORTS]; variable
41 module_param_array(ports, ushort, &ports_c, 0400);
42 MODULE_PARM_DESC(ports, "port numbers of SIP servers");
1672 ports[ports_c++] = SIP_PORT; in nf_conntrack_sip_init()
1676 HELPER_NAME, SIP_PORT, ports[i], i, in nf_conntrack_sip_init()
1680 HELPER_NAME, SIP_PORT, ports[i], i, in nf_conntrack_sip_init()
1684 HELPER_NAME, SIP_PORT, ports[i], i, in nf_conntrack_sip_init()
1688 HELPER_NAME, SIP_PORT, ports[i], i, in nf_conntrack_sip_init()
/net/ipv6/netfilter/
Dnf_socket_ipv6.c32 __be16 *ports, _ports[2]; in extract_icmp6_fields() local
61 ports = skb_header_pointer(skb, inside_hdrlen, in extract_icmp6_fields()
63 if (ports == NULL) in extract_icmp6_fields()
70 *lport = ports[0]; in extract_icmp6_fields()
72 *rport = ports[1]; in extract_icmp6_fields()
/net/ipv4/netfilter/
Dnf_socket_ipv4.c27 __be16 *ports, _ports[2]; in extract_icmp4_fields() local
47 ports = skb_header_pointer(skb, outside_hdrlen + in extract_icmp4_fields()
51 if (ports == NULL) in extract_icmp4_fields()
58 *lport = ports[0]; in extract_icmp4_fields()
60 *rport = ports[1]; in extract_icmp4_fields()
Dipt_CLUSTERIP.c347 const u_int16_t *ports; in clusterip_hashfn() local
350 ports = skb_header_pointer(skb, iph->ihl * 4 + poff, 4, _ports); in clusterip_hashfn()
351 if (ports) { in clusterip_hashfn()
352 sport = ports[0]; in clusterip_hashfn()
353 dport = ports[1]; in clusterip_hashfn()
/net/core/
Dflow_dissector.c126 __be32 *ports, _ports; in __skb_flow_get_ports() local
128 ports = __skb_header_pointer(skb, thoff + poff, in __skb_flow_get_ports()
130 if (ports) in __skb_flow_get_ports()
131 return *ports; in __skb_flow_get_ports()
734 key_ports->ports = __skb_flow_get_ports(skb, nhoff, ip_proto, in __skb_flow_dissect_ports()
1501 if ((__force u16)keys->ports.dst < in __flow_hash_consistentify()
1502 (__force u16)keys->ports.src) { in __flow_hash_consistentify()
1503 swap(keys->ports.src, keys->ports.dst); in __flow_hash_consistentify()
1515 if ((__force u16)keys->ports.dst < in __flow_hash_consistentify()
1516 (__force u16)keys->ports.src) { in __flow_hash_consistentify()
[all …]
/net/netfilter/ipvs/
Dip_vs_sh.c279 __be16 _ports[2], *ports; in ip_vs_sh_get_port() local
290 ports = skb_header_pointer(skb, iph->len, sizeof(_ports), in ip_vs_sh_get_port()
292 if (unlikely(!ports)) in ip_vs_sh_get_port()
296 return ports[0]; in ip_vs_sh_get_port()
298 return ports[1]; in ip_vs_sh_get_port()
Dip_vs_ftp.c61 static unsigned short ports[IP_VS_APP_MAX_PORTS] = {21, 0}; variable
62 module_param_array(ports, ushort, &ports_count, 0444);
63 MODULE_PARM_DESC(ports, "Ports to monitor for FTP control commands");
589 if (!ports[i]) in __ip_vs_ftp_init()
591 ret = register_ip_vs_app_inc(ipvs, app, app->protocol, ports[i]); in __ip_vs_ftp_init()
595 app->name, i, ports[i]); in __ip_vs_ftp_init()
Dip_vs_proto_udp.c38 __be16 _ports[2], *ports = NULL; in udp_conn_schedule() local
44 ports = &uh->source; in udp_conn_schedule()
46 ports = skb_header_pointer( in udp_conn_schedule()
50 if (!ports) { in udp_conn_schedule()
57 &iph->daddr, ports[1]); in udp_conn_schedule()
60 &iph->saddr, ports[0]); in udp_conn_schedule()
Dip_vs_mh.c448 __be16 _ports[2], *ports; in ip_vs_mh_get_port() local
459 ports = skb_header_pointer(skb, iph->len, sizeof(_ports), in ip_vs_mh_get_port()
461 if (unlikely(!ports)) in ip_vs_mh_get_port()
465 return ports[0]; in ip_vs_mh_get_port()
467 return ports[1]; in ip_vs_mh_get_port()
Dip_vs_proto_sctp.c24 __be16 _ports[2], *ports = NULL; in sctp_conn_schedule() local
36 ports = &sh->source; in sctp_conn_schedule()
40 ports = skb_header_pointer( in sctp_conn_schedule()
44 if (!ports) { in sctp_conn_schedule()
51 &iph->daddr, ports[1]); in sctp_conn_schedule()
54 &iph->saddr, ports[0]); in sctp_conn_schedule()
Dip_vs_proto_tcp.c42 __be16 _ports[2], *ports = NULL; in tcp_conn_schedule() local
53 ports = &th->source; in tcp_conn_schedule()
56 ports = skb_header_pointer( in tcp_conn_schedule()
60 if (!ports) { in tcp_conn_schedule()
69 &iph->daddr, ports[1]); in tcp_conn_schedule()
72 &iph->saddr, ports[0]); in tcp_conn_schedule()
/net/ethtool/
Dtunnels.c87 struct nlattr *ports, *table, *entry; in ethnl_tunnel_info_fill_reply() local
94 ports = nla_nest_start(skb, ETHTOOL_A_TUNNEL_INFO_UDP_PORTS); in ethnl_tunnel_info_fill_reply()
95 if (!ports) in ethnl_tunnel_info_fill_reply()
150 nla_nest_end(skb, ports); in ethnl_tunnel_info_fill_reply()
159 nla_nest_cancel(skb, ports); in ethnl_tunnel_info_fill_reply()
/net/ipv6/
Dinet6_hashtables.c61 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet6_lookup_established() local
74 if (!inet6_match(net, sk, saddr, daddr, ports, dif, sdif)) in __inet6_lookup_established()
79 if (unlikely(!inet6_match(net, sk, saddr, daddr, ports, dif, sdif))) { in __inet6_lookup_established()
257 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet6_check_established() local
272 if (likely(inet6_match(net, sk2, saddr, daddr, ports, in __inet6_check_established()
/net/sched/
Dcls_flow.c95 if (flow->ports.ports) in flow_get_proto_src()
96 return ntohs(flow->ports.src); in flow_get_proto_src()
104 if (flow->ports.ports) in flow_get_proto_dst()
105 return ntohs(flow->ports.dst); in flow_get_proto_dst()
Dact_ct.c421 struct flow_ports *ports; in tcf_ct_flow_table_fill_tuple_ipv4() local
444 thoff + sizeof(*ports))) in tcf_ct_flow_table_fill_tuple_ipv4()
451 ports = (struct flow_ports *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv4()
454 tuple->src_port = ports->source; in tcf_ct_flow_table_fill_tuple_ipv4()
455 tuple->dst_port = ports->dest; in tcf_ct_flow_table_fill_tuple_ipv4()
467 struct flow_ports *ports; in tcf_ct_flow_table_fill_tuple_ipv6() local
486 thoff + sizeof(*ports))) in tcf_ct_flow_table_fill_tuple_ipv6()
493 ports = (struct flow_ports *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv6()
496 tuple->src_port = ports->source; in tcf_ct_flow_table_fill_tuple_ipv6()
497 tuple->dst_port = ports->dest; in tcf_ct_flow_table_fill_tuple_ipv6()
/net/ipv4/
Dinet_hashtables.c399 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet_lookup_established() local
413 if (likely(INET_MATCH(net, sk, acookie, ports, dif, sdif))) { in __inet_lookup_established()
417 ports, dif, sdif))) { in __inet_lookup_established()
451 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet_check_established() local
466 if (likely(INET_MATCH(net, sk2, acookie, ports, dif, sdif))) { in __inet_check_established()
519 const __portpair ports = INET_COMBINED_PORTS(sk->sk_dport, sk->sk_num); in inet_ehash_lookup_by_sk() local
533 ports, dif, sdif))) { in inet_ehash_lookup_by_sk()
542 ports, dif, sdif))) { in inet_ehash_lookup_by_sk()
/net/hsr/
Dhsr_main.h203 struct list_head ports; member
228 list_for_each_entry_rcu((port), &(hsr)->ports, port_list)

123