Home
last modified time | relevance | path

Searched +defs:net +defs:proto (Results 1 – 25 of 123) sorted by relevance

12345

/linux-6.14.4/net/xfrm/
Dxfrm_state.c35 #define xfrm_state_deref_prot(table, net) \ argument
37 #define xfrm_state_deref_check(table, net) \ argument
61 static inline unsigned int xfrm_dst_hash(struct net *net, in xfrm_dst_hash()
72 static inline unsigned int xfrm_src_hash(struct net *net, in xfrm_src_hash()
83 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, in xfrm_spi_hash()
84 __be32 spi, u8 proto, unsigned short family) in xfrm_spi_hash()
91 static unsigned int xfrm_seq_hash(struct net *net, u32 seq) in xfrm_seq_hash()
163 struct net *net = container_of(work, struct net, xfrm.state_hash_work); in xfrm_hash_resize() local
325 static const struct xfrm_type *xfrm_get_type(u8 proto, unsigned short family) in xfrm_get_type()
729 struct xfrm_state *xfrm_state_alloc(struct net *net) in xfrm_state_alloc()
[all …]
/linux-6.14.4/net/ipv6/
Dseg6_iptunnel.c89 static void set_tun_src(struct net *net, struct net_device *dev, in set_tun_src()
110 static __be32 seg6_make_flowlabel(struct net *net, struct sk_buff *skb, in seg6_make_flowlabel()
128 int proto, struct dst_entry *cache_dst) in __seg6_do_srh_encap()
131 struct net *net = dev_net(dst->dev); in __seg6_do_srh_encap() local
202 int seg6_do_srh_encap(struct sk_buff *skb, struct ipv6_sr_hdr *osrh, int proto) in seg6_do_srh_encap()
210 struct ipv6_sr_hdr *osrh, int proto, in seg6_do_srh_encap_red()
215 struct net *net = dev_net(dst->dev); in seg6_do_srh_encap_red() local
365 struct net *net = dev_net(skb_dst(skb)->dev); in __seg6_do_srh_inline() local
384 int proto, err = 0; in seg6_do_srh() local
464 static int seg6_input_finish(struct net *net, struct sock *sk, in seg6_input_finish()
[all …]
Dexthdrs.c303 struct net *net = dev_net(skb->dev); in ipv6_destopt_rcv() local
372 struct net *net = dev_net(skb->dev); in ipv6_srh_rcv() local
486 struct net *net = dev_net(skb->dev); in ipv6_rpl_srh_rcv() local
656 struct net *net = dev_net(skb->dev); in ipv6_rthdr_rcv() local
1036 struct net *net = dev_net(skb->dev); in ipv6_parse_hopopts() local
1077 static void ipv6_push_rthdr0(struct sk_buff *skb, u8 *proto, in ipv6_push_rthdr0()
1102 static void ipv6_push_rthdr4(struct sk_buff *skb, u8 *proto, in ipv6_push_rthdr4()
1133 struct net *net = NULL; in ipv6_push_rthdr4() local
1151 static void ipv6_push_rthdr(struct sk_buff *skb, u8 *proto, in ipv6_push_rthdr()
1169 static void ipv6_push_exthdr(struct sk_buff *skb, u8 *proto, u8 type, struct ipv6_opt_hdr *opt) in ipv6_push_exthdr()
[all …]
/linux-6.14.4/net/bluetooth/
Daf_bluetooth.c71 void bt_sock_reclassify_lock(struct sock *sk, int proto) in bt_sock_reclassify_lock()
82 int bt_sock_register(int proto, const struct net_proto_family *ops) in bt_sock_register()
102 void bt_sock_unregister(int proto) in bt_sock_unregister()
113 static int bt_sock_create(struct net *net, struct socket *sock, int proto, in bt_sock_create()
143 struct sock *bt_sock_alloc(struct net *net, struct socket *sock, in bt_sock_alloc()
144 struct proto *prot, int proto, gfp_t prio, int kern) in bt_sock_alloc()
752 int bt_procfs_init(struct net *net, const char *name, in bt_procfs_init()
763 void bt_procfs_cleanup(struct net *net, const char *name) in bt_procfs_cleanup()
768 int bt_procfs_init(struct net *net, const char *name, in bt_procfs_init()
775 void bt_procfs_cleanup(struct net *net, const char *name) in bt_procfs_cleanup()
/linux-6.14.4/net/ipv6/netfilter/
Dnf_reject_ipv6.c20 u8 proto = ip6h->nexthdr; in nf_reject_v6_csum_ok() local
59 struct sk_buff *nf_reject_skb_v6_tcp_reset(struct net *net, in nf_reject_skb_v6_tcp_reset()
94 struct sk_buff *nf_reject_skb_v6_unreach(struct net *net, in nf_reject_skb_v6_unreach()
154 u8 proto; in nf_reject_ip6_tcphdr_get() local
268 void nf_send_reset6(struct net *net, struct sock *sk, struct sk_buff *oldskb, in nf_send_reset6()
374 u8 proto; in reject6_csum_ok() local
391 void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, in nf_send_unreach6()
/linux-6.14.4/include/net/
Dl3mdev.h76 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index()
121 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index()
143 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master()
165 struct sk_buff *l3mdev_l3_rcv(struct sk_buff *skb, u16 proto) in l3mdev_l3_rcv()
194 struct sk_buff *l3mdev_l3_out(struct sock *sk, struct sk_buff *skb, u16 proto) in l3mdev_l3_out()
234 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index()
240 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index_rcu()
245 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index()
264 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index()
269 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master()
[all …]
Draw.h43 static inline u32 raw_hashfunc(const struct net *net, u32 proto) in raw_hashfunc()
88 static inline bool raw_sk_bound_dev_eq(struct net *net, int bound_dev_if, in raw_sk_bound_dev_eq()
/linux-6.14.4/net/ipv4/netfilter/
Dnf_reject_ipv4.c39 struct sk_buff *nf_reject_skb_v4_tcp_reset(struct net *net, in nf_reject_skb_v4_tcp_reset()
74 struct sk_buff *nf_reject_skb_v4_unreach(struct net *net, in nf_reject_skb_v4_unreach()
85 u8 proto; in nf_reject_skb_v4_unreach() local
239 void nf_send_reset(struct net *net, struct sock *sk, struct sk_buff *oldskb, in nf_send_reset()
319 u8 proto = iph->protocol; in nf_send_unreach() local
/linux-6.14.4/net/ipv4/
Dfou_core.c239 u8 proto; in fou_gro_receive() local
274 u8 proto; in fou_gro_complete() local
337 u8 proto; in gue_gro_receive() local
473 u8 proto; in gue_gro_complete() local
540 static int fou_add_to_port_list(struct net *net, struct fou *fou, in fou_add_to_port_list()
570 static int fou_create(struct net *net, struct fou_cfg *cfg, in fou_create()
643 static int fou_destroy(struct net *net, struct fou_cfg *cfg) in fou_destroy()
757 struct net *net = genl_info_net(info); in fou_nl_add_doit() local
770 struct net *net = genl_info_net(info); in fou_nl_del_doit() local
839 struct net *net = genl_info_net(info); in fou_nl_get_doit() local
[all …]
Dip_gre.c139 struct net *net = dev_net(skb->dev); in ipgre_err() local
266 struct net *net = dev_net(skb->dev); in erspan_rcv() local
414 struct net *net = dev_net(skb->dev); in ipgre_rcv() local
471 __be16 proto) in __gre_xmit()
493 __be16 proto) in gre_fb_xmit()
544 __be16 proto; in erspan_fb_xmit() local
702 __be16 proto; in erspan_xmit() local
1060 static int __net_init ipgre_init_net(struct net *net) in ipgre_init_net()
1693 struct net_device *gretap_fb_dev_create(struct net *net, const char *name, in gretap_fb_dev_create()
1738 static int __net_init ipgre_tap_init_net(struct net *net) in ipgre_tap_init_net()
[all …]
/linux-6.14.4/net/key/
Daf_key.c96 struct net *net = sock_net(sk); in pfkey_sock_destruct() local
117 struct net *net = sock_net(sk); in pfkey_insert() local
138 static int pfkey_create(struct net *net, struct socket *sock, int protocol, in pfkey_create()
217 struct net *net) in pfkey_broadcast()
584 pfkey_proto2satype(uint16_t proto) in pfkey_proto2satype()
603 static uint8_t pfkey_proto_to_xfrm(uint8_t proto) in pfkey_proto_to_xfrm()
608 static uint8_t pfkey_proto_from_xfrm(uint8_t proto) in pfkey_proto_from_xfrm()
652 static struct xfrm_state *pfkey_xfrm_state_lookup(struct net *net, const struct sadb_msg *hdr, voi… in pfkey_xfrm_state_lookup()
656 uint16_t proto; in pfkey_xfrm_state_lookup() local
1059 static struct xfrm_state * pfkey_msg2xfrm_state(struct net *net, in pfkey_msg2xfrm_state()
[all …]
/linux-6.14.4/net/can/
Daf_can.c114 static int can_create(struct net *net, struct socket *sock, int protocol, in can_create()
303 static struct can_dev_rcv_lists *can_dev_rcv_lists_find(struct net *net, in can_dev_rcv_lists_find()
442 int can_rx_register(struct net *net, struct net_device *dev, canid_t can_id, in can_rx_register()
511 void can_rx_unregister(struct net *net, struct net_device *dev, canid_t can_id, in can_rx_unregister()
645 struct net *net = dev_net(dev); in can_receive() local
736 int proto = cp->protocol; in can_proto_register() local
772 int proto = cp->protocol; in can_proto_unregister() local
785 static int can_pernet_init(struct net *net) in can_pernet_init()
821 static void can_pernet_exit(struct net *net) in can_pernet_exit()
/linux-6.14.4/net/handshake/
Dnetlink.c37 int handshake_genl_notify(struct net *net, const struct handshake_proto *proto, in handshake_genl_notify()
92 struct net *net = sock_net(skb->sk); in handshake_nl_accept_doit() local
139 struct net *net = sock_net(skb->sk); in handshake_nl_done_doit() local
173 static int __net_init handshake_net_init(struct net *net) in handshake_net_init()
195 static void __net_exit handshake_net_exit(struct net *net) in handshake_net_exit()
238 struct handshake_net *handshake_pernet(struct net *net) in handshake_pernet()
Drequest.c108 struct handshake_req *handshake_req_alloc(const struct handshake_proto *proto, in handshake_req_alloc()
226 struct net *net; in handshake_req_submit() local
289 struct net *net = sock_net(sk); in handshake_complete() local
316 struct net *net; in handshake_req_cancel() local
/linux-6.14.4/net/netfilter/
Dnf_conntrack_ovs.c13 enum ip_conntrack_info ctinfo, u16 proto) in nf_ct_helper()
79 u8 proto, bool nat, struct nf_conntrack_helper **hp) in nf_ct_add_helper()
144 int nf_ct_handle_fragments(struct net *net, struct sk_buff *skb, in nf_ct_handle_fragments()
145 u16 zone, u8 family, u8 *proto, u16 *mru) in nf_ct_handle_fragments()
Dnf_log_syslog.c44 static bool nf_log_allowed(const struct net *net) in nf_log_allowed()
115 struct net *net) in nf_log_dump_packet_common()
134 static void nf_log_arp_packet(struct net *net, u_int8_t pf, in nf_log_arp_packet()
165 static void nf_log_dump_sk_uid_gid(struct net *net, struct nf_log_buf *m, in nf_log_dump_sk_uid_gid()
185 u8 proto, int fragment, in nf_log_dump_tcp_header()
266 u8 proto, int fragment, in nf_log_dump_udp_header()
299 dump_ipv4_packet(struct net *net, struct nf_log_buf *m, in dump_ipv4_packet()
533 dump_ipv6_packet(struct net *net, struct nf_log_buf *m, in dump_ipv6_packet()
831 static void nf_log_ip_packet(struct net *net, u_int8_t pf, in nf_log_ip_packet()
866 static void nf_log_ip6_packet(struct net *net, u_int8_t pf, in nf_log_ip6_packet()
[all …]
Dnf_flow_table_offload.c82 u16 vlan_id, __be16 proto) in nf_flow_rule_vlan_match()
223 static int flow_offload_eth_src(struct net *net, in flow_offload_eth_src()
270 static int flow_offload_eth_dst(struct net *net, in flow_offload_eth_dst()
327 static void flow_offload_ipv4_snat(struct net *net, in flow_offload_ipv4_snat()
354 static void flow_offload_ipv4_dnat(struct net *net, in flow_offload_ipv4_dnat()
395 static void flow_offload_ipv6_snat(struct net *net, in flow_offload_ipv6_snat()
420 static void flow_offload_ipv6_dnat(struct net *net, in flow_offload_ipv6_dnat()
464 static void flow_offload_port_snat(struct net *net, in flow_offload_port_snat()
494 static void flow_offload_port_dnat(struct net *net, in flow_offload_port_dnat()
524 static void flow_offload_ipv4_checksum(struct net *net, in flow_offload_ipv4_checksum()
[all …]
Dnf_conntrack_standalone.c248 static const char* l3proto_name(u16 proto) in l3proto_name()
258 static const char* l4proto_name(u16 proto) in l4proto_name()
296 struct net *net = seq_file_net(s); in ct_seq_show() local
388 struct net *net = seq_file_net(seq); in ct_cpu_seq_start() local
406 struct net *net = seq_file_net(seq); in ct_cpu_seq_next() local
425 struct net *net = seq_file_net(seq); in ct_cpu_seq_show() local
467 static int nf_conntrack_standalone_init_proc(struct net *net) in nf_conntrack_standalone_init_proc()
495 static void nf_conntrack_standalone_fini_proc(struct net *net) in nf_conntrack_standalone_fini_proc()
501 static int nf_conntrack_standalone_init_proc(struct net *net) in nf_conntrack_standalone_init_proc()
506 static void nf_conntrack_standalone_fini_proc(struct net *net) in nf_conntrack_standalone_fini_proc()
[all …]
Dnf_tables_offload.c88 struct nft_flow_rule *nft_flow_rule_create(struct net *net, in nft_flow_rule_create()
190 __be16 proto, int priority, in nft_flow_offload_common_init()
249 __be16 proto = ETH_P_ALL; in nft_flow_cls_offload_setup() local
368 struct net *net, in nft_flow_block_offload_init()
406 struct net *net = dev_net(dev); in nft_indr_block_cleanup() local
509 static void nft_flow_rule_offload_abort(struct net *net, in nft_flow_rule_offload_abort()
559 int nft_flow_rule_offload_commit(struct net *net) in nft_flow_rule_offload_commit()
662 struct net *net = dev_net(dev); in nft_offload_netdev_event() local
/linux-6.14.4/fs/nfsd/
Dnfssvc.c207 bool nfsd_net_try_get(struct net *net) __must_hold(rcu) in nfsd_net_try_get()
214 void nfsd_net_put(struct net *net) __must_hold(rcu) in nfsd_net_put()
240 int nfsd_nrthreads(struct net *net) in nfsd_nrthreads()
252 static int nfsd_init_socks(struct net *net, const struct cred *cred) in nfsd_init_socks()
369 static int nfsd_startup_net(struct net *net, const struct cred *cred) in nfsd_startup_net()
423 static void nfsd_shutdown_net(struct net *net) in nfsd_shutdown_net()
455 struct net *net = dev_net(dev); in nfsd_inetaddr_event() local
485 struct net *net = dev_net(dev); in nfsd_inet6addr_event() local
519 void nfsd_destroy_serv(struct net *net) in nfsd_destroy_serv()
591 void nfsd_shutdown_threads(struct net *net) in nfsd_shutdown_threads()
[all …]
/linux-6.14.4/drivers/net/
Dvrf.c131 static struct vrf_map *netns_vrf_map(struct net *net) in netns_vrf_map()
312 static int vrf_ifindex_lookup_by_table_id(struct net *net, u32 table_id) in vrf_ifindex_lookup_by_table_id()
396 static int vrf_ip6_local_out(struct net *net, struct sock *sk, in vrf_ip6_local_out()
416 struct net *net = dev_net(skb->dev); in vrf_process_v6_outbound() local
476 static int vrf_ip_local_out(struct net *net, struct sock *sk, in vrf_ip_local_out()
497 struct net *net = dev_net(vrf_dev); in vrf_process_v4_outbound() local
602 static int vrf_finish_output6(struct net *net, struct sock *sk, in vrf_finish_output6()
636 static int vrf_output6(struct net *net, struct sock *sk, struct sk_buff *skb) in vrf_output6()
676 static int vrf_output6_direct_finish(struct net *net, struct sock *sk, in vrf_output6_direct_finish()
684 static int vrf_output6_direct(struct net *net, struct sock *sk, in vrf_output6_direct()
[all …]
/linux-6.14.4/net/sched/
Dact_ctinfo.c32 struct sk_buff *skb, int wlen, int proto) in tcf_ctinfo_dscp_set()
90 int proto, wlen; in tcf_ctinfo_act() local
156 static int tcf_ctinfo_init(struct net *net, struct nlattr *nla, in tcf_ctinfo_init()
368 static __net_init int ctinfo_init_net(struct net *net) in ctinfo_init_net()
/linux-6.14.4/drivers/net/ipvlan/
Dipvlan_l3s.c40 struct sk_buff *skb, u16 proto) in ipvlan_l3_rcv()
134 static int ipvlan_register_nf_hook(struct net *net) in ipvlan_register_nf_hook()
151 static void ipvlan_unregister_nf_hook(struct net *net) in ipvlan_unregister_nf_hook()
178 static void ipvlan_ns_exit(struct net *net) in ipvlan_ns_exit()
/linux-6.14.4/net/sunrpc/
Dsvc.c421 static int svc_rpcb_setup(struct svc_serv *serv, struct net *net) in svc_rpcb_setup()
434 void svc_rpcb_cleanup(struct svc_serv *serv, struct net *net) in svc_rpcb_cleanup()
459 int svc_bind(struct svc_serv *serv, struct net *net) in svc_bind()
982 static int __svc_rpcb_register4(struct net *net, const u32 program, in __svc_rpcb_register4()
1030 static int __svc_rpcb_register6(struct net *net, const u32 program, in __svc_rpcb_register6()
1074 static int __svc_register(struct net *net, const char *progname, in __svc_register()
1099 int svc_rpcbind_set_version(struct net *net, in svc_rpcbind_set_version()
1102 unsigned short proto, in svc_rpcbind_set_version()
1110 int svc_generic_rpcbind_set(struct net *net, in svc_generic_rpcbind_set()
1113 unsigned short proto, in svc_generic_rpcbind_set()
[all …]
/linux-6.14.4/net/nfc/
Daf_nfc.c18 static int nfc_sock_create(struct net *net, struct socket *sock, int proto, in nfc_sock_create()

12345