/net/ax25/ |
D | ax25_iface.c | 60 struct ax25_protocol *protocol; in ax25_protocol_release() local 63 protocol = protocol_list; in ax25_protocol_release() 64 if (protocol == NULL) in ax25_protocol_release() 67 if (protocol->pid == pid) { in ax25_protocol_release() 68 protocol_list = protocol->next; in ax25_protocol_release() 72 while (protocol != NULL && protocol->next != NULL) { in ax25_protocol_release() 73 if (protocol->next->pid == pid) { in ax25_protocol_release() 74 protocol->next = protocol->next->next; in ax25_protocol_release() 78 protocol = protocol->next; in ax25_protocol_release() 164 struct ax25_protocol *protocol; in ax25_protocol_function() local [all …]
|
/net/ipv6/ |
D | xfrm6_protocol.c | 30 static inline struct xfrm6_protocol __rcu **proto_handlers(u8 protocol) in proto_handlers() argument 32 switch (protocol) { in proto_handlers() 49 int xfrm6_rcv_cb(struct sk_buff *skb, u8 protocol, int err) in xfrm6_rcv_cb() argument 53 struct xfrm6_protocol __rcu **head = proto_handlers(protocol); in xfrm6_rcv_cb() 58 for_each_protocol_rcu(*proto_handlers(protocol), handler) in xfrm6_rcv_cb() 171 static inline const struct inet6_protocol *netproto(unsigned char protocol) in netproto() argument 173 switch (protocol) { in netproto() 186 unsigned char protocol) in xfrm6_protocol_register() argument 194 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm6_protocol_register() 199 if (!rcu_dereference_protected(*proto_handlers(protocol), in xfrm6_protocol_register() [all …]
|
D | protocol.c | 32 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_add_protocol() argument 34 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_add_protocol() 39 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_del_protocol() argument 43 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_del_protocol() 56 int inet6_add_offload(const struct net_offload *prot, unsigned char protocol) in inet6_add_offload() argument 58 return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_add_offload() 63 int inet6_del_offload(const struct net_offload *prot, unsigned char protocol) in inet6_del_offload() argument 67 ret = (cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_del_offload()
|
D | af_inet6.c | 114 static int inet6_create(struct net *net, struct socket *sock, int protocol, in inet6_create() argument 126 if (protocol < 0 || protocol >= IPPROTO_MAX) in inet6_create() 140 if (protocol == answer->protocol) { in inet6_create() 141 if (protocol != IPPROTO_IP) in inet6_create() 145 if (IPPROTO_IP == protocol) { in inet6_create() 146 protocol = answer->protocol; in inet6_create() 149 if (IPPROTO_IP == answer->protocol) in inet6_create() 164 PF_INET6, protocol, sock->type); in inet6_create() 171 PF_INET6, protocol); in inet6_create() 203 inet->inet_num = protocol; in inet6_create() [all …]
|
/net/ipv4/ |
D | xfrm4_protocol.c | 30 static inline struct xfrm4_protocol __rcu **proto_handlers(u8 protocol) in proto_handlers() argument 32 switch (protocol) { in proto_handlers() 49 int xfrm4_rcv_cb(struct sk_buff *skb, u8 protocol, int err) in xfrm4_rcv_cb() argument 53 struct xfrm4_protocol __rcu **head = proto_handlers(protocol); in xfrm4_rcv_cb() 197 static inline const struct net_protocol *netproto(unsigned char protocol) in netproto() argument 199 switch (protocol) { in netproto() 212 unsigned char protocol) in xfrm4_protocol_register() argument 220 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm4_protocol_register() 225 if (!rcu_dereference_protected(*proto_handlers(protocol), in xfrm4_protocol_register() 229 for (pprev = proto_handlers(protocol); in xfrm4_protocol_register() [all …]
|
D | protocol.c | 35 int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_add_protocol() argument 39 protocol); in inet_add_protocol() 43 return !cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_add_protocol() 48 int inet_add_offload(const struct net_offload *prot, unsigned char protocol) in inet_add_offload() argument 50 return !cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_add_offload() 55 int inet_del_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_del_protocol() argument 59 ret = (cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_del_protocol() 68 int inet_del_offload(const struct net_offload *prot, unsigned char protocol) in inet_del_offload() argument 72 ret = (cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_del_offload()
|
D | gre_offload.c | 27 __be16 protocol = skb->protocol; in gre_gso_segment() local 60 skb->protocol = greh->protocol; in gre_gso_segment() 75 skb_gso_error_unwind(skb, protocol, ghl, mac_offset, mac_len); in gre_gso_segment() 113 skb->protocol = protocol; in gre_gso_segment() 162 type = greh->protocol; in gre_gro_receive() 212 greh2->protocol != greh->protocol) { in gre_gro_receive() 251 type = greh->protocol; in gre_gro_complete()
|
D | ip_input.c | 157 u8 protocol = ip_hdr(skb)->protocol; in ip_call_ra_chain() local 168 if (sk && inet_sk(sk)->inet_num == protocol && in ip_call_ra_chain() 198 int protocol = ip_hdr(skb)->protocol; in ip_local_deliver_finish() local 203 raw = raw_local_deliver(skb, protocol); in ip_local_deliver_finish() 205 ipprot = rcu_dereference(inet_protos[protocol]); in ip_local_deliver_finish() 218 protocol = -ret; in ip_local_deliver_finish() 321 int protocol = iph->protocol; in ip_rcv_finish() local 323 ipprot = rcu_dereference(inet_protos[protocol]); in ip_rcv_finish()
|
D | xfrm4_mode_beet.c | 27 iph->protocol = XFRM_MODE_SKB_CB(skb)->protocol; in xfrm4_beet_make_header() 55 offsetof(struct iphdr, protocol); in xfrm4_beet_output() 70 ph->nexthdr = top_iph->protocol; in xfrm4_beet_output() 74 top_iph->protocol = IPPROTO_BEETPH; in xfrm4_beet_output() 90 if (unlikely(XFRM_MODE_SKB_CB(skb)->protocol == IPPROTO_BEETPH)) { in xfrm4_beet_input() 104 XFRM_MODE_SKB_CB(skb)->protocol = ph->nexthdr; in xfrm4_beet_input()
|
D | netfilter.c | 125 unsigned int dataoff, u_int8_t protocol) in nf_ip_checksum() argument 134 if ((protocol == 0 && !csum_fold(skb->csum)) || in nf_ip_checksum() 136 skb->len - dataoff, protocol, in nf_ip_checksum() 143 if (protocol == 0) in nf_ip_checksum() 148 protocol, 0); in nf_ip_checksum() 157 u_int8_t protocol) in nf_ip_checksum_partial() argument 165 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial() 168 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protocol, in nf_ip_checksum_partial()
|
D | af_inet.c | 263 static int inet_create(struct net *net, struct socket *sock, int protocol, in inet_create() argument 274 if (protocol < 0 || protocol >= IPPROTO_MAX) in inet_create() 290 if (protocol == answer->protocol) { in inet_create() 291 if (protocol != IPPROTO_IP) in inet_create() 295 if (IPPROTO_IP == protocol) { in inet_create() 296 protocol = answer->protocol; in inet_create() 299 if (IPPROTO_IP == answer->protocol) in inet_create() 314 PF_INET, protocol, sock->type); in inet_create() 321 PF_INET, protocol); in inet_create() 353 inet->inet_num = protocol; in inet_create() [all …]
|
/net/netfilter/ |
D | xt_socket.c | 40 u8 *protocol, in extract_icmp4_fields() argument 73 if (inside_iph->protocol != IPPROTO_TCP && in extract_icmp4_fields() 74 inside_iph->protocol != IPPROTO_UDP) in extract_icmp4_fields() 86 *protocol = inside_iph->protocol; in extract_icmp4_fields() 115 xt_socket_get_sock_v4(struct net *net, const u8 protocol, in xt_socket_get_sock_v4() argument 120 switch (protocol) { in xt_socket_get_sock_v4() 154 u8 uninitialized_var(protocol); in xt_socket_lookup_slow_v4() 160 if (iph->protocol == IPPROTO_UDP || iph->protocol == IPPROTO_TCP) { in xt_socket_lookup_slow_v4() 168 protocol = iph->protocol; in xt_socket_lookup_slow_v4() 174 } else if (iph->protocol == IPPROTO_ICMP) { in xt_socket_lookup_slow_v4() [all …]
|
/net/phonet/ |
D | af_phonet.c | 40 static struct phonet_protocol *phonet_proto_get(unsigned int protocol) in phonet_proto_get() argument 44 if (protocol >= PHONET_NPROTO) in phonet_proto_get() 48 pp = rcu_dereference(proto_tab[protocol]); in phonet_proto_get() 63 static int pn_socket_create(struct net *net, struct socket *sock, int protocol, in pn_socket_create() argument 74 if (protocol == 0) { in pn_socket_create() 78 protocol = PN_PROTO_PHONET; in pn_socket_create() 81 protocol = PN_PROTO_PIPE; in pn_socket_create() 88 pnp = phonet_proto_get(protocol); in pn_socket_create() 90 request_module("net-pf-%d-proto-%d", PF_PHONET, protocol) == 0) in pn_socket_create() 91 pnp = phonet_proto_get(protocol); in pn_socket_create() [all …]
|
/net/ceph/ |
D | auth.c | 23 static int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol) in ceph_auth_init_protocol() argument 25 switch (protocol) { in ceph_auth_init_protocol() 156 ceph_encode_32(&p, ac->protocol); in ceph_build_auth_request() 180 int protocol; in ceph_handle_auth_reply() local 192 protocol = ceph_decode_32(&p); in ceph_handle_auth_reply() 217 if (!protocol && result < 0) { in ceph_handle_auth_reply() 222 if (ac->protocol && ac->protocol != protocol) { in ceph_handle_auth_reply() 224 ac->protocol = 0; in ceph_handle_auth_reply() 227 if (ac->protocol != protocol) { in ceph_handle_auth_reply() 228 ret = ceph_auth_init_protocol(ac, protocol); in ceph_handle_auth_reply() [all …]
|
/net/netfilter/ipset/ |
D | ip_set_getport.c | 24 get_port(const struct sk_buff *skb, int protocol, unsigned int protooff, in get_port() argument 27 switch (protocol) { in get_port() 91 *proto = protocol; in get_port() 102 int protocol = iph->protocol; in ip_set_get_ip4_port() local 105 if (protocol <= 0) in ip_set_get_ip4_port() 109 switch (protocol) { in ip_set_get_ip4_port() 121 *proto = protocol; in ip_set_get_ip4_port() 125 return get_port(skb, protocol, protooff, src, port, proto); in ip_set_get_ip4_port()
|
/net/netfilter/ipvs/ |
D | ip_vs_core.c | 213 struct sk_buff *skb, int protocol, in ip_vs_conn_fill_param_persist() argument 218 ip_vs_conn_fill_param(svc->ipvs, svc->af, protocol, caddr, cport, vaddr, in ip_vs_conn_fill_param_persist() 288 int protocol = iph->protocol; in ip_vs_sched_persist() local 309 protocol = IPPROTO_IP; in ip_vs_sched_persist() 314 if (ip_vs_conn_fill_param_persist(svc, skb, protocol, &snet, 0, in ip_vs_sched_persist() 373 && iph->protocol == IPPROTO_UDP) ? in ip_vs_sched_persist() 379 ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, src_addr, in ip_vs_sched_persist() 518 && iph->protocol == IPPROTO_UDP) ? in ip_vs_schedule() 527 ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, in ip_vs_schedule() 586 iph->protocol == IPPROTO_UDP) ? in ip_vs_leave() [all …]
|
D | ip_vs_conn.c | 144 return ip_vs_conn_hashkey(p->ipvs, p->af, p->protocol, addr, port); in ip_vs_conn_hashkey_param() 151 ip_vs_conn_fill_param(cp->ipvs, cp->af, cp->protocol, in ip_vs_conn_hashkey_conn() 281 p->protocol == cp->protocol && in __ip_vs_conn_in_get() 308 ip_vs_proto_name(p->protocol), in ip_vs_conn_in_get() 329 ip_vs_conn_fill_param(ipvs, af, iph->protocol, &iph->saddr, in ip_vs_conn_fill_param_proto() 332 ip_vs_conn_fill_param(ipvs, af, iph->protocol, &iph->daddr, in ip_vs_conn_fill_param_proto() 376 ip_vs_addr_equal(p->protocol == IPPROTO_IP ? AF_UNSPEC : in ip_vs_ct_in_get() 380 p->protocol == cp->protocol && in ip_vs_ct_in_get() 392 ip_vs_proto_name(p->protocol), in ip_vs_ct_in_get() 421 p->protocol == cp->protocol && in ip_vs_conn_out_get() [all …]
|
/net/bridge/netfilter/ |
D | ebt_ip.c | 51 if (FWINV(info->protocol != ih->protocol, EBT_IP_PROTO)) in ebt_ip_mt() 93 if (info->protocol != IPPROTO_TCP && in ebt_ip_mt_check() 94 info->protocol != IPPROTO_UDP && in ebt_ip_mt_check() 95 info->protocol != IPPROTO_UDPLITE && in ebt_ip_mt_check() 96 info->protocol != IPPROTO_SCTP && in ebt_ip_mt_check() 97 info->protocol != IPPROTO_DCCP) in ebt_ip_mt_check()
|
D | ebt_ip6.c | 66 if (FWINV(info->protocol != nexthdr, EBT_IP6_PROTO)) in ebt_ip6_mt() 112 if (info->protocol != IPPROTO_TCP && in ebt_ip6_mt_check() 113 info->protocol != IPPROTO_UDP && in ebt_ip6_mt_check() 114 info->protocol != IPPROTO_UDPLITE && in ebt_ip6_mt_check() 115 info->protocol != IPPROTO_SCTP && in ebt_ip6_mt_check() 116 info->protocol != IPPROTO_DCCP) in ebt_ip6_mt_check() 125 info->protocol != IPPROTO_ICMPV6) in ebt_ip6_mt_check()
|
D | ebt_log.c | 54 print_ports(const struct sk_buff *skb, uint8_t protocol, int offset) in print_ports() argument 56 if (protocol == IPPROTO_TCP || in print_ports() 57 protocol == IPPROTO_UDP || in print_ports() 58 protocol == IPPROTO_UDPLITE || in print_ports() 59 protocol == IPPROTO_SCTP || in print_ports() 60 protocol == IPPROTO_DCCP) { in print_ports() 109 &ih->saddr, &ih->daddr, ih->tos, ih->protocol); in ebt_log_packet() 110 print_ports(skb, ih->protocol, ih->ihl*4); in ebt_log_packet()
|
/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 47 __u8 protocol, int ttl) in nf_reject_iphdr_put() argument 58 niph->protocol = protocol; in nf_reject_iphdr_put() 64 nskb->protocol = htons(ETH_P_IP); in nf_reject_iphdr_put() 156 if (dev_hard_header(nskb, nskb->dev, ntohs(nskb->protocol), in nf_send_reset() 184 if (iph->protocol == IPPROTO_TCP || iph->protocol == IPPROTO_UDP) in nf_send_unreach() 185 proto = iph->protocol; in nf_send_unreach()
|
/net/bridge/ |
D | br_netfilter_hooks.c | 65 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP)) 68 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6)) 71 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP)) 76 return skb->protocol; in vlan_proto() 77 else if (skb->protocol == htons(ETH_P_8021Q)) in vlan_proto() 102 (skb->protocol == htons(ETH_P_PPP_SES) && \ 107 (skb->protocol == htons(ETH_P_PPP_SES) && \ 159 switch (skb->protocol) { in nf_bridge_encap_header_len() 241 skb->protocol = htons(ETH_P_8021Q); in nf_bridge_update_protocol() 244 skb->protocol = htons(ETH_P_PPP_SES); in nf_bridge_update_protocol() [all …]
|
/net/nfc/nci/ |
D | Kconfig | 3 tristate "NCI protocol support" 6 NCI (NFC Controller Interface) is a communication protocol between 15 tristate "NCI over SPI protocol support" 18 NCI (NFC Controller Interface) is a communication protocol between 25 tristate "NCI over UART protocol support"
|
/net/sched/ |
D | cls_rsvp.h | 81 u8 protocol; member 103 static inline unsigned int hash_dst(__be32 *dst, u8 protocol, u8 tunnelid) in hash_dst() argument 109 return (h ^ protocol ^ tunnelid) & 0xFF; in hash_dst() 139 u8 protocol; in rsvp_classify() local 162 protocol = nhptr->nexthdr; in rsvp_classify() 167 protocol = nhptr->protocol; in rsvp_classify() 173 h1 = hash_dst(dst, protocol, tunnelid); in rsvp_classify() 179 protocol == s->protocol && in rsvp_classify() 547 h1 = hash_dst(dst, pinfo ? pinfo->protocol : 0, pinfo ? pinfo->tunnelid : 0); in rsvp_change() 568 pinfo && pinfo->protocol == s->protocol && in rsvp_change() [all …]
|
/net/irda/irlan/ |
D | Kconfig | 2 tristate "IrLAN protocol" 5 Say Y here if you want to build support for the IrLAN protocol. 10 The IrLAN protocol can be used to talk with infrared access points 12 to another Linux machine running the IrLAN protocol for ad-hoc
|