| /linux/include/net/ |
| A D | net_namespace.h | 253 void __put_net(struct net *net); 256 static inline struct net *get_net(struct net *net) in get_net() argument 262 static inline struct net *maybe_get_net(struct net *net) in maybe_get_net() argument 296 static inline struct net *get_net(struct net *net) in get_net() argument 305 static inline struct net *maybe_get_net(struct net *net) in maybe_get_net() argument 353 static inline struct net *get_net_track(struct net *net, in get_net_track() argument 369 struct net __rcu *net; member 419 int peernet2id(const struct net *net, struct net *peer); 420 bool peernet_has_id(const struct net *net, struct net *peer); 421 struct net *get_net_ns_by_id(const struct net *net, int id); [all …]
|
| A D | ip6_fib.h | 106 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() argument 111 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() argument 464 void fib6_clean_all_skip_notify(struct net *net, 488 int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh, 494 int call_fib6_entry_notifiers(struct net *net, 498 int call_fib6_multipath_entry_notifiers(struct net *net, 563 int __net_init fib6_notifier_init(struct net *net); 564 void __net_exit fib6_notifier_exit(struct net *net); 566 unsigned int fib6_tables_seq_read(struct net *net); 610 struct net *net, in pol_lookup_func() argument [all …]
|
| A D | ip_fib.h | 248 int __net_init fib4_notifier_init(struct net *net); 249 void __net_exit fib4_notifier_exit(struct net *net); 363 int __net_init fib4_rules_init(struct net *net); 364 void __net_exit fib4_rules_exit(struct net *net); 414 unsigned int fib4_rules_seq_read(struct net *net); 465 int fib_unmerge(struct net *net); 608 void fib_flush(struct net *net); 623 int __net_init fib_proc_init(struct net *net); 624 void __net_exit fib_proc_exit(struct net *net); 626 static inline int fib_proc_init(struct net *net) in fib_proc_init() argument [all …]
|
| A D | l3mdev.h | 21 typedef int (*lookup_by_table_id_t)(struct net *net, u32 table_d); 59 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, 62 void l3mdev_update_flow(struct net *net, struct flowi *fl); 119 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex); 121 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() argument 131 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex); 143 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() argument 243 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() argument 262 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index() argument 323 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, in l3mdev_fib_rule_match() argument [all …]
|
| /linux/net/tipc/ |
| A D | bcast.h | 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, 88 int tipc_bcast_get_mtu(struct net *net); 89 void tipc_bcast_toggle_rcast(struct net *net, bool supp); 96 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l, 98 int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l, 106 u32 tipc_bcast_get_mode(struct net *net); 107 u32 tipc_bcast_get_broadcast_ratio(struct net *net); 112 static inline void tipc_bcast_lock(struct net *net) in tipc_bcast_lock() argument [all …]
|
| A D | bcast.c | 77 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base() argument 86 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu() argument 91 void tipc_bcast_toggle_rcast(struct net *net, bool supp) in tipc_bcast_toggle_rcast() argument 96 static void tipc_bcbase_calc_bc_threshold(struct net *net) in tipc_bcbase_calc_bc_threshold() argument 107 static void tipc_bcbase_select_primary(struct net *net) in tipc_bcbase_select_primary() argument 470 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_ack_rcv() argument 498 int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_sync_rcv() argument 689 int tipc_bcast_init(struct net *net) in tipc_bcast_init() argument 722 void tipc_bcast_stop(struct net *net) in tipc_bcast_stop() argument 761 u32 tipc_bcast_get_mode(struct net *net) in tipc_bcast_get_mode() argument [all …]
|
| A D | node.h | 77 void tipc_node_stop(struct net *net); 78 bool tipc_node_get_id(struct net *net, u32 addr, u8 *id); 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); 99 int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 node, 103 int tipc_node_distr_xmit(struct net *net, struct sk_buff_head *list); 104 int tipc_node_xmit_skb(struct net *net, struct sk_buff *skb, u32 dest, 110 void tipc_node_remove_conn(struct net *net, u32 dnode, u32 port); 112 bool tipc_node_is_up(struct net *net, u32 addr); [all …]
|
| A D | monitor.h | 60 int tipc_mon_create(struct net *net, int bearer_id); 61 void tipc_mon_delete(struct net *net, int bearer_id); 63 void tipc_mon_peer_up(struct net *net, u32 addr, int bearer_id); 64 void tipc_mon_peer_down(struct net *net, u32 addr, int bearer_id); 65 void tipc_mon_prep(struct net *net, void *data, int *dlen, 67 void tipc_mon_rcv(struct net *net, void *data, u16 dlen, u32 addr, 69 void tipc_mon_get_state(struct net *net, u32 addr, 72 void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id); 75 int tipc_nl_monitor_get_threshold(struct net *net); 76 int __tipc_nl_add_monitor(struct net *net, struct tipc_nl_msg *msg, [all …]
|
| A D | bearer.h | 105 int (*send_msg)(struct net *net, struct sk_buff *buf, 108 int (*enable_media)(struct net *net, struct tipc_bearer *b, 233 void tipc_bearer_stop(struct net *net); 234 int tipc_bearer_mtu(struct net *net, u32 bearer_id); 235 int tipc_bearer_min_mtu(struct net *net, u32 bearer_id); 237 void tipc_bearer_xmit_skb(struct net *net, u32 bearer_id, 240 void tipc_bearer_xmit(struct net *net, u32 bearer_id, 244 void tipc_bearer_bc_xmit(struct net *net, u32 bearer_id, 247 int tipc_attach_loopback(struct net *net); 248 void tipc_detach_loopback(struct net *net); [all …]
|
| /linux/drivers/net/thunderbolt/ |
| A D | main.c | 377 stop_login(net); in tbnet_tear_down() 381 if (net->login_sent && net->login_received) { in tbnet_tear_down() 632 connected = net->login_sent && net->login_received; in tbnet_connected_work() 701 ret = tbnet_login_request(net, net->login_retries % 4); in tbnet_login_work() 765 if (net->skb && net->rx_hdr.frame_count) { in tbnet_check_frame() 856 skb = net->skb; in tbnet_poll() 1252 net->stats.rx_over_errors + net->stats.rx_crc_errors + in tbnet_get_stats64() 1307 net->svc = svc; in tbnet_probe() 1308 net->dev = dev; in tbnet_probe() 1309 net->xd = xd; in tbnet_probe() [all …]
|
| /linux/net/core/ |
| A D | net_namespace.c | 159 struct net *net; in ops_pre_exit_list() local 170 struct net *net; in ops_exit_list() local 184 struct net *net; in ops_free_list() local 414 struct net *net = NULL; in net_alloc() local 460 struct net *net = (struct net *)p; in net_drop_ns() local 470 struct net *net; in copy_net_ns() local 686 struct net *net; in get_net_ns() local 718 struct net *net; in get_net_ns_by_pid() local 1034 struct net *net; in rtnl_valid_dump_net_req() local 1229 struct net *net; in __register_pernet_operations() local [all …]
|
| A D | fib_notifier.c | 29 int call_fib_notifiers(struct net *net, enum fib_event_type event_type, in call_fib_notifiers() argument 40 static unsigned int fib_seq_sum(struct net *net) in fib_seq_sum() argument 60 static int fib_net_dump(struct net *net, struct notifier_block *nb, in fib_net_dump() argument 83 static bool fib_dump_is_consistent(struct net *net, struct notifier_block *nb, in fib_dump_is_consistent() argument 90 if (fib_seq == fib_seq_sum(net)) in fib_dump_is_consistent() 99 int register_fib_notifier(struct net *net, struct notifier_block *nb, in register_fib_notifier() argument 121 int unregister_fib_notifier(struct net *net, struct notifier_block *nb) in unregister_fib_notifier() argument 130 struct net *net) in __fib_notifier_ops_register() argument 143 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net) in fib_notifier_ops_register() argument 171 static int __net_init fib_notifier_net_init(struct net *net) in fib_notifier_net_init() argument [all …]
|
| /linux/fs/afs/ |
| A D | main.c | 71 net->net = net_ns; in afs_net_init() 72 net->live = true; in afs_net_init() 78 net->cells = RB_ROOT; in afs_net_init() 130 net->live = false; in afs_net_init() 132 afs_cell_purge(net); in afs_net_init() 135 net->live = false; in afs_net_init() 136 afs_proc_cleanup(net); in afs_net_init() 140 net->live = false; in afs_net_init() 151 net->live = false; in afs_net_exit() 153 afs_cell_purge(net); in afs_net_exit() [all …]
|
| A D | server.c | 84 p = net->fs_servers.rb_node; in afs_find_server_by_uuid() 119 struct afs_net *net = cell->net; in afs_install_server() local 125 write_seqlock(&net->fs_lock); in afs_install_server() 128 pp = &net->fs_servers.rb_node; in afs_install_server() 187 write_sequnlock(&net->fs_lock); in afs_install_server() 200 struct afs_net *net = cell->net; in afs_alloc_server() local 322 if (net->live) { in afs_set_server_timer() 484 write_seqlock(&net->fs_lock); in afs_gc_servers() 500 &net->fs_servers); in afs_gc_servers() 535 bool purging = !net->live; in afs_manage_servers() [all …]
|
| /linux/kernel/bpf/ |
| A D | net_namespace.c | 22 struct net *net; member 108 struct net *net; in bpf_netns_link_release() local 117 net = net_link->net; in bpf_netns_link_release() 172 struct net *net; in bpf_netns_link_update_prog() local 182 net = net_link->net; in bpf_netns_link_update_prog() 210 struct net *net; in bpf_netns_link_fill_info() local 213 net = net_link->net; in bpf_netns_link_fill_info() 248 struct net *net, in __netns_bpf_prog_query() argument 275 struct net *net; in netns_bpf_prog_query() local 302 struct net *net; in netns_bpf_prog_attach() local [all …]
|
| /linux/net/can/ |
| A D | proc.c | 79 static void can_init_stats(struct net *net) in can_init_stats() argument 117 struct net *net = from_timer(net, t, can.stattimer); in can_stat_update() local 123 can_init_stats(net); in can_stat_update() 212 struct net *net = m->private; in can_stats_proc_show() local 274 struct net *net = m->private; in can_reset_stats_proc_show() local 311 struct net *net = m->private; in can_rcvlist_proc_show() local 365 struct net *net = m->private; in can_rcvlist_sff_proc_show() local 398 struct net *net = m->private; in can_rcvlist_eff_proc_show() local 430 void can_init_proc(struct net *net) in can_init_proc() argument 433 net->can.proc_dir = proc_net_mkdir(net, "can", net->proc_net); in can_init_proc() [all …]
|
| /linux/drivers/net/ethernet/ |
| A D | Kconfig | 18 source "drivers/net/ethernet/3com/Kconfig" 19 source "drivers/net/ethernet/actions/Kconfig" 20 source "drivers/net/ethernet/adaptec/Kconfig" 22 source "drivers/net/ethernet/agere/Kconfig" 25 source "drivers/net/ethernet/alteon/Kconfig" 26 source "drivers/net/ethernet/altera/Kconfig" 28 source "drivers/net/ethernet/amd/Kconfig" 29 source "drivers/net/ethernet/apm/Kconfig" 30 source "drivers/net/ethernet/apple/Kconfig" 32 source "drivers/net/ethernet/arc/Kconfig" [all …]
|
| /linux/include/net/netfilter/ |
| A D | nf_conntrack_l4proto.h | 51 struct net *net, void *data); 66 struct net *net, 71 struct net *net, 136 void nf_conntrack_generic_init_net(struct net *net); 137 void nf_conntrack_tcp_init_net(struct net *net); 138 void nf_conntrack_udp_init_net(struct net *net); 139 void nf_conntrack_gre_init_net(struct net *net); 140 void nf_conntrack_dccp_init_net(struct net *net); 141 void nf_conntrack_sctp_init_net(struct net *net); 142 void nf_conntrack_icmp_init_net(struct net *net); [all …]
|
| A D | nf_synproxy.h | 30 static inline struct synproxy_net *synproxy_pernet(struct net *net) in synproxy_pernet() argument 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); 66 void nf_synproxy_ipv4_fini(struct synproxy_net *snet, struct net *net); 69 void synproxy_send_client_synack_ipv6(struct net *net, 74 bool synproxy_recv_client_ack_ipv6(struct net *net, const struct sk_buff *skb, 80 int nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net); 81 void nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net); 84 nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net) { return 0; } in nf_synproxy_ipv6_init() argument [all …]
|
| /linux/fs/proc/ |
| A D | proc_net.c | 43 struct net *net; in seq_open_net() local 51 if (!net) in seq_open_net() 56 put_net(net); in seq_open_net() 60 p->net = net; in seq_open_net() 180 struct net *net; in single_open_net() local 184 if (!net) in single_open_net() 272 struct net *net = NULL; in get_proc_task_net() local 285 return net; in get_proc_task_net() 292 struct net *net; in proc_tgid_net_lookup() local 308 struct net *net; in proc_tgid_net_getattr() local [all …]
|
| /linux/net/xfrm/ |
| A D | xfrm_sysctl.c | 7 static void __net_init __xfrm_sysctl_init(struct net *net) in __xfrm_sysctl_init() argument 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() 59 if (net->user_ns != &init_user_ns) in xfrm_sysctl_init() 62 net->xfrm.sysctl_hdr = register_net_sysctl_sz(net, "net/core", table, in xfrm_sysctl_init() 64 if (!net->xfrm.sysctl_hdr) in xfrm_sysctl_init() 74 void __net_exit xfrm_sysctl_fini(struct net *net) in xfrm_sysctl_fini() argument 83 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument [all …]
|
| /linux/drivers/net/usb/ |
| A D | smsc75xx.c | 780 eth_hw_addr_random(dev->net); in smsc75xx_init_mac_address() 786 u32 addr_lo = dev->net->dev_addr[0] | dev->net->dev_addr[1] << 8 | in smsc75xx_set_mac_address() 787 dev->net->dev_addr[2] << 16 | dev->net->dev_addr[3] << 24; in smsc75xx_set_mac_address() 788 u32 addr_hi = dev->net->dev_addr[4] | dev->net->dev_addr[5] << 8; in smsc75xx_set_mac_address() 821 dev->mii.dev = dev->net; in smsc75xx_phy_initialize() 1126 dev->net->dev_addr); in smsc75xx_reset() 1180 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset() 1195 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset() 1318 smsc75xx_set_features(dev->net, dev->net->features); in smsc75xx_reset() 1500 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc75xx_bind() [all …]
|
| /linux/include/linux/ |
| A D | netfilter_ipv6.h | 43 int (*chk_addr)(struct net *net, const struct in6_addr *addr, 45 int (*route_me_harder)(struct net *net, struct sock *sk, struct sk_buff *skb); 46 int (*dev_get_saddr)(struct net *net, const struct net_device *dev, 49 int (*route)(struct net *net, struct dst_entry **dst, struct flowi *fl, 57 int (*fragment)(struct net *net, struct sock *sk, struct sk_buff *skb, 61 int (*br_fragment)(struct net *net, struct sock *sk, 79 static inline int nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr, in nf_ipv6_chk_addr() argument 96 int __nf_ip6_route(struct net *net, struct dst_entry **dst, 99 static inline int nf_ip6_route(struct net *net, struct dst_entry **dst, in nf_ip6_route() argument 119 int br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, [all …]
|
| /linux/tools/testing/selftests/net/packetdrill/ |
| A D | defaults.sh | 14 sysctl -q net.ipv4.tcp_timestamps=1 17 sysctl -q net.ipv4.tcp_syn_retries=5 18 sysctl -q net.ipv4.tcp_synack_retries=5 21 sysctl -q net.ipv4.tcp_frto=2 24 sysctl -q net.ipv4.tcp_sack=1 27 sysctl -q net.ipv4.tcp_dsack=1 30 sysctl -q net.ipv4.tcp_fack=0 33 sysctl -q net.ipv4.tcp_reordering=3 42 sysctl -q net.ipv4.tcp_early_retrans=4 net.ipv4.tcp_recovery=1 48 sysctl -q net.ipv4.tcp_ecn=0 [all …]
|
| /linux/tools/testing/selftests/net/ |
| A D | big_tcp.sh | 34 ip -net $CLIENT_NS link set link0 up 40 ip -net $CLIENT_NS link set dev link0 \ 44 ip net exec $CLIENT_NS sysctl -wq net.ipv4.tcp_window_scaling=10 46 ip -net $ROUTER_NS link set link1 up 47 ip -net $ROUTER_NS link set link2 up 66 ip net exec $ROUTER_NS sysctl -wq net.ipv4.ip_forward=1 67 ip net exec $ROUTER_NS sysctl -wq net.ipv6.conf.all.forwarding=1 69 ip -net $SERVER_NS link set link3 up 78 ip net exec $SERVER_NS sysctl -wq net.ipv4.tcp_window_scaling=10 84 ip -net $ROUTER_NS link del link1 [all …]
|