| /linux/include/net/ |
| H A D | net_namespace.h | 15 #include <net/flow.h> 16 #include <net/netns/core.h> 17 #include <net/netns/mib.h> 18 #include <net/netns/unix.h> 19 #include <net/netns/packet.h> 20 #include <net/netns/ipv4.h> 21 #include <net/netns/ipv6.h> 22 #include <net/netns/nexthop.h> 23 #include <net/netns/ieee802154_6lowpan.h> 24 #include <net/netn 62 struct net { global() struct 66 passivenet global() argument 77 listnet global() argument 78 exit_listnet global() argument 79 fnhe_genidnet global() argument 95 netns_idsnet global() argument 100 notrefcnt_trackernet global() argument 103 proc_netnet global() argument 104 proc_net_statnet global() argument 110 rtnlnet global() argument 118 netdev_chainnet global() argument 126 loopback_devnet global() argument 131 corenet global() argument 132 mibnet global() argument 133 packetnet global() argument 135 unxnet global() argument 137 nexthopnet global() argument 138 ipv4net global() argument 140 ipv6net global() argument 143 ieee802154_lowpannet global() argument 146 sctpnet global() argument 149 nfnet global() argument 151 ctnet global() argument 154 nftnet global() argument 157 ftnet global() argument 163 gennet global() argument 166 bpfnet global() argument 170 xfrmnet global() argument 173 net_cookienet global() argument 176 ipvsnet global() argument 179 mplsnet global() argument 182 cannet global() argument 185 xdpnet global() argument 188 mctpnet global() argument 195 smcnet global() argument 205 vsocknet global() argument 212 dev_unreg_locknet global() argument 237 net_ns_get_ownership(const struct net * net,kuid_t * uid,kgid_t * gid) net_ns_get_ownership() argument 279 get_net(struct net * net) get_net() argument 285 maybe_get_net(struct net * net) maybe_get_net() argument 298 put_net(struct net * net) put_net() argument 310 check_net(const struct net * net) check_net() argument 320 get_net(struct net * net) get_net() argument 325 put_net(struct net * net) put_net() argument 329 maybe_get_net(struct net * net) maybe_get_net() argument 340 check_net(const struct net * net) check_net() argument 347 net_passive_dec(struct net * net) net_passive_dec() argument 353 net_passive_inc(struct net * net) net_passive_inc() argument 359 net_initialized(const struct net * net) net_initialized() argument 364 __netns_tracker_alloc(struct net * net,netns_tracker * tracker,bool refcounted,gfp_t gfp) __netns_tracker_alloc() argument 376 netns_tracker_alloc(struct net * net,netns_tracker * tracker,gfp_t gfp) netns_tracker_alloc() argument 382 __netns_tracker_free(struct net * net,netns_tracker * tracker,bool refcounted) __netns_tracker_free() argument 392 get_net_track(struct net * net,netns_tracker * tracker,gfp_t gfp) get_net_track() argument 400 put_net_track(struct net * net,netns_tracker * tracker) put_net_track() argument 408 struct net __rcu *net; global() member 412 write_pnet(possible_net_t * pnet,struct net * net) write_pnet() argument 523 register_net_sysctl(net,path,table) global() argument 533 register_net_sysctl_sz(struct net * net,const char * path,const struct ctl_table * table,size_t table_size) register_net_sysctl_sz() argument 543 rt_genid_ipv4(const struct net * net) rt_genid_ipv4() argument 549 rt_genid_ipv6(const struct net * net) rt_genid_ipv6() argument 555 rt_genid_bump_ipv4(struct net * net) rt_genid_bump_ipv4() argument 561 rt_genid_bump_ipv6(struct net * net) rt_genid_bump_ipv6() argument 569 net_ieee802154_lowpan(struct net * net) net_ieee802154_lowpan() argument 576 rt_genid_bump_all(struct net * net) rt_genid_bump_all() argument 582 fnhe_genid(const struct net * net) fnhe_genid() argument 587 fnhe_genid_bump(struct net * net) fnhe_genid_bump() argument [all...] |
| H A D | ip_fib.h | 15 #include <net/flow.h> 18 #include <net/fib_notifier.h> 19 #include <net/fib_rules.h> 20 #include <net/inet_dscp.h> 21 #include <net/inetpeer.h> 140 struct net *fib_net; 165 int __net_init fib4_semantics_init(struct net *net); 166 void __net_exit fib4_semantics_exit(struct net *net); 296 fib_get_table(struct net * net,u32 id) fib_get_table() argument 311 fib_new_table(struct net * net,u32 id) fib_new_table() argument 316 fib_lookup(struct net * net,const struct flowi4 * flp,struct fib_result * res,unsigned int flags) fib_lookup() argument 336 fib4_has_custom_rules(const struct net * net) fib4_has_custom_rules() argument 346 fib4_rules_dump(struct net * net,struct notifier_block * nb,struct netlink_ext_ack * extack) fib4_rules_dump() argument 352 fib4_rules_seq_read(const struct net * net) fib4_rules_seq_read() argument 357 fib4_rules_early_flow_dissect(struct net * net,struct sk_buff * skb,struct flowi4 * fl4,struct flow_keys * flkeys) fib4_rules_early_flow_dissect() argument 374 fib_lookup(struct net * net,struct flowi4 * flp,struct fib_result * res,unsigned int flags) fib_lookup() argument 407 fib4_has_custom_rules(const struct net * net) fib4_has_custom_rules() argument 417 fib4_rules_early_flow_dissect(struct net * net,struct sk_buff * skb,struct flowi4 * fl4,struct flow_keys * flkeys) fib4_rules_early_flow_dissect() argument 469 fib_num_tclassid_users(struct net * net) fib_num_tclassid_users() argument 474 fib_num_tclassid_users(struct net * net) fib_num_tclassid_users() argument 555 fib_multipath_hash_from_keys(const struct net * net,struct flow_keys * keys) fib_multipath_hash_from_keys() argument 567 fib_multipath_hash_from_keys(const struct net * net,struct flow_keys * keys) fib_multipath_hash_from_keys() argument 646 fib_proc_init(struct net * net) fib_proc_init() argument 650 fib_proc_exit(struct net * net) fib_proc_exit() argument [all...] |
| H A D | ip6_fib.h | 16 #include <net/dst.h> 17 #include <net/flow.h> 18 #include <net/ip_fib.h> 19 #include <net/netlink.h> 20 #include <net/inetpeer.h> 21 #include <net/fib_notifier.h> 91 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument 96 static inline void fib6_routes_require_src_inc(struct net *net) {} in fib6_routes_require_src_inc() argument 97 static inline void fib6_routes_require_src_dec(struct net *net) {} in fib6_routes_require_src_dec() argument 101 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument [all …]
|
| H A D | ip6_route.h | 5 #include <net/addrconf.h> 6 #include <net/flow.h> 7 #include <net/ip6_fib.h> 8 #include <net/sock.h> 9 #include <net/lwtunnel.h> 13 #include <net/nexthop.h> 88 struct dst_entry *ip6_route_input_lookup(struct net *net, 93 struct dst_entry *ip6_route_output_flags(struct net *net, cons 96 ip6_route_output(struct net * net,const struct sock * sk,struct flowi6 * fl6) ip6_route_output() argument 134 ip6_del_rt(struct net * net,struct fib6_info * f6i,bool skip_notify) ip6_del_rt() argument 145 ip6_route_get_saddr(struct net * net,struct fib6_info * f6i,const struct in6_addr * daddr,unsigned int prefs,int l3mdev_index,struct in6_addr * saddr) ip6_route_get_saddr() argument 219 struct net *net; global() member 294 ip6_fragment(struct net * net,struct sock * sk,struct sk_buff * skb,int (* output)(struct net *,struct sock *,struct sk_buff *)) ip6_fragment() argument 296 ip6_fragment(struct net * net,struct sock * sk,struct sk_buff * skb,int (* output)(struct net *,struct sock *,struct sk_buff *)) ip6_fragment() argument [all...] |
| /linux/drivers/net/ethernet/ |
| H A D | Kconfig | 8 depends on NET 18 source "drivers/net/ethernet/3com/Kconfig" 19 source "drivers/net/ethernet/actions/Kconfig" 20 source "drivers/net/ethernet/adaptec/Kconfig" 21 source "drivers/net/ethernet/aeroflex/Kconfig" 22 source "drivers/net/ethernet/agere/Kconfig" 23 source "drivers/net/ethernet/airoha/Kconfig" 24 source "drivers/net/ethernet/alacritech/Kconfig" 25 source "drivers/net/ethernet/alibaba/Kconfig" 26 source "drivers/net/etherne [all...] |
| /linux/net/core/ |
| H A D | net_namespace.c | 25 #include <net/aligned_data.h> 26 #include <net/sock.h> 27 #include <net/netlink.h> 28 #include <net/net_namespace.h> 29 #include <net/netns/generic.h> 49 struct net init_net; 56 * This is internal net namespace object. Please, don't use it 83 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic() argument 89 old_ng = rcu_dereference_protected(net in net_assign_generic() 120 ops_init(const struct pernet_operations * ops,struct net * net) ops_init() argument 157 struct net *net; ops_pre_exit_list() local 171 struct net *net; ops_exit_rtnl_list() local 197 struct net *net; ops_exit_list() local 212 struct net *net; ops_free_list() local 271 alloc_netid(struct net * net,struct net * peer,int reqid) alloc_netid() argument 289 net_eq_idr(int id,void * net,void * peer) net_eq_idr() argument 297 __peernet2id(const struct net * net,struct net * peer) __peernet2id() argument 315 peernet2id_alloc(struct net * net,struct net * peer,gfp_t gfp) peernet2id_alloc() argument 353 peernet2id(const struct net * net,struct net * peer) peernet2id() argument 368 peernet_has_id(const struct net * net,struct net * peer) peernet_has_id() argument 373 get_net_ns_by_id(const struct net * net,int id) get_net_ns_by_id() argument 390 preinit_net_sysctl(struct net * net) preinit_net_sysctl() argument 403 preinit_net(struct net * net,struct user_namespace * user_ns) preinit_net() argument 433 setup_net(struct net * net) setup_net() argument 480 struct net *net = NULL; net_alloc() local 517 struct net *net, *next; net_complete_free() local 527 net_passive_dec(struct net * net) net_passive_dec() argument 554 struct net *net; copy_net_ns() local 611 net_ns_get_ownership(const struct net * net,kuid_t * uid,kgid_t * gid) net_ns_get_ownership() argument 669 struct net *net, *tmp, *last; cleanup_net() local 749 __put_net(struct net * net) __put_net() argument 766 struct net *net; get_net_ns() local 796 struct net *net; get_net_ns_by_pid() local 816 net_ns_net_debugfs(struct net * net) net_ns_net_debugfs() argument 833 net_ns_net_debugfs(struct net * net) net_ns_net_debugfs() argument 838 net_ns_net_init(struct net * net) net_ns_net_init() argument 859 struct net *net = sock_net(skb->sk); rtnl_net_newid() local 1003 struct net *net = sock_net(skb->sk); rtnl_net_getid() local 1127 struct net *net; rtnl_valid_dump_net_req() local 1183 rtnl_net_notifyid(struct net * net,int cmd,int id,u32 portid,struct nlmsghdr * nlh,gfp_t gfp) rtnl_net_notifyid() argument 1314 struct net *net; __register_pernet_operations() local 1341 struct net *net; __unregister_pernet_operations() local 1517 struct net *net = NULL; netns_get() local 1537 struct net *net = to_net_ns(ns); netns_install() local [all...] |
| /linux/drivers/net/thunderbolt/ |
| H A D | main.c | 25 #include <net/ip6_checksum.h> 242 static int tbnet_login_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_login_response() argument 246 struct tb_xdomain *xd = net->xd; in tbnet_login_response() 252 memcpy(reply.receiver_mac, net->dev->dev_addr, ETH_ALEN); in tbnet_login_response() 259 static int tbnet_login_request(struct tbnet *net, u8 sequence) in tbnet_login_request() argument 263 struct tb_xdomain *xd = net->xd; in tbnet_login_request() 268 atomic_inc_return(&net->command_id)); in tbnet_login_request() 271 request.transmit_path = net->local_transmit_path; in tbnet_login_request() 279 static int tbnet_logout_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_logout_response() argument 283 struct tb_xdomain *xd = net in tbnet_logout_response() 293 tbnet_logout_request(struct tbnet * net) tbnet_logout_request() argument 310 start_login(struct tbnet * net) start_login() argument 323 stop_login(struct tbnet * net) stop_login() argument 369 tbnet_tear_down(struct tbnet * net,bool send_logout) tbnet_tear_down() argument 428 struct tbnet *net = data; tbnet_handle_packet() local 506 tbnet_alloc_rx_buffers(struct tbnet * net,unsigned int nbuffers) tbnet_alloc_rx_buffers() argument 555 tbnet_get_tx_buffer(struct tbnet * net) tbnet_get_tx_buffer() argument 580 struct tbnet *net = netdev_priv(tf->dev); tbnet_tx_callback() local 589 tbnet_alloc_tx_buffers(struct tbnet * net) tbnet_alloc_tx_buffers() argument 629 tbnet_connect_failed(struct tbnet * net) tbnet_connect_failed() argument 639 struct tbnet *net = container_of(work, typeof(*net), connected_work); tbnet_connected_work() local 710 struct tbnet *net = container_of(work, typeof(*net), login_work.work); tbnet_login_work() local 745 struct tbnet *net = container_of(work, typeof(*net), disconnect_work); tbnet_disconnect_work() local 750 tbnet_check_frame(struct tbnet * net,const struct tbnet_frame * tf,const struct thunderbolt_ip_frame_header * hdr) tbnet_check_frame() argument 827 struct tbnet *net = container_of(napi, struct tbnet, napi); tbnet_poll() local 934 struct tbnet *net = data; tbnet_start_poll() local 941 struct tbnet *net = netdev_priv(dev); tbnet_open() local 998 struct tbnet *net = netdev_priv(dev); tbnet_stop() local 1015 tbnet_xmit_csum_and_map(struct tbnet * net,struct sk_buff * skb,struct tbnet_frame ** frames,u32 frame_count) tbnet_xmit_csum_and_map() argument 1133 struct tbnet *net = netdev_priv(dev); tbnet_start_xmit() local 1272 struct tbnet *net = netdev_priv(dev); tbnet_get_stats64() local 1299 const struct tbnet *net = netdev_priv(dev); tbnet_get_link_ksettings() local 1345 const struct tbnet *net = netdev_priv(dev); tbnet_generate_mac() local 1369 struct tbnet *net; tbnet_probe() local 1438 struct tbnet *net = tb_service_get_drvdata(svc); tbnet_remove() local 1453 struct tbnet *net = tb_service_get_drvdata(svc); tbnet_suspend() local 1468 struct tbnet *net = tb_service_get_drvdata(svc); tbnet_resume() local [all...] |
| /linux/net/tipc/ |
| H A D | bcast.c | 2 * net/tipc/bcast.c: TIPC broadcast code 77 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base() argument 79 return tipc_net(net)->bcbase; in tipc_bc_base() 86 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu() argument 88 return tipc_link_mss(tipc_bc_sndlink(net)); in tipc_bcast_get_mtu() 91 void tipc_bcast_toggle_rcast(struct net *net, bool supp) in tipc_bcast_toggle_rcast() argument 93 tipc_bc_base(net)->rcast_support = supp; in tipc_bcast_toggle_rcast() 96 static void tipc_bcbase_calc_bc_threshold(struct net *net) in tipc_bcbase_calc_bc_threshold() argument 98 struct tipc_bc_base *bb = tipc_bc_base(net); in tipc_bcbase_calc_bc_threshold() 99 int cluster_size = tipc_link_bc_peers(tipc_bc_sndlink(net)); in tipc_bcbase_calc_bc_threshold() [all …]
|
| H A D | bcast.h | 2 * net/tipc/bcast.h: Include file for TIPC broadcast code 81 int tipc_bcast_init(struct net *net); 82 void tipc_bcast_stop(struct net *net); 83 void tipc_bcast_add_peer(struct net *net, struct tipc_link *l, 85 void tipc_bcast_remove_peer(struct net *net, struct tipc_link *rcv_bcl); 86 void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id); 87 void tipc_bcast_dec_bearer_dst_cnt(struct net *net, int bearer_id); 88 int tipc_bcast_get_mtu(struct net *net); 89 void tipc_bcast_toggle_rcast(struct net *net, bool supp); 90 int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts, [all …]
|
| H A D | node.h | 2 * net/tipc/node.h: Include file for TIPC node management routines 41 #include "net.h" 77 void tipc_node_stop(struct net *net); 78 bool tipc_node_get_id(struct net *net, u32 addr, u8 *id); 83 struct tipc_node *tipc_node_create(struct net *net, u32 addr, u8 *peer_id, 89 struct tipc_crypto *tipc_node_crypto_rx_by_addr(struct net *net, u32 addr); 91 u32 tipc_node_try_addr(struct net *net, u8 *id, u32 addr); 92 void tipc_node_check_dest(struct net *net, u32 onode, u8 *peer_id128, 97 void tipc_node_delete_links(struct net *net, int bearer_id); 98 void tipc_node_apply_property(struct net *net, struct tipc_bearer *b, int prop); [all …]
|
| /linux/kernel/bpf/ |
| H A D | net_namespace.c | 6 #include <net/net_namespace.h> 15 /* We don't hold a ref to net in order to auto-detach the link 20 struct net *net; member 21 struct list_head node; /* node in list of links attached to net */ 55 static void netns_bpf_run_array_detach(struct net *net, in netns_bpf_run_array_detach() argument 60 run_array = rcu_replace_pointer(net->bpf.run_array[type], NULL, in netns_bpf_run_array_detach() 65 static int link_index(struct net *net, enum netns_bpf_attach_type type, in link_index() argument 71 list_for_each_entry(pos, &net->bpf.links[type], node) { in link_index() 79 static int link_count(struct net *net, enum netns_bpf_attach_type type) in link_count() argument 84 list_for_each(pos, &net->bpf.links[type]) in link_count() [all …]
|
| /linux/include/linux/ |
| H A D | rtnetlink.h | 12 extern int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, u32 group, int echo); 14 static inline int rtnetlink_maybe_send(struct sk_buff *skb, struct net *net, in rtnetlink_maybe_send() argument 17 return !skb ? 0 : rtnetlink_send(skb, net, pid, group, echo); in rtnetlink_maybe_send() 20 extern int rtnl_unicast(struct sk_buff *skb, struct net *net, u32 pid); 21 extern void rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid, 23 extern void rtnl_set_sk_err(struct net *net, u32 group, int error); 101 void __rtnl_net_lock(struct net *net); 102 void __rtnl_net_unlock(struct net *net); 103 void rtnl_net_lock(struct net *net); 104 void rtnl_net_unlock(struct net *net); [all …]
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | nft_flowtable.sh | 27 log_netns=$(sysctl -n net.netfilter.nf_log_all_netns) 42 [ "$log_netns" -eq 0 ] && sysctl -q net.netfilter.nf_log_all_netns="$log_netns" 47 sysctl -q net.netfilter.nf_log_all_netns=1 55 ip -net "$nsr1" link set "$dev" up 56 ip -net "$nsr2" link set "$dev" up 59 ip -net "$nsr1" addr add 10.0.1.1/24 dev veth0 60 ip -net "$nsr1" addr add dead:1::1/64 dev veth0 nodad 62 ip -net "$nsr2" addr add 10.0.2.1/24 dev veth1 63 ip -net "$nsr2" addr add dead:2::1/64 dev veth1 nodad 102 if ! ip -net "$nsr1" link set veth0 mtu "$omtu"; then [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | big_tcp.sh | 31 ip -net $ROUTER_NS link add link1 type veth peer name link0 netns $CLIENT_NS 32 ip -net $ROUTER_NS link add link2 type veth peer name link3 netns $SERVER_NS 34 ip -net $CLIENT_NS link set link0 up 35 ip -net $CLIENT_NS link set link0 mtu 1442 36 ip -net $CLIENT_NS addr add $CLIENT_IP4/24 dev link0 37 ip -net $CLIENT_NS addr add $CLIENT_IP6/64 dev link0 nodad 38 ip -net $CLIENT_NS route add $SERVER_IP4 dev link0 via $CLIENT_GW4 39 ip -net $CLIENT_NS route add $SERVER_IP6 dev link0 via $CLIENT_GW6 40 ip -net $CLIENT_NS link set dev link0 \ 42 ip -net $CLIENT_NS link set dev link0 \ [all …]
|
| /linux/fs/afs/ |
| H A D | main.c | 65 static int __net_init afs_net_init(struct net *net_ns) in afs_net_init() 68 struct afs_net *net = afs_net(net_ns); in afs_net_init() local 71 net->net = net_ns; in afs_net_init() 72 net->live = true; in afs_net_init() 73 generate_random_uuid((unsigned char *)&net->uuid); in afs_net_init() 75 INIT_WORK(&net->charge_preallocation_work, afs_charge_preallocation); in afs_net_init() 76 INIT_WORK(&net->rx_oob_work, afs_process_oob_queue); in afs_net_init() 77 mutex_init(&net->socket_mutex); in afs_net_init() 79 net->cells = RB_ROOT; in afs_net_init() 80 idr_init(&net->cells_dyn_ino); in afs_net_init() [all …]
|
| /linux/fs/proc/ |
| H A D | proc_net.c | 3 * linux/fs/proc/net.c 9 * proc net directory handling functions 24 #include <net/net_namespace.h> 30 static inline struct net *PDE_NET(struct proc_dir_entry *pde) in PDE_NET() 35 static struct net *get_proc_net(const struct inode *inode) in get_proc_net() 44 struct net *net; in seq_open_net() local 51 net = get_proc_net(inode); in seq_open_net() 52 if (!net) in seq_open_net() 57 put_net(net); in seq_open_net() 61 p->net = net; in seq_open_net() [all …]
|
| /linux/net/ipv4/ |
| H A D | fib_frontend.c | 35 #include <net/flow.h> 36 #include <net/inet_dscp.h> 37 #include <net/ip.h> 38 #include <net/protocol.h> 39 #include <net/route.h> 40 #include <net/tcp.h> 41 #include <net/sock.h> 42 #include <net/arp.h> 43 #include <net/ip_fib.h> 44 #include <net/nextho 53 fib4_rules_init(struct net * net) fib4_rules_init() argument 77 fib_new_table(struct net * net,u32 id) fib_new_table() argument 129 fib_get_table(struct net * net,u32 id) fib_get_table() argument 154 fib_replace_table(struct net * net,struct fib_table * old,struct fib_table * new) fib_replace_table() argument 174 fib_unmerge(struct net * net) fib_unmerge() argument 206 fib_flush(struct net * net) fib_flush() argument 227 __inet_dev_addr_type(struct net * net,const struct net_device * dev,__be32 addr,u32 tb_id) __inet_dev_addr_type() argument 258 inet_addr_type_table(struct net * net,__be32 addr,u32 tb_id) inet_addr_type_table() argument 264 inet_addr_type(struct net * net,__be32 addr) inet_addr_type() argument 270 inet_dev_addr_type(struct net * net,const struct net_device * dev,__be32 addr) inet_dev_addr_type() argument 282 inet_addr_type_dev_table(struct net * net,const struct net_device * dev,__be32 addr) inet_addr_type_dev_table() argument 298 struct net *net; fib_compute_spec_dst() local 369 struct net *net = dev_net(dev); __fib_validate_source() local 454 struct net *net = dev_net(dev); fib_validate_source() local 500 rtentry_to_fib_config(struct net * net,int cmd,struct rtentry * rt,struct fib_config * cfg) rtentry_to_fib_config() argument 646 ip_rt_ioctl(struct net * net,unsigned int cmd,struct rtentry * rt) ip_rt_ioctl() argument 754 rtm_to_fib_config(struct net * net,struct sk_buff * skb,struct nlmsghdr * nlh,struct fib_config * cfg,struct netlink_ext_ack * extack) rtm_to_fib_config() argument 899 struct net *net = sock_net(skb->sk); inet_rtm_delroute() local 933 struct net *net = sock_net(skb->sk); inet_rtm_newroute() local 960 ip_valid_fib_dump_req(struct net * net,const struct nlmsghdr * nlh,struct fib_dump_filter * filter,struct netlink_callback * cb) ip_valid_fib_dump_req() argument 1036 struct net *net = sock_net(skb->sk); inet_dump_fib() local 1115 struct net *net = dev_net(ifa->ifa_dev->dev); fib_magic() local 1382 nl_fib_lookup(struct net * net,struct fib_result_nl * frn) nl_fib_lookup() argument 1419 struct net *net; nl_fib_input() local 1445 nl_fib_lookup_init(struct net * net) nl_fib_lookup_init() argument 1459 nl_fib_lookup_exit(struct net * net) nl_fib_lookup_exit() argument 1479 struct net *net = dev_net(dev); fib_inetaddr_event() local 1512 struct net *net = dev_net(dev); fib_netdev_event() local 1573 ip_fib_net_init(struct net * net) ip_fib_net_init() argument 1613 ip_fib_net_exit(struct net * net) ip_fib_net_exit() argument 1640 fib_net_init(struct net * net) fib_net_init() argument 1682 fib_net_pre_exit(struct net * net) fib_net_pre_exit() argument 1688 fib_net_exit_rtnl(struct net * net,struct list_head * dev_kill_list) fib_net_exit_rtnl() argument 1694 fib_net_exit(struct net * net) fib_net_exit() argument [all...] |
| /linux/net/can/ |
| H A D | proc.c | 79 static void can_init_stats(struct net *net) in can_init_stats() argument 81 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_init_stats() 82 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_init_stats() 117 struct net *net = timer_container_of(net, t, can.stattimer); in can_stat_update() local 118 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_stat_update() 130 can_init_stats(net); in can_stat_update() 134 can_init_stats(net); in can_stat_update() 138 can_init_stats(net); in can_stat_update() 142 can_init_stats(net); in can_stat_update() 146 can_init_stats(net); in can_stat_update() [all …]
|
| /linux/include/net/netfilter/ |
| H A D | nf_synproxy.h | 7 #include <net/ip6_checksum.h> 8 #include <net/ip6_route.h> 9 #include <net/tcp.h> 11 #include <net/netfilter/nf_conntrack_seqadj.h> 12 #include <net/netfilter/nf_conntrack_synproxy.h> 30 static inline struct synproxy_net *synproxy_pernet(struct net *net) in synproxy_pernet() argument 32 return net_generic(net, synproxy_net_id); in synproxy_pernet() 52 void synproxy_send_client_synack(struct net *net, const struct sk_buff *skb, 56 bool synproxy_recv_client_ack(struct net *net, 65 int nf_synproxy_ipv4_init(struct synproxy_net *snet, struct net *net); [all …]
|
| /linux/drivers/net/usb/ |
| H A D | smsc75xx.c | 90 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in __smsc75xx_read_reg() 122 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc75xx_write_reg() 164 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc75xx_phy_wait_not_busy() 187 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); in __smsc75xx_mdio_read() 199 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_read() 205 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc75xx_mdio_read() 211 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc75xx_mdio_read() 234 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); in __smsc75xx_mdio_write() 241 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc75xx_mdio_write() 253 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_write() [all …]
|
| /linux/net/xfrm/ |
| H A D | xfrm_sysctl.c | 4 #include <net/net_namespace.h> 5 #include <net/xfrm.h> 7 static void __net_init __xfrm_sysctl_init(struct net *net) in __xfrm_sysctl_init() argument 9 net->xfrm.sysctl_aevent_etime = XFRM_AE_ETIME; in __xfrm_sysctl_init() 10 net->xfrm.sysctl_aevent_rseqth = XFRM_AE_SEQT_SIZE; in __xfrm_sysctl_init() 11 net->xfrm.sysctl_larval_drop = 1; in __xfrm_sysctl_init() 12 net->xfrm.sysctl_acq_expires = 30; in __xfrm_sysctl_init() 43 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument 48 __xfrm_sysctl_init(net); in xfrm_sysctl_init() 53 table[0].data = &net->xfrm.sysctl_aevent_etime; in xfrm_sysctl_init() [all …]
|
| H A D | xfrm_policy.c | 33 #include <net/dst.h> 34 #include <net/flow.h> 35 #include <net/inet_ecn.h> 36 #include <net/xfrm.h> 37 #include <net/ip.h> 38 #include <net/gre.h> 40 #include <net/mip6.h> 43 #include <net/snmp.h> 46 #include <net/espintcp.h> 48 #include <net/inet_dsc 121 possible_net_t net; global() member 301 struct net *net = xs_net(x); xfrm_dst_lookup() local 431 xfrm_policy_alloc(struct net * net,gfp_t gfp) xfrm_policy_alloc() argument 482 struct net *net = xp_net(policy); xfrm_policy_kill() local 512 idx_hash(struct net * net,u32 index) idx_hash() argument 518 __get_hash_thresh(struct net * net,unsigned short family,int dir,u8 * dbits,u8 * sbits) __get_hash_thresh() argument 539 policy_hash_bysel(struct net * net,const struct xfrm_selector * sel,unsigned short family,int dir) policy_hash_bysel() argument 558 policy_hash_direct(struct net * net,const xfrm_address_t * daddr,const xfrm_address_t * saddr,unsigned short family,int dir) policy_hash_direct() argument 575 xfrm_dst_hash_transfer(struct net * net,struct hlist_head * list,struct hlist_head * ndsttable,unsigned int nhashmask,int dir) xfrm_dst_hash_transfer() argument 632 xfrm_bydst_resize(struct net * net,int dir) xfrm_bydst_resize() argument 664 xfrm_byidx_resize(struct net * net) xfrm_byidx_resize() argument 689 xfrm_bydst_should_resize(struct net * net,int dir,int * total) xfrm_bydst_should_resize() argument 704 xfrm_byidx_should_resize(struct net * net,int total) xfrm_byidx_should_resize() argument 715 xfrm_spd_getinfo(struct net * net,struct xfrmk_spdinfo * si) xfrm_spd_getinfo() argument 731 struct net *net = container_of(work, struct net, xfrm.policy_hash_work); xfrm_hash_resize() local 761 struct net *net = xp_net(pol); xfrm_policy_inexact_alloc_bin() local 895 xfrm_policy_inexact_list_reinsert(struct net * net,struct xfrm_pol_inexact_node * n,u16 family) xfrm_policy_inexact_list_reinsert() argument 958 xfrm_policy_inexact_node_reinsert(struct net * net,struct xfrm_pol_inexact_node * n,struct rb_root * new,u16 family) xfrm_policy_inexact_node_reinsert() argument 1016 xfrm_policy_inexact_node_merge(struct net * net,struct xfrm_pol_inexact_node * v,struct xfrm_pol_inexact_node * n,u16 family) xfrm_policy_inexact_node_merge() argument 1045 xfrm_policy_inexact_insert_node(struct net * net,struct rb_root * root,xfrm_address_t * addr,u16 family,u8 prefixlen,u8 dir) xfrm_policy_inexact_insert_node() argument 1162 __xfrm_policy_inexact_flush(struct net * net) __xfrm_policy_inexact_flush() argument 1177 struct net *net; xfrm_policy_inexact_alloc_chain() local 1238 struct net *net; xfrm_policy_inexact_insert() local 1278 struct net *net = container_of(work, struct net, xfrm_hash_rebuild() local 1399 xfrm_policy_hash_rebuild(struct net * net) xfrm_policy_hash_rebuild() argument 1407 xfrm_gen_index(struct net * net,int dir,u32 index) xfrm_gen_index() argument 1574 struct net *net = xp_net(policy); xfrm_policy_insert() local 1645 xfrm_policy_bysel_ctx(struct net * net,const struct xfrm_mark * mark,u32 if_id,u8 type,int dir,struct xfrm_selector * sel,struct xfrm_sec_ctx * ctx,int delete,int * err) xfrm_policy_bysel_ctx() argument 1715 xfrm_policy_byid(struct net * net,const struct xfrm_mark * mark,u32 if_id,u8 type,int dir,u32 id,int delete,int * err) xfrm_policy_byid() argument 1756 xfrm_policy_flush_secctx_check(struct net * net,u8 type,bool task_valid) xfrm_policy_flush_secctx_check() argument 1776 xfrm_dev_policy_flush_secctx_check(struct net * net,struct net_device * dev,bool task_valid) xfrm_dev_policy_flush_secctx_check() argument 1799 xfrm_policy_flush_secctx_check(struct net * net,u8 type,bool task_valid) xfrm_policy_flush_secctx_check() argument 1804 xfrm_dev_policy_flush_secctx_check(struct net * net,struct net_device * dev,bool task_valid) xfrm_dev_policy_flush_secctx_check() argument 1812 xfrm_policy_flush(struct net * net,u8 type,bool task_valid) xfrm_policy_flush() argument 1851 xfrm_dev_policy_flush(struct net * net,struct net_device * dev,bool task_valid) xfrm_dev_policy_flush() argument 1891 xfrm_policy_walk(struct net * net,struct xfrm_policy_walk * walk,int (* func)(struct xfrm_policy *,int,int,void *),void * data) xfrm_policy_walk() argument 1948 xfrm_policy_walk_done(struct xfrm_policy_walk * walk,struct net * net) xfrm_policy_walk_done() argument 2056 xfrm_policy_inexact_lookup_rcu(struct net * net,u8 type,u16 family,u8 dir,u32 if_id) xfrm_policy_inexact_lookup_rcu() argument 2073 xfrm_policy_inexact_lookup(struct net * net,u8 type,u16 family,u8 dir,u32 if_id) xfrm_policy_inexact_lookup() argument 2150 xfrm_policy_lookup_bytype(struct net * net,u8 type,const struct flowi * fl,u16 family,u8 dir,u32 if_id) xfrm_policy_lookup_bytype() argument 2218 xfrm_policy_lookup(struct net * net,const struct flowi * fl,u16 family,u8 dir,u32 if_id) xfrm_policy_lookup() argument 2277 xfrm_gen_pos_slow(struct net * net) xfrm_gen_pos_slow() argument 2291 xfrm_gen_pos(struct net * net) xfrm_gen_pos() argument 2313 struct net *net = xp_net(pol); __xfrm_policy_link() local 2331 struct net *net = xp_net(pol); __xfrm_policy_unlink() local 2360 struct net *net = xp_net(pol); xfrm_policy_delete() local 2375 struct net *net = sock_net(sk); xfrm_sk_policy_insert() local 2412 struct net *net = xp_net(old); clone_policy() local 2483 struct net *net = xp_net(policy); xfrm_tmpl_resolve_one() local 2596 xfrm_alloc_dst(struct net * net,int family) xfrm_alloc_dst() argument 2669 struct net *net = xp_net(policy); xfrm_bundle_create() local 2863 struct net *net = xp_net(pols[0]); xfrm_resolve_and_create_bundle() local 2902 struct net *net = xp_net(pol); xfrm_policy_queue_process() local 2983 xdst_queue_output(struct net * net,struct sock * sk,struct sk_buff * skb) xdst_queue_output() argument 3025 xfrm_create_dummy_bundle(struct net * net,struct xfrm_flo * xflo,const struct flowi * fl,int num_xfrms,u16 family) xfrm_create_dummy_bundle() argument 3088 xfrm_bundle_lookup(struct net * net,const struct flowi * fl,u16 family,u8 dir,struct xfrm_flo * xflo,u32 if_id) xfrm_bundle_lookup() argument 3151 make_blackhole(struct net * net,u16 family,struct dst_entry * dst_orig) make_blackhole() argument 3176 xfrm_lookup_with_ifid(struct net * net,struct dst_entry * dst_orig,const struct flowi * fl,const struct sock * sk,int flags,u32 if_id) xfrm_lookup_with_ifid() argument 3336 xfrm_lookup(struct net * net,struct dst_entry * dst_orig,const struct flowi * fl,const struct sock * sk,int flags) xfrm_lookup() argument 3347 xfrm_lookup_route(struct net * net,struct dst_entry * dst_orig,const struct flowi * fl,const struct sock * sk,int flags) xfrm_lookup_route() argument 3506 __xfrm_decode_session(struct net * net,struct sk_buff * skb,struct flowi * fl,unsigned int family,int reverse) __xfrm_decode_session() argument 3637 struct net *net = dev_net(skb->dev); xfrm_in_fwd_icmp() local 3655 struct net *net = dev_net(skb->dev); xfrm_out_fwd_icmp() local 3683 struct net *net = dev_net(skb->dev); __xfrm_policy_check() local 3884 struct net *net = dev_net(skb->dev); __xfrm_route_forward() local 4194 xfrm_statistics_init(struct net * net) xfrm_statistics_init() argument 4206 xfrm_statistics_fini(struct net * net) xfrm_statistics_fini() argument 4212 xfrm_statistics_init(struct net * net) xfrm_statistics_init() argument 4217 xfrm_statistics_fini(struct net * net) xfrm_statistics_fini() argument 4222 xfrm_policy_init(struct net * net) xfrm_policy_init() argument 4283 xfrm_net_pre_exit(struct net * net) xfrm_net_pre_exit() argument 4293 xfrm_policy_fini(struct net * net) xfrm_policy_fini() argument 4320 xfrm_net_init(struct net * net) xfrm_net_init() argument 4364 xfrm_net_exit(struct net * net) xfrm_net_exit() argument 4499 xfrm_migrate_policy_find(const struct xfrm_selector * sel,u8 dir,u8 type,struct net * net,u32 if_id) xfrm_migrate_policy_find() argument 4668 xfrm_migrate(const struct xfrm_selector * sel,u8 dir,u8 type,struct xfrm_migrate * m,int num_migrate,struct xfrm_kmaddress * k,struct net * net,struct xfrm_encap_tmpl * encap,u32 if_id,struct netlink_ext_ack * extack,struct xfrm_user_offload * xuo) xfrm_migrate() argument [all...] |
| /linux/net/netfilter/ |
| H A D | nf_log.c | 9 #include <net/protocol.h> 10 #include <net/netfilter/nf_log.h> 45 int nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger) in nf_log_set() argument 49 if (pf == NFPROTO_UNSPEC || pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_set() 53 log = nft_log_dereference(net->nf.nf_loggers[pf]); in nf_log_set() 55 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_set() 63 void nf_log_unset(struct net *net, const struct nf_logger *logger) in nf_log_unset() argument 70 log = nft_log_dereference(net in nf_log_unset() 154 nf_log_bind_pf(struct net * net,u_int8_t pf,const struct nf_logger * logger) nf_log_bind_pf() argument 170 nf_log_unbind_pf(struct net * net,u_int8_t pf) nf_log_unbind_pf() argument 237 nf_log_packet(struct net * net,u_int8_t pf,unsigned int hooknum,const struct sk_buff * skb,const struct net_device * in,const struct net_device * out,const struct nf_loginfo * loginfo,const char * fmt,...) nf_log_packet() argument 266 nf_log_trace(struct net * net,u_int8_t pf,unsigned int hooknum,const struct sk_buff * skb,const struct net_device * in,const struct net_device * out,const struct nf_loginfo * loginfo,const char * fmt,...) nf_log_trace() argument 350 struct net *net = seq_file_net(seq); seq_start() local 362 struct net *net = seq_file_net(s); seq_next() local 382 struct net *net = seq_file_net(s); seq_show() local 444 struct net *net = table->extra2; nf_log_proc_dostring() local 487 netfilter_log_sysctl_init(struct net * net) netfilter_log_sysctl_init() argument 540 netfilter_log_sysctl_exit(struct net * net) netfilter_log_sysctl_exit() argument 552 netfilter_log_sysctl_init(struct net * net) netfilter_log_sysctl_init() argument 557 netfilter_log_sysctl_exit(struct net * net) netfilter_log_sysctl_exit() argument 562 nf_log_net_init(struct net * net) nf_log_net_init() argument 584 nf_log_net_exit(struct net * net) nf_log_net_exit() argument [all...] |
| /linux/net/ipv6/ |
| H A D | sysctl_net_ipv6.c | 3 * sysctl_net_ipv6.c: sysctl interface to net IPV6 subsystem. 15 #include <net/ndisc.h> 16 #include <net/ipv6.h> 17 #include <net/addrconf.h> 18 #include <net/inet_frag.h> 19 #include <net/netevent.h> 20 #include <net/ip_fib.h> 22 #include <net/calipso.h> 36 struct net *net; in proc_rt6_multipath_hash_policy() local 39 net = container_of(table->data, struct net, in proc_rt6_multipath_hash_policy() [all …]
|
| /linux/drivers/net/wireless/ |
| H A D | Kconfig | 9 depends on NET 21 source "drivers/net/wireless/admtek/Kconfig" 22 source "drivers/net/wireless/ath/Kconfig" 23 source "drivers/net/wireless/atmel/Kconfig" 24 source "drivers/net/wireless/broadcom/Kconfig" 25 source "drivers/net/wireless/intel/Kconfig" 26 source "drivers/net/wireless/intersil/Kconfig" 27 source "drivers/net/wireless/marvell/Kconfig" 28 source "drivers/net/wireless/mediatek/Kconfig" 29 source "drivers/net/wireless/microchip/Kconfig" [all …]
|