Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/net/ax25/
Dax25_iface.c60 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/
Dxfrm6_protocol.c30 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 …]
Dprotocol.c32 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()
Daf_inet6.c114 static int inet6_create(struct net *net, struct socket *sock, int protocol, in inet6_create() argument
129 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 …]
DKconfig7 tristate "The IPv6 protocol"
19 To compile this protocol support as a module, choose M here: the
144 Tunneling means encapsulating data of one protocol type within
145 another protocol and sending it over a channel that understands the
146 encapsulating protocol. This can be used with xfrm mode tunnel to give
147 the notion of a secure tunnel for IPSEC and then use routing protocol
157 Tunneling means encapsulating data of one protocol type within
158 another protocol and sending it over a channel that understands the
159 encapsulating protocol. This driver implements encapsulation of IPv6
201 Tunneling means encapsulating data of one protocol type within
[all …]
/net/ipv4/
Dxfrm4_protocol.c30 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 …]
Dprotocol.c35 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()
Dgre_offload.c27 __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()
154 type = greh->protocol; in gre_gro_receive()
204 greh2->protocol != greh->protocol) { in gre_gro_receive()
243 type = greh->protocol; in gre_gro_complete()
Dip_input.c156 u8 protocol = ip_hdr(skb)->protocol; in ip_call_ra_chain() local
166 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()
319 int protocol = iph->protocol; in ip_rcv_finish() local
321 ipprot = rcu_dereference(inet_protos[protocol]); in ip_rcv_finish()
Dxfrm4_mode_beet.c27 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()
Dnetfilter.c125 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()
Daf_inet.c265 static int inet_create(struct net *net, struct socket *sock, int protocol, in inet_create() argument
279 if (protocol < 0 || protocol >= IPPROTO_MAX) in inet_create()
292 if (protocol == answer->protocol) { in inet_create()
293 if (protocol != IPPROTO_IP) in inet_create()
297 if (IPPROTO_IP == protocol) { in inet_create()
298 protocol = answer->protocol; in inet_create()
301 if (IPPROTO_IP == answer->protocol) in inet_create()
316 PF_INET, protocol, sock->type); in inet_create()
323 PF_INET, protocol); in inet_create()
355 inet->inet_num = protocol; in inet_create()
[all …]
Dudp_offload.c38 __be16 protocol = skb->protocol; in __skb_udp_tunnel_segment() local
54 skb->protocol = new_protocol; in __skb_udp_tunnel_segment()
64 skb_gso_error_unwind(skb, protocol, tnl_hlen, mac_offset, in __skb_udp_tunnel_segment()
101 skb->protocol = protocol; in __skb_udp_tunnel_segment()
111 __be16 protocol = skb->protocol; in skb_udp_tunnel_segment() local
122 protocol = skb->inner_protocol; in skb_udp_tunnel_segment()
137 protocol); in skb_udp_tunnel_segment()
/net/netfilter/
Dxt_socket.c40 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()
142 u8 uninitialized_var(protocol); in xt_socket_get4_sk()
148 if (iph->protocol == IPPROTO_UDP || iph->protocol == IPPROTO_TCP) { in xt_socket_get4_sk()
154 protocol = iph->protocol; in xt_socket_get4_sk()
160 } else if (iph->protocol == IPPROTO_ICMP) { in xt_socket_get4_sk()
[all …]
/net/ceph/
Dauth.c23 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/
Dip_set_getport.c24 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()
120 *proto = protocol; in ip_set_get_ip4_port()
124 return get_port(skb, protocol, protooff, src, port, proto); in ip_set_get_ip4_port()
/net/phonet/
Daf_phonet.c40 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/netfilter/ipvs/
Dip_vs_core.c207 struct sk_buff *skb, int protocol, in ip_vs_conn_fill_param_persist() argument
212 ip_vs_conn_fill_param(svc->net, svc->af, protocol, caddr, cport, vaddr, in ip_vs_conn_fill_param_persist()
272 int protocol = iph->protocol; in ip_vs_sched_persist() local
293 protocol = IPPROTO_IP; in ip_vs_sched_persist()
298 if (ip_vs_conn_fill_param_persist(svc, skb, protocol, &snet, 0, in ip_vs_sched_persist()
357 && iph->protocol == IPPROTO_UDP) ? in ip_vs_sched_persist()
363 ip_vs_conn_fill_param(svc->net, svc->af, iph->protocol, &iph->saddr, in ip_vs_sched_persist()
483 && iph->protocol == IPPROTO_UDP) ? in ip_vs_schedule()
492 ip_vs_conn_fill_param(svc->net, svc->af, iph->protocol, in ip_vs_schedule()
555 iph->protocol == IPPROTO_UDP) ? in ip_vs_leave()
[all …]
Dip_vs_conn.c144 return ip_vs_conn_hashkey(p->net, p->af, p->protocol, addr, port); in ip_vs_conn_hashkey_param()
151 ip_vs_conn_fill_param(ip_vs_conn_net(cp), 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(net, af, iph->protocol, &iph->saddr, in ip_vs_conn_fill_param_proto()
332 ip_vs_conn_fill_param(net, af, iph->protocol, &iph->daddr, in ip_vs_conn_fill_param_proto()
375 ip_vs_addr_equal(p->protocol == IPPROTO_IP ? AF_UNSPEC : in ip_vs_ct_in_get()
379 p->protocol == cp->protocol && in ip_vs_ct_in_get()
391 ip_vs_proto_name(p->protocol), in ip_vs_ct_in_get()
420 p->protocol == cp->protocol && in ip_vs_conn_out_get()
[all …]
/net/bridge/netfilter/
Debt_ip.c51 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()
Debt_ip6.c66 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()
Debt_log.c54 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/sched/
Dcls_rsvp.h81 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
161 protocol = nhptr->nexthdr; in rsvp_classify()
166 protocol = nhptr->protocol; in rsvp_classify()
172 h1 = hash_dst(dst, protocol, tunnelid); in rsvp_classify()
178 protocol == s->protocol && in rsvp_classify()
534 h1 = hash_dst(dst, pinfo ? pinfo->protocol : 0, pinfo ? pinfo->tunnelid : 0); in rsvp_change()
555 pinfo && pinfo->protocol == s->protocol && in rsvp_change()
[all …]
/net/irda/irlan/
DKconfig2 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
/net/nfc/nci/
DKconfig3 tristate "NCI protocol support"
6 NCI (NFC Controller Interface) is a communication protocol between
15 bool "NCI over SPI protocol support"
18 NCI (NFC Controller Interface) is a communication protocol between

12345678910>>...13