/net/802/ |
H A D | p8022.c | 41 struct datalink_proto *proto; local 43 proto = kmalloc(sizeof(*proto), GFP_ATOMIC); 44 if (proto) { 45 proto->type[0] = type; 46 proto->header_length = 3; 47 proto->request = p8022_request; 48 proto->sap = llc_sap_open(type, func); 49 if (!proto->sap) { 50 kfree(proto); 57 unregister_8022_client(struct datalink_proto *proto) argument [all...] |
H A D | psnap.c | 35 struct datalink_proto *proto = NULL, *p; local 39 proto = p; 43 return proto; 53 struct datalink_proto *proto; local 62 proto = find_snap_client(skb_transport_header(skb)); 63 if (proto) { 67 rc = proto->rcvfunc(skb, dev, &snap_packet_type, orig_dev); 71 if (unlikely(!proto)) 132 struct datalink_proto *proto = NULL; local 139 proto 156 unregister_snap_client(struct datalink_proto *proto) argument [all...] |
H A D | p8023.c | 44 struct datalink_proto *proto = kmalloc(sizeof(*proto), GFP_ATOMIC); local 46 if (proto) { 47 proto->header_length = 0; 48 proto->request = p8023_request; 50 return proto;
|
H A D | stp.c | 38 const struct stp_proto *proto; local 46 proto = rcu_dereference(garp_protos[eh->h_dest[5] - 48 if (proto && 49 !ether_addr_equal(eh->h_dest, proto->group_address)) 52 proto = rcu_dereference(stp_proto); 54 if (!proto) 57 proto->rcv(proto, skb, dev); 65 int stp_proto_register(const struct stp_proto *proto) argument 77 if (is_zero_ether_addr(proto 88 stp_proto_unregister(const struct stp_proto *proto) argument [all...] |
/net/nfc/ |
H A D | af_nfc.c | 30 static int nfc_sock_create(struct net *net, struct socket *sock, int proto, argument 38 if (proto < 0 || proto >= NFC_SOCKPROTO_MAX) 42 if (proto_tab[proto] && try_module_get(proto_tab[proto]->owner)) { 43 rc = proto_tab[proto]->create(net, sock, proto_tab[proto]); 44 module_put(proto_tab[proto]->owner); 64 rc = proto_register(nfc_proto->proto, 0); 85 proto_unregister(nfc_proto->proto); [all...] |
/net/ipx/ |
H A D | pe2.c | 22 struct datalink_proto *proto = kmalloc(sizeof(*proto), GFP_ATOMIC); local 24 if (proto) { 25 proto->header_length = 0; 26 proto->request = pEII_request; 29 return proto;
|
/net/ieee802154/ |
H A D | af802154.h | 30 extern struct proto ieee802154_raw_prot; 31 extern struct proto ieee802154_dgram_prot;
|
/net/ipv4/ |
H A D | gre_demux.c | 36 int gre_add_protocol(const struct gre_protocol *proto, u8 version) argument 41 return (cmpxchg((const struct gre_protocol **)&gre_proto[version], NULL, proto) == NULL) ? 46 int gre_del_protocol(const struct gre_protocol *proto, u8 version) argument 53 ret = (cmpxchg((const struct gre_protocol **)&gre_proto[version], proto, NULL) == proto) ? 74 greh->protocol = tpi->proto; 119 tpi->proto = greh->protocol; 150 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) { 151 tpi->proto = htons(ETH_P_IP); 159 return iptunnel_pull_header(skb, hdr_len, tpi->proto); 181 struct gre_cisco_protocol *proto; local 241 struct gre_cisco_protocol *proto; local 257 const struct gre_protocol *proto; local 285 const struct gre_protocol *proto; local 312 struct gre_cisco_protocol **proto = (struct gre_cisco_protocol **) local 321 struct gre_cisco_protocol **proto = (struct gre_cisco_protocol **) local [all...] |
/net/8021q/ |
H A D | vlan_core.c | 154 __be16 proto; member in struct:vlan_vid_info 162 if (vid_info->proto == htons(ETH_P_8021Q) && 165 if (vid_info->proto == htons(ETH_P_8021AD) && 172 __be16 proto, u16 vid) 177 if (vid_info->proto == proto && vid_info->vid == vid) 183 static struct vlan_vid_info *vlan_vid_info_alloc(__be16 proto, u16 vid) argument 190 vid_info->proto = proto; 196 static int __vlan_vid_add(struct vlan_info *vlan_info, __be16 proto, u1 argument 171 vlan_vid_info_get(struct vlan_info *vlan_info, __be16 proto, u16 vid) argument 221 vlan_vid_add(struct net_device *dev, __be16 proto, u16 vid) argument 262 __be16 proto = vid_info->proto; local 278 vlan_vid_del(struct net_device *dev, __be16 proto, u16 vid) argument [all...] |
/net/ipv6/ |
H A D | ip6_offload.c | 22 static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, int proto) argument 30 if (proto != NEXTHDR_HOP) { 31 ops = rcu_dereference(inet6_offloads[proto]); 50 proto = opth->nexthdr; 54 return proto; 63 int proto; local 101 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); 105 udpfrag = proto == IPPROTO_UDP && encap; 107 udpfrag = proto == IPPROTO_UDP && !skb->encapsulation; 109 ops = rcu_dereference(inet6_offloads[proto]); 147 int len = 0, proto, optlen = sizeof(*iph); local 177 int proto; local [all...] |
H A D | ip6_checksum.c | 9 __u32 len, unsigned short proto, 55 uproto = (__force u32)htonl(proto); 65 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) argument 72 if (proto == IPPROTO_UDPLITE) { 83 return skb_checksum_init_zero_check(skb, proto, uh->check, 7 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len, unsigned short proto, __wsum csum) argument
|
/net/netfilter/ipset/ |
H A D | ip_set_getport.c | 25 bool src, __be16 *port, u8 *proto) 91 *proto = protocol; 98 __be16 *port, u8 *proto) 120 *proto = protocol; 124 return get_port(skb, protocol, protooff, src, port, proto); 131 __be16 *port, u8 *proto) 143 return get_port(skb, nexthdr, protoff, src, port, proto); 152 u8 proto; local 156 ret = ip_set_get_ip4_port(skb, src, port, &proto); 159 ret = ip_set_get_ip6_port(skb, src, port, &proto); 24 get_port(const struct sk_buff *skb, int protocol, unsigned int protooff, bool src, __be16 *port, u8 *proto) argument 97 ip_set_get_ip4_port(const struct sk_buff *skb, bool src, __be16 *port, u8 *proto) argument 130 ip_set_get_ip6_port(const struct sk_buff *skb, bool src, __be16 *port, u8 *proto) argument [all...] |
H A D | ip_set_hash_ipport.c | 48 u8 proto; member in struct:hash_ipport4_elem 61 ip1->proto == ip2->proto; 70 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto)) 102 &e.port, &e.proto)) 146 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); 147 with_ports = ip_set_proto_with_ports(e.proto); 149 if (e.proto == 0) 154 if (!(with_ports || e.proto == IPPROTO_ICMP)) 210 u8 proto; member in struct:hash_ipport6_elem [all...] |
H A D | ip_set_hash_ipportip.c | 49 u8 proto; member in struct:hash_ipportip4_elem 61 ip1->proto == ip2->proto; 71 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto)) 103 &e.port, &e.proto)) 152 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); 153 with_ports = ip_set_proto_with_ports(e.proto); 155 if (e.proto == 0) 160 if (!(with_ports || e.proto == IPPROTO_ICMP)) 217 u8 proto; member in struct:hash_ipportip6_elem [all...] |
H A D | ip_set_hash_ipportnet.c | 61 u8 proto; member in struct:hash_ipportnet4_elem 75 ip1->proto == ip2->proto; 113 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || 153 &e.port, &e.proto)) 214 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); 215 with_ports = ip_set_proto_with_ports(e.proto); 217 if (e.proto == 0) 222 if (!(with_ports || e.proto == IPPROTO_ICMP)) 314 u8 proto; member in struct:hash_ipportnet6_elem [all...] |
H A D | ip_set_hash_netport.c | 57 u8 proto; member in struct:hash_netport4_elem 71 ip1->proto == ip2->proto && 109 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || 148 &e.port, &e.proto)) 203 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); 204 with_ports = ip_set_proto_with_ports(e.proto); 206 if (e.proto == 0) 211 if (!(with_ports || e.proto == IPPROTO_ICMP)) 273 u8 proto; member in struct:hash_netport6_elem [all...] |
H A D | ip_set_hash_netportnet.c | 57 u8 proto; member in struct:hash_netportnet4_elem 70 ip1->proto == ip2->proto; 122 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || 161 &e.port, &e.proto)) 228 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); 229 with_ports = ip_set_proto_with_ports(e.proto); 231 if (e.proto == 0) 236 if (!(with_ports || e.proto == IPPROTO_ICMP)) 328 u8 proto; member in struct:hash_netportnet6_elem [all...] |
/net/netfilter/ |
H A D | nf_conntrack_proto_tcp.c | 319 state = ct->proto.tcp.state; 834 old_state = ct->proto.tcp.state; 856 if (((ct->proto.tcp.seen[dir].flags 857 | ct->proto.tcp.seen[!dir].flags) 859 || (ct->proto.tcp.last_dir == dir 860 && ct->proto.tcp.last_index == TCP_RST_SET)) { 889 && ct->proto.tcp.last_index == TCP_SYN_SET 890 && ct->proto.tcp.last_dir != dir 891 && ntohl(th->ack_seq) == ct->proto.tcp.last_end) { 900 ct->proto 1602 tcp_init_net(struct net *net, u_int16_t proto) argument [all...] |
H A D | xt_multiport.c | 98 check(u_int16_t proto, argument 104 return (proto == IPPROTO_TCP || proto == IPPROTO_UDP 105 || proto == IPPROTO_UDPLITE 106 || proto == IPPROTO_SCTP || proto == IPPROTO_DCCP) 119 return check(ip->proto, ip->invflags, multiinfo->flags, 128 return check(ip->proto, ip->invflags, multiinfo->flags,
|
H A D | nf_conntrack_proto.c | 210 int nf_ct_l3proto_register(struct nf_conntrack_l3proto *proto) argument 215 if (proto->l3proto >= AF_MAX) 218 if (proto->tuple_to_nlattr && !proto->nlattr_tuple_size) 222 old = rcu_dereference_protected(nf_ct_l3protos[proto->l3proto], 229 if (proto->nlattr_tuple_size) 230 proto->nla_size = 3 * proto->nlattr_tuple_size(); 232 rcu_assign_pointer(nf_ct_l3protos[proto->l3proto], proto); 241 nf_ct_l3proto_pernet_register(struct net *net, struct nf_conntrack_l3proto *proto) argument 256 nf_ct_l3proto_unregister(struct nf_conntrack_l3proto *proto) argument 272 nf_ct_l3proto_pernet_unregister(struct net *net, struct nf_conntrack_l3proto *proto) argument [all...] |
H A D | nf_conntrack_proto_dccp.c | 449 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; 450 ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER; 451 ct->proto.dccp.state = CT_DCCP_NONE; 452 ct->proto.dccp.last_pkt = DCCP_PKT_REQUEST; 453 ct->proto.dccp.last_dir = IP_CT_DIR_ORIGINAL; 454 ct->proto.dccp.handshake_seq = 0; 502 role = ct->proto.dccp.role[dir]; 503 old_state = ct->proto.dccp.state; 512 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; 513 ct->proto 848 dccp_init_net(struct net *net, u_int16_t proto) argument [all...] |
/net/bluetooth/ |
H A D | af_bluetooth.c | 65 void bt_sock_reclassify_lock(struct sock *sk, int proto) argument 71 bt_slock_key_strings[proto], &bt_slock_key[proto], 72 bt_key_strings[proto], &bt_lock_key[proto]); 76 int bt_sock_register(int proto, const struct net_proto_family *ops) argument 80 if (proto < 0 || proto >= BT_MAX_PROTO) 85 if (bt_proto[proto]) 88 bt_proto[proto] 96 bt_sock_unregister(int proto) argument 129 bt_sock_create(struct net *net, struct socket *sock, int proto, int kern) argument [all...] |
/net/netfilter/ipvs/ |
H A D | ip_vs_proto.c | 41 #define IP_VS_PROTO_HASH(proto) ((proto) & (IP_VS_PROTO_TAB_SIZE-1)) 84 /* unlink an free proto data */ 140 * get ip_vs_protocol object by its proto. 142 struct ip_vs_protocol * ip_vs_proto_get(unsigned short proto) argument 145 unsigned int hash = IP_VS_PROTO_HASH(proto); 148 if (pp->protocol == proto) 157 * get ip_vs_protocol object data by netns and proto 160 __ipvs_proto_data_get(struct netns_ipvs *ipvs, unsigned short proto) argument 163 unsigned int hash = IP_VS_PROTO_HASH(proto); 174 ip_vs_proto_data_get(struct net *net, unsigned short proto) argument 228 ip_vs_state_name(__u16 proto, int state) argument [all...] |
/net/core/ |
H A D | flow_dissector.c | 67 * @proto: protocol for which to get the flow, if @data is NULL use skb->protocol 75 void *data, __be16 proto, int nhoff, int hlen) 81 proto = skb->protocol; 89 switch (proto) { 139 flow->n_proto = proto; 158 proto = vlan->h_vlan_encapsulated_proto; 165 __be16 proto; member in struct:__anon30 170 proto = hdr->proto; 172 switch (proto) { 74 __skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow, void *data, __be16 proto, int nhoff, int hlen) argument 192 __be16 proto; member in struct:gre_hdr [all...] |
/net/ipv4/netfilter/ |
H A D | ipt_ECN.c | 59 tcph->ece == einfo->proto.tcp.ece) && 61 tcph->cwr == einfo->proto.tcp.cwr)) 70 tcph->ece = einfo->proto.tcp.ece; 72 tcph->cwr = einfo->proto.tcp.cwr; 110 (e->ip.proto != IPPROTO_TCP || (e->ip.invflags & XT_INV_PROTO))) {
|