/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/netns/sctp.h> [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); 297 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 408 fib4_has_custom_rules(const struct net * net) fib4_has_custom_rules() argument 418 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 470 fib_num_tclassid_users(struct net * net) fib_num_tclassid_users() argument 475 fib_num_tclassid_users(struct net * net) fib_num_tclassid_users() argument 556 fib_multipath_hash_from_keys(const struct net * net,struct flow_keys * keys) fib_multipath_hash_from_keys() argument 568 fib_multipath_hash_from_keys(const struct net * net,struct flow_keys * keys) fib_multipath_hash_from_keys() argument 641 fib_proc_init(struct net * net) fib_proc_init() argument 645 fib_proc_exit(struct net * net) fib_proc_exit() 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> 81 struct dst_entry *ip6_route_input_lookup(struct net *net, 86 struct dst_entry *ip6_route_output_flags(struct net *net, cons 89 ip6_route_output(struct net * net,const struct sock * sk,struct flowi6 * fl6) ip6_route_output() argument 128 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 202 struct net *net; global() member [all...] |
H A D | l3mdev.h | 3 * include/net/l3mdev.h - L3 master device API 10 #include <net/dst.h> 11 #include <net/fib_rules.h> 21 typedef int (*lookup_by_table_id_t)(struct net *net, u32 table_d); 56 int l3mdev_ifindex_lookup_by_table_id(enum l3mdev_type l3type, struct net *net, 59 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, 76 void l3mdev_update_flow(struct net *net, struct flowi *fl); 90 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() argument 98 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_master_ifindex_by_index() 133 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex); [all …]
|
H A D | ipv6_stubs.h | 8 #include <net/dst.h> 9 #include <net/flow.h> 10 #include <net/neighbour.h> 11 #include <net/sock.h> 12 #include <net/ipv6.h> 14 /* structs from net/ip6_fib.h */ 28 struct dst_entry *(*ipv6_dst_lookup_flow)(struct net *net, 34 struct fib6_table *(*fib6_get_table)(struct net *net, u32 id); 35 int (*fib6_lookup)(struct net *net, int oif, struct flowi6 *fl6, 37 int (*fib6_table_lookup)(struct net *net, struct fib6_table *table, [all …]
|
/linux/drivers/net/thunderbolt/ |
H A D | main.c | 24 #include <net/ip6_checksum.h> 240 static int tbnet_login_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_login_response() argument 244 struct tb_xdomain *xd = net->xd; in tbnet_login_response() 250 memcpy(reply.receiver_mac, net->dev->dev_addr, ETH_ALEN); in tbnet_login_response() 257 static int tbnet_login_request(struct tbnet *net, u8 sequence) in tbnet_login_request() argument 261 struct tb_xdomain *xd = net->xd; in tbnet_login_request() 266 atomic_inc_return(&net->command_id)); in tbnet_login_request() 269 request.transmit_path = net->local_transmit_path; in tbnet_login_request() 277 static int tbnet_logout_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_logout_response() argument 281 struct tb_xdomain *xd = net->xd; in tbnet_logout_response() [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->gen, in net_assign_generic() 103 * The net_generic explores the net->gen array inside rcu in net_assign_generic() [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 …]
|
H A D | netfilter_ipv6.h | 11 #include <net/tcp.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, 58 int (*output)(struct net *, struct sock *, struct sk_buff *)); 61 int (*br_fragment)(struct net *net, struct sock *sk, 64 int (*output)(struct net *, struct sock *sk, 71 #include <net/addrconf.h> [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/net/ |
H A D | Kconfig | 6 menuconfig NET config 20 contained in the package net-tools, the location and version number 24 recommended to read the NET-HOWTO, available from 27 if NET 84 source "net/packet/Kconfig" 85 source "net/psp/Kconfig" 86 source "net/unix/Kconfig" 87 source "net/tls/Kconfig" 88 source "net/xfrm/Kconfig" 89 source "net/iuc [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 52 fib4_rules_init(struct net * net) fib4_rules_init() argument 76 fib_new_table(struct net * net,u32 id) fib_new_table() argument 112 fib_get_table(struct net * net,u32 id) fib_get_table() argument 132 fib_replace_table(struct net * net,struct fib_table * old,struct fib_table * new) fib_replace_table() argument 152 fib_unmerge(struct net * net) fib_unmerge() argument 184 fib_flush(struct net * net) fib_flush() argument 206 __inet_dev_addr_type(struct net * net,const struct net_device * dev,__be32 addr,u32 tb_id) __inet_dev_addr_type() argument 237 inet_addr_type_table(struct net * net,__be32 addr,u32 tb_id) inet_addr_type_table() argument 243 inet_addr_type(struct net * net,__be32 addr) inet_addr_type() argument 249 inet_dev_addr_type(struct net * net,const struct net_device * dev,__be32 addr) inet_dev_addr_type() argument 261 inet_addr_type_dev_table(struct net * net,const struct net_device * dev,__be32 addr) inet_addr_type_dev_table() argument 277 struct net *net; fib_compute_spec_dst() local 348 struct net *net = dev_net(dev); __fib_validate_source() local 433 struct net *net = dev_net(dev); fib_validate_source() local 479 rtentry_to_fib_config(struct net * net,int cmd,struct rtentry * rt,struct fib_config * cfg) rtentry_to_fib_config() argument 625 ip_rt_ioctl(struct net * net,unsigned int cmd,struct rtentry * rt) ip_rt_ioctl() argument 733 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 878 struct net *net = sock_net(skb->sk); inet_rtm_delroute() local 912 struct net *net = sock_net(skb->sk); inet_rtm_newroute() local 939 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 1025 struct net *net = sock_net(skb->sk); inet_dump_fib() local 1101 struct net *net = dev_net(ifa->ifa_dev->dev); fib_magic() local 1368 nl_fib_lookup(struct net * net,struct fib_result_nl * frn) nl_fib_lookup() argument 1405 struct net *net; nl_fib_input() local 1431 nl_fib_lookup_init(struct net * net) nl_fib_lookup_init() argument 1445 nl_fib_lookup_exit(struct net * net) nl_fib_lookup_exit() argument 1465 struct net *net = dev_net(dev); fib_inetaddr_event() local 1498 struct net *net = dev_net(dev); fib_netdev_event() local 1559 ip_fib_net_init(struct net * net) ip_fib_net_init() argument 1595 ip_fib_net_exit(struct net * net) ip_fib_net_exit() argument 1629 fib_net_init(struct net * net) fib_net_init() argument 1665 fib_net_exit(struct net * net) fib_net_exit() argument 1673 struct net *net; fib_net_exit_batch() local [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> 29 static inline struct net *PDE_NET(struct proc_dir_entry *pde) in PDE_NET() 34 static struct net *get_proc_net(const struct inode *inode) in get_proc_net() 43 struct net *net; in seq_open_net() local 50 net = get_proc_net(inode); in seq_open_net() 51 if (!net) in seq_open_net() 56 put_net(net); in seq_open_net() 60 p->net = net; in seq_open_net() [all …]
|
/linux/include/net/netfilter/ |
H A D | nf_conntrack_l4proto.h | 14 #include <net/netlink.h> 15 #include <net/netfilter/nf_conntrack.h> 16 #include <net/netns/generic.h> 51 struct net *net, void *data); 66 struct net *net, 71 struct net *net, 131 void nf_conntrack_generic_init_net(struct net *net); 132 void nf_conntrack_tcp_init_net(struct net *net); 133 void nf_conntrack_udp_init_net(struct net *net); 134 void nf_conntrack_gre_init_net(struct net *net); [all …]
|
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 | 91 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in __smsc75xx_read_reg() 123 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc75xx_write_reg() 165 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc75xx_phy_wait_not_busy() 188 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); in __smsc75xx_mdio_read() 200 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_read() 206 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc75xx_mdio_read() 212 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc75xx_mdio_read() 235 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); in __smsc75xx_mdio_write() 242 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc75xx_mdio_write() 254 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_write() [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/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 …]
|
/linux/tools/testing/selftests/net/netfilter/ |
H A D | nft_fib.sh | 17 log_netns=$(sysctl -n net.netfilter.nf_log_all_netns) 23 [ "$log_netns" -eq 0 ] && sysctl -q net.netfilter.nf_log_all_netns=$log_netns 37 sysctl -q net.netfilter.nf_log_all_netns=1 215 ip -net "$nsrouter" link set veth0 up 216 ip -net "$nsrouter" addr add 10.0.1.1/24 dev veth0 217 ip -net "$nsrouter" addr add dead:1::1/64 dev veth0 nodad 219 ip -net "$nsrouter" link set veth1 up 220 ip -net "$nsrouter" addr add 10.0.2.1/24 dev veth1 221 ip -net "$nsrouter" addr add dead:2::1/64 dev veth1 nodad 223 ip -net " [all...] |
/linux/net/ipv6/ |
H A D | ip6_fib.c | 21 #include <linux/net.h> 29 #include <net/ip.h> 30 #include <net/ipv6.h> 31 #include <net/ndisc.h> 32 #include <net/addrconf.h> 33 #include <net/lwtunnel.h> 34 #include <net/fib_notifier.h> 36 #include <net/ip_fib.h> 37 #include <net/ip6_fib.h> 38 #include <net/ip6_route.h> [all …]
|