/net/netfilter/ |
D | nf_conntrack_sane.c | 41 static u_int16_t ports[MAX_PORTS]; variable 43 module_param_array(ports, ushort, &ports_c, 0400); 183 sane[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_sane_fini() 200 ports[ports_c++] = SANE_PORT; in nf_conntrack_sane_init() 209 sane[i][j].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_sane_init() 214 if (ports[i] == SANE_PORT) in nf_conntrack_sane_init() 217 sprintf(sane[i][j].name, "sane-%d", ports[i]); in nf_conntrack_sane_init() 221 sane[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_sane_init() 226 sane[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_sane_init()
|
D | nf_conntrack_tftp.c | 28 static unsigned short ports[MAX_PORTS]; variable 30 module_param_array(ports, ushort, &ports_c, 0400); 31 MODULE_PARM_DESC(ports, "Port numbers of TFTP servers"); 120 ports[ports_c++] = TFTP_PORT; in nf_conntrack_tftp_init() 129 tftp[i][j].tuple.src.u.udp.port = htons(ports[i]); in nf_conntrack_tftp_init() 134 if (ports[i] == TFTP_PORT) in nf_conntrack_tftp_init() 143 tftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_tftp_init()
|
D | nf_conntrack_irc.c | 27 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"); 253 ports[ports_c++] = IRC_PORT; in nf_conntrack_irc_init() 257 irc[i].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_irc_init() 263 if (ports[i] == IRC_PORT) in nf_conntrack_irc_init() 272 irc[i].tuple.src.l3num, ports[i]); in nf_conntrack_irc_init()
|
D | xt_socket.c | 49 __be16 *ports, _ports[2]; in extract_icmp4_fields() local 77 ports = skb_header_pointer(skb, outside_hdrlen + in extract_icmp4_fields() 81 if (ports == NULL) in extract_icmp4_fields() 88 *lport = ports[0]; in extract_icmp4_fields() 90 *rport = ports[1]; in extract_icmp4_fields() 268 __be16 *ports, _ports[2]; in extract_icmp6_fields() local 295 ports = skb_header_pointer(skb, inside_hdrlen, in extract_icmp6_fields() 297 if (ports == NULL) in extract_icmp6_fields() 304 *lport = ports[0]; in extract_icmp6_fields() 306 *rport = ports[1]; in extract_icmp6_fields()
|
D | nf_conntrack_ftp.c | 42 static u_int16_t ports[MAX_PORTS]; variable 44 module_param_array(ports, ushort, &ports_c, 0400); 591 ftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_ftp_fini() 608 ports[ports_c++] = FTP_PORT; in nf_conntrack_ftp_init() 617 ftp[i][j].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_ftp_init() 623 if (ports[i] == FTP_PORT) in nf_conntrack_ftp_init() 626 sprintf(ftp[i][j].name, "ftp-%d", ports[i]); in nf_conntrack_ftp_init() 630 ftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_ftp_init() 635 ftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_ftp_init()
|
D | xt_multiport.c | 38 s = minfo->ports[i]; in ports_match_v1() 42 e = minfo->ports[++i]; in ports_match_v1()
|
D | xt_hashlimit.c | 522 __be16 _ports[2], *ports; in hashlimit_init_dst() local 575 ports = skb_header_pointer(skb, protoff + poff, sizeof(_ports), in hashlimit_init_dst() 579 ports = _ports; in hashlimit_init_dst() 581 if (!ports) in hashlimit_init_dst() 584 dst->src_port = ports[0]; in hashlimit_init_dst() 586 dst->dst_port = ports[1]; in hashlimit_init_dst()
|
D | nf_conntrack_sip.c | 36 static unsigned short ports[MAX_PORTS]; variable 38 module_param_array(ports, ushort, &ports_c, 0400); 39 MODULE_PARM_DESC(ports, "port numbers of SIP servers"); 1636 ports[ports_c++] = SIP_PORT; in nf_conntrack_sip_init() 1657 sip[i][j].tuple.src.u.udp.port = htons(ports[i]); in nf_conntrack_sip_init() 1662 if (ports[i] == SIP_PORT) in nf_conntrack_sip_init() 1667 pr_debug("port #%u: %u\n", i, ports[i]); in nf_conntrack_sip_init() 1673 sip[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_sip_init()
|
/net/tipc/ |
D | Kconfig | 24 int "Maximum number of ports in a node" 29 Specifies how many ports can be supported by a node. 30 Can range from 127 to 65535 ports; default is 8191. 33 setting it to higher allows for more ports.
|
D | bcast.h | 65 u32 ports[PLSIZE]; member
|
/net/core/ |
D | flow_dissector.c | 51 __be32 *ports, _ports; in __skb_flow_get_ports() local 53 ports = __skb_header_pointer(skb, thoff + poff, in __skb_flow_get_ports() 55 if (ports) in __skb_flow_get_ports() 56 return *ports; in __skb_flow_get_ports() 141 flow->ports = flow_label; in __skb_flow_dissect() 243 flow->ports = __skb_flow_get_ports(skb, nhoff, ip_proto, in __skb_flow_dissect() 276 (__force u32)keys->ports); in __flow_hash_from_keys() 302 if (keys.ports) in __skb_get_hash()
|
/net/netfilter/ipvs/ |
D | ip_vs_ftp.c | 56 static unsigned short ports[IP_VS_APP_MAX_PORTS] = {21, 0}; variable 57 module_param_array(ports, ushort, &ports_count, 0444); 58 MODULE_PARM_DESC(ports, "Ports to monitor for FTP control commands"); 455 if (!ports[i]) in __ip_vs_ftp_init() 457 ret = register_ip_vs_app_inc(net, app, app->protocol, ports[i]); in __ip_vs_ftp_init() 461 app->name, i, ports[i]); in __ip_vs_ftp_init()
|
/net/ipv6/ |
D | inet6_hashtables.c | 111 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet6_lookup_established() local 125 if (!INET6_MATCH(sk, net, saddr, daddr, ports, dif)) in __inet6_lookup_established() 130 if (unlikely(!INET6_MATCH(sk, net, saddr, daddr, ports, dif))) { in __inet6_lookup_established() 251 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet6_check_established() local 268 if (likely(INET6_MATCH(sk2, net, saddr, daddr, ports, dif))) { in __inet6_check_established()
|
D | xfrm6_policy.c | 176 __be16 *ports; in _decode_session6() local 179 ports = (__be16 *)(nh + offset); in _decode_session6() 180 fl6->fl6_sport = ports[!!reverse]; in _decode_session6() 181 fl6->fl6_dport = ports[!reverse]; in _decode_session6()
|
/net/hsr/ |
D | hsr_main.h | 158 struct list_head ports; member 170 list_for_each_entry_rcu((port), &(hsr)->ports, port_list)
|
/net/dsa/ |
D | tag_trailer.c | 93 if (source_port >= DSA_MAX_PORTS || ds->ports[source_port] == NULL) in trailer_rcv() 98 skb->dev = ds->ports[source_port]; in trailer_rcv()
|
D | tag_brcm.c | 139 if (source_port >= DSA_MAX_PORTS || ds->ports[source_port] == NULL) in brcm_tag_rcv() 152 skb->dev = ds->ports[source_port]; in brcm_tag_rcv()
|
D | tag_dsa.c | 121 if (source_port >= DSA_MAX_PORTS || ds->ports[source_port] == NULL) in dsa_rcv() 170 skb->dev = ds->ports[source_port]; in dsa_rcv()
|
D | tag_edsa.c | 134 if (source_port >= DSA_MAX_PORTS || ds->ports[source_port] == NULL) in edsa_rcv() 189 skb->dev = ds->ports[source_port]; in edsa_rcv()
|
/net/ipv4/netfilter/ |
D | ipt_CLUSTERIP.c | 252 const u_int16_t *ports; in clusterip_hashfn() local 255 ports = skb_header_pointer(skb, iph->ihl * 4 + poff, 4, _ports); in clusterip_hashfn() 256 if (ports) { in clusterip_hashfn() 257 sport = ports[0]; in clusterip_hashfn() 258 dport = ports[1]; in clusterip_hashfn()
|
/net/ipv4/ |
D | inet_hashtables.c | 278 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet_lookup_established() local 294 saddr, daddr, ports, dif))) { in __inet_lookup_established() 298 saddr, daddr, ports, dif))) { in __inet_lookup_established() 331 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet_check_established() local 349 saddr, daddr, ports, dif))) { in __inet_check_established()
|
D | xfrm4_policy.c | 129 __be16 *ports = (__be16 *)xprth; in _decode_session4() local 131 fl4->fl4_sport = ports[!!reverse]; in _decode_session4() 132 fl4->fl4_dport = ports[!reverse]; in _decode_session4()
|
/net/bridge/ |
D | br_mdb.c | 79 for (pp = &mp->ports; in br_mdb_fill_info() 336 for (pp = &mp->ports; in br_mdb_add_group() 442 for (pp = &mp->ports; in __br_mdb_del() 457 if (!mp->ports && !mp->mglist && in __br_mdb_del()
|
D | br_multicast.c | 237 if (mp->ports) in br_multicast_group_expired() 265 for (pp = &mp->ports; in br_multicast_del_pg() 276 if (!mp->ports && !mp->mglist && in br_multicast_del_pg() 682 for (pp = &mp->ports; in br_multicast_add_group() 1292 for (pp = &mp->ports; in br_ip4_multicast_query() 1389 for (pp = &mp->ports; in br_ip6_multicast_query() 1436 for (p = mlock_dereference(mp->ports, br); in br_multicast_leave_group() 1456 for (pp = &mp->ports; in br_multicast_leave_group() 1468 if (!mp->ports && !mp->mglist && in br_multicast_leave_group() 1490 for (p = mlock_dereference(mp->ports, br); in br_multicast_leave_group()
|
/net/openvswitch/ |
D | dp_notify.c | 60 hlist_for_each_entry_safe(vport, n, &dp->ports[i], dp_hash_node) { in ovs_dp_notify_wq()
|