Home
last modified time | relevance | path

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

12345678910>>...16

/net/ax25/
A Dax25_iface.c60 protocol = protocol_list; in ax25_protocol_release()
61 if (protocol == NULL) in ax25_protocol_release()
64 if (protocol->pid == pid) { in ax25_protocol_release()
69 while (protocol != NULL && protocol->next != NULL) { in ax25_protocol_release()
71 protocol->next = protocol->next->next; in ax25_protocol_release()
75 protocol = protocol->next; in ax25_protocol_release()
164 for (protocol = protocol_list; protocol != NULL; protocol = protocol->next) in ax25_protocol_function()
165 if (protocol->pid == pid) { in ax25_protocol_function()
166 res = protocol->func; in ax25_protocol_function()
206 for (protocol = protocol_list; protocol != NULL; protocol = protocol->next) in ax25_protocol_is_registered()
[all …]
/net/ipv4/netfilter/
A Dnf_socket_ipv4.c44 inside_iph->protocol != IPPROTO_UDP) in extract_icmp4_fields()
56 *protocol = inside_iph->protocol; in extract_icmp4_fields()
67 const u8 protocol, in nf_socket_get_sock_v4() argument
72 switch (protocol) { in nf_socket_get_sock_v4()
91 u8 protocol; in nf_sk_lookup_slow_v4() local
98 if (iph->protocol == IPPROTO_UDP || iph->protocol == IPPROTO_TCP) { in nf_sk_lookup_slow_v4()
103 iph->protocol == IPPROTO_UDP ? in nf_sk_lookup_slow_v4()
108 protocol = iph->protocol; in nf_sk_lookup_slow_v4()
114 doff = iph->protocol == IPPROTO_TCP ? in nf_sk_lookup_slow_v4()
133 ((iph->protocol != IPPROTO_ICMP && in nf_sk_lookup_slow_v4()
[all …]
/net/netfilter/
A Dutils.c20 if ((protocol != IPPROTO_TCP && protocol != IPPROTO_UDP && in nf_ip_checksum()
23 skb->len - dataoff, protocol, in nf_ip_checksum()
30 if (protocol != IPPROTO_TCP && protocol != IPPROTO_UDP) in nf_ip_checksum()
35 protocol, 0); in nf_ip_checksum()
45 u8 protocol) in nf_ip_checksum_partial() argument
65 unsigned int dataoff, u8 protocol) in nf_ip6_checksum() argument
87 protocol, in nf_ip6_checksum()
99 u8 protocol) in nf_ip6_checksum_partial() argument
115 protocol, in nf_ip6_checksum_partial()
151 protocol); in nf_checksum_partial()
[all …]
/net/ipv4/
A Dxfrm4_protocol.c28 switch (protocol) { in proto_handlers()
205 switch (protocol) { in netproto()
218 unsigned char protocol) in xfrm4_protocol_register() argument
226 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm4_protocol_register()
231 if (!rcu_dereference_protected(*proto_handlers(protocol), in xfrm4_protocol_register()
235 for (pprev = proto_handlers(protocol); in xfrm4_protocol_register()
254 if (inet_add_protocol(netproto(protocol), protocol)) { in xfrm4_protocol_register()
265 unsigned char protocol) in xfrm4_protocol_deregister() argument
271 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm4_protocol_deregister()
276 for (pprev = proto_handlers(protocol); in xfrm4_protocol_deregister()
[all …]
A Dprotocol.c32 int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_add_protocol() argument
34 return !cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_add_protocol()
39 int inet_add_offload(const struct net_offload *prot, unsigned char protocol) in inet_add_offload() argument
41 return !cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_add_offload()
46 int inet_del_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_del_protocol() argument
50 ret = (cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_del_protocol()
59 int inet_del_offload(const struct net_offload *prot, unsigned char protocol) in inet_del_offload() argument
63 ret = (cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_del_offload()
A Dgre_offload.c23 __be16 protocol = skb->protocol; in gre_gso_segment() local
43 skb->protocol = skb->inner_protocol; in gre_gso_segment()
60 skb_gso_error_unwind(skb, protocol, tnl_hlen, mac_offset, in gre_gso_segment()
81 skb->protocol = protocol; in gre_gso_segment()
162 type = greh->protocol; in gre_gro_receive()
209 greh2->protocol != greh->protocol) { in gre_gro_receive()
247 type = greh->protocol; in gre_gro_complete()
A Daf_inet.c263 if (protocol < 0 || protocol >= IPPROTO_MAX) in inet_create()
276 if (protocol == answer->protocol) { in inet_create()
282 protocol = answer->protocol; in inet_create()
343 inet->inet_num = protocol; in inet_create()
1195 int protocol = p->protocol; in inet_register_protosw() local
1210 if (protocol == answer->protocol) in inet_register_protosw()
1242 p->protocol); in inet_unregister_protosw()
1380 proto = iph->protocol; in inet_gso_segment()
1481 proto = iph->protocol; in inet_gro_receive()
1511 if ((iph->protocol ^ iph2->protocol) | in inet_gro_receive()
[all …]
/net/ipv6/
A Dxfrm6_protocol.c29 switch (protocol) { in proto_handlers()
55 for_each_protocol_rcu(*proto_handlers(protocol), handler) in xfrm6_rcv_cb()
221 switch (protocol) { in netproto()
234 unsigned char protocol) in xfrm6_protocol_register() argument
242 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm6_protocol_register()
251 for (pprev = proto_handlers(protocol); in xfrm6_protocol_register()
270 if (inet6_add_protocol(netproto(protocol), protocol)) { in xfrm6_protocol_register()
281 unsigned char protocol) in xfrm6_protocol_deregister() argument
287 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm6_protocol_deregister()
292 for (pprev = proto_handlers(protocol); in xfrm6_protocol_deregister()
[all …]
A Dprotocol.c28 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_add_protocol() argument
30 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_add_protocol()
35 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_del_protocol() argument
39 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_del_protocol()
52 int inet6_add_offload(const struct net_offload *prot, unsigned char protocol) in inet6_add_offload() argument
54 return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_add_offload()
59 int inet6_del_offload(const struct net_offload *prot, unsigned char protocol) in inet6_del_offload() argument
63 ret = (cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_del_offload()
A Dfou6.c22 struct flowi6 *fl6, u8 *protocol, __be16 sport) in fou6_build_udp() argument
37 *protocol = IPPROTO_UDP; in fou6_build_udp()
41 u8 *protocol, struct flowi6 *fl6) in fou6_build_header() argument
48 err = __fou_build_header(skb, e, protocol, &sport, type); in fou6_build_header()
52 fou6_build_udp(skb, e, fl6, protocol, sport); in fou6_build_header()
58 u8 *protocol, struct flowi6 *fl6) in gue6_build_header() argument
65 err = __gue_build_header(skb, e, protocol, &sport, type); in gue6_build_header()
69 fou6_build_udp(skb, e, fl6, protocol, sport); in gue6_build_header()
/net/ceph/
A Dauth.c204 int protocol; in ceph_handle_auth_reply() local
216 protocol = ceph_decode_32(&p); in ceph_handle_auth_reply()
236 if (!protocol && result < 0) { in ceph_handle_auth_reply()
241 if (ac->protocol && ac->protocol != protocol) { in ceph_handle_auth_reply()
243 ac->protocol = 0; in ceph_handle_auth_reply()
246 if (ac->protocol != protocol) { in ceph_handle_auth_reply()
247 ret = init_protocol(ac, protocol); in ceph_handle_auth_reply()
329 *proto = ac->protocol; in __ceph_auth_get_authorizer()
444 WARN_ON(ac->protocol != proto); in ceph_auth_get_request()
513 WARN_ON(used_proto != ac->protocol); in ceph_auth_handle_bad_method()
[all …]
/net/phonet/
A Daf_phonet.c31 if (protocol >= PHONET_NPROTO) in phonet_proto_get()
61 if (protocol == 0) { in pn_socket_create()
65 protocol = PN_PROTO_PHONET; in pn_socket_create()
68 protocol = PN_PROTO_PIPE; in pn_socket_create()
75 pnp = phonet_proto_get(protocol); in pn_socket_create()
78 pnp = phonet_proto_get(protocol); in pn_socket_create()
97 sk->sk_protocol = protocol; in pn_socket_create()
178 skb->protocol = htons(ETH_P_PHONET); in pn_send()
463 if (protocol >= PHONET_NPROTO) in phonet_proto_register()
471 if (proto_tab[protocol]) in phonet_proto_register()
[all …]
/net/netfilter/ipset/
A Dip_set_getport.c25 get_port(const struct sk_buff *skb, int protocol, unsigned int protooff, in get_port() argument
28 switch (protocol) { in get_port()
92 *proto = protocol; in get_port()
103 int protocol = iph->protocol; in ip_set_get_ip4_port() local
106 if (protocol <= 0) in ip_set_get_ip4_port()
110 switch (protocol) { in ip_set_get_ip4_port()
122 *proto = protocol; in ip_set_get_ip4_port()
126 return get_port(skb, protocol, protooff, src, port, proto); in ip_set_get_ip4_port()
/net/netfilter/ipvs/
A Dip_vs_core.c306 int protocol = iph->protocol; in ip_vs_sched_persist() local
327 protocol = IPPROTO_IP; in ip_vs_sched_persist()
770 if (IPPROTO_TCP == ciph->protocol || IPPROTO_UDP == ciph->protocol || in ip_vs_nat_icmp()
800 int protocol; in ip_vs_nat_icmp_v6() local
821 if (!fragoffs && (IPPROTO_TCP == protocol || IPPROTO_UDP == protocol || in ip_vs_nat_icmp_v6()
876 if (IPPROTO_TCP == protocol || IPPROTO_UDP == protocol || in handle_response_icmp()
1077 switch (iph->protocol) { in is_new_conn()
1107 switch (cp->protocol) { in is_new_conn_expected()
1559 type = greh->protocol; in ipvs_gre_decap()
1789 if (IPPROTO_TCP == cih->protocol || IPPROTO_UDP == cih->protocol || in ip_vs_in_icmp()
[all …]
A Dip_vs_conn.c278 p->protocol == cp->protocol && in __ip_vs_conn_in_get()
305 ip_vs_proto_name(p->protocol), in ip_vs_conn_in_get()
377 p->protocol == cp->protocol && in ip_vs_ct_in_get()
430 p->protocol == cp->protocol && in ip_vs_conn_out_get()
597 if (cp->protocol != IPPROTO_UDP) in ip_vs_bind_dest()
948 p->protocol); in ip_vs_conn_new()
961 cp->protocol = p->protocol; in ip_vs_conn_new()
1162 ip_vs_proto_name(cp->protocol), in ip_vs_conn_seq_show()
1175 ip_vs_proto_name(cp->protocol), in ip_vs_conn_seq_show()
1228 ip_vs_proto_name(cp->protocol), in ip_vs_conn_sync_seq_show()
[all …]
/net/bridge/netfilter/
A Debt_ip.c61 if (NF_INVF(info, EBT_IP_PROTO, info->protocol != ih->protocol)) in ebt_ip_mt()
117 if (info->protocol != IPPROTO_TCP && in ebt_ip_mt_check()
118 info->protocol != IPPROTO_UDP && in ebt_ip_mt_check()
119 info->protocol != IPPROTO_UDPLITE && in ebt_ip_mt_check()
120 info->protocol != IPPROTO_SCTP && in ebt_ip_mt_check()
121 info->protocol != IPPROTO_DCCP) in ebt_ip_mt_check()
130 info->protocol != IPPROTO_ICMP) in ebt_ip_mt_check()
138 info->protocol != IPPROTO_IGMP) in ebt_ip_mt_check()
A Debt_log.c53 print_ports(const struct sk_buff *skb, uint8_t protocol, int offset) in print_ports() argument
55 if (protocol == IPPROTO_TCP || in print_ports()
56 protocol == IPPROTO_UDP || in print_ports()
57 protocol == IPPROTO_UDPLITE || in print_ports()
58 protocol == IPPROTO_SCTP || in print_ports()
59 protocol == IPPROTO_DCCP) { in print_ports()
108 &ih->saddr, &ih->daddr, ih->tos, ih->protocol); in ebt_log_packet()
109 print_ports(skb, ih->protocol, ih->ihl*4); in ebt_log_packet()
A Debt_ip6.c70 if (NF_INVF(info, EBT_IP6_PROTO, info->protocol != nexthdr)) in ebt_ip6_mt()
118 if (info->protocol != IPPROTO_TCP && in ebt_ip6_mt_check()
119 info->protocol != IPPROTO_UDP && in ebt_ip6_mt_check()
120 info->protocol != IPPROTO_UDPLITE && in ebt_ip6_mt_check()
121 info->protocol != IPPROTO_SCTP && in ebt_ip6_mt_check()
122 info->protocol != IPPROTO_DCCP) in ebt_ip6_mt_check()
131 info->protocol != IPPROTO_ICMPV6) in ebt_ip6_mt_check()
/net/hsr/
A Dhsr_slave.c19 bool hsr_invalid_dan_ingress_frame(__be16 protocol) in hsr_invalid_dan_ingress_frame() argument
21 return (protocol != htons(ETH_P_PRP) && protocol != htons(ETH_P_HSR)); in hsr_invalid_dan_ingress_frame()
29 __be16 protocol; in hsr_handle_frame() local
55 protocol = eth_hdr(skb)->h_proto; in hsr_handle_frame()
60 hsr->proto_ops->invalid_dan_ingress_frame(protocol)) in hsr_handle_frame()
65 if ((!hsr->prot_version && protocol == htons(ETH_P_PRP)) || in hsr_handle_frame()
66 protocol == htons(ETH_P_HSR)) in hsr_handle_frame()
/net/can/
A DKconfig10 communications protocol. Development of the CAN bus started in
11 1983 at Robert Bosch GmbH, and the protocol was officially
14 applications. More information on the CAN network protocol family
27 The raw CAN protocol option offers access to the CAN bus via
29 most cases where no higher level protocol is being used. The raw
31 To receive/send raw CAN messages, use AF_CAN with protocol CAN_RAW.
43 To use the Broadcast Manager, use AF_CAN with protocol CAN_BCM.
59 tristate "ISO 15765-2 CAN transport protocol"
63 This protocol driver implements segmented data transfers for CAN CC
A Daf_can.c101 cp = rcu_dereference(proto_tab[protocol]); in can_get_proto()
123 if (protocol < 0 || protocol >= CAN_NPROTO) in can_create()
126 cp = can_get_proto(protocol); in can_create()
132 err = request_module("can-proto-%d", protocol); in can_create()
140 protocol); in can_create()
142 cp = can_get_proto(protocol); in can_create()
209 skb->protocol = htons(ETH_P_CANXL); in can_send()
211 skb->protocol = htons(ETH_P_CAN); in can_send()
215 skb->protocol = htons(ETH_P_CANFD); in can_send()
738 int proto = cp->protocol; in can_proto_register()
[all …]
/net/core/
A Dlwt_bpf.c94 if (skb->protocol == htons(ETH_P_IP)) { in bpf_lwt_input_reroute()
188 if (skb->protocol == htons(ETH_P_IP)) in bpf_lwt_xmit_reroute()
214 fl4.flowi4_proto = iph->protocol; in bpf_lwt_xmit_reroute()
280 __be16 proto = skb->protocol; in bpf_xmit()
290 if (skb->protocol != proto) { in bpf_xmit()
544 __u8 protocol; in handle_gso_encap() local
554 protocol = ip_hdr(skb)->protocol; in handle_gso_encap()
558 protocol = ipv6_hdr(skb)->nexthdr; in handle_gso_encap()
563 switch (protocol) { in handle_gso_encap()
641 skb->protocol = htons(ETH_P_IP); in bpf_lwt_push_ip_encap()
[all …]
/net/nfc/nci/
A DKconfig4 tristate "NCI protocol support"
7 NCI (NFC Controller Interface) is a communication protocol between
16 tristate "NCI over SPI protocol support"
19 NCI (NFC Controller Interface) is a communication protocol between
26 tristate "NCI over UART protocol support"
/net/nsh/
A Dnsh.c24 next_proto = tun_p_from_eth_p(skb->protocol); in nsh_push()
39 skb->protocol = htons(ETH_P_NSH); in nsh_push()
71 skb->protocol = inner_proto; in nsh_pop()
87 outer_proto = skb->protocol; in nsh_gso_segment()
107 skb->protocol = proto; in nsh_gso_segment()
118 skb->protocol = outer_proto; in nsh_gso_segment()
/net/xfrm/
A Dxfrm_output.c74 offsetof(struct iphdr, protocol); in xfrm4_transport_output()
240 offsetof(struct iphdr, protocol); in xfrm4_beet_encap_add()
255 ph->nexthdr = top_iph->protocol; in xfrm4_beet_encap_add()
259 top_iph->protocol = IPPROTO_BEETPH; in xfrm4_beet_encap_add()
285 offsetof(struct iphdr, protocol); in xfrm4_tunnel_encap_add()
414 skb->protocol = htons(ETH_P_IP); in xfrm4_prepare_output()
437 skb->protocol = htons(ETH_P_IPV6); in xfrm6_prepare_output()
844 skb->protocol = htons(ETH_P_IP); in xfrm4_tunnel_check_size()
872 XFRM_MODE_SKB_CB(skb)->protocol = ip_hdr(skb)->protocol; in xfrm4_extract_output()
896 skb->protocol = htons(ETH_P_IPV6); in xfrm6_tunnel_check_size()
[all …]

Completed in 33 milliseconds

12345678910>>...16