/linux-master/net/ipv6/ |
H A D | xfrm6_tunnel.c | 8 * Based on net/ipv4/xfrm4_tunnel.c 14 #include <net/ip.h> 15 #include <net/xfrm.h> 16 #include <net/ipv6.h> 20 #include <net/netns/generic.h> 35 static inline struct xfrm6_tunnel_net *xfrm6_tunnel_pernet(struct net *net) argument 37 return net_generic(net, xfrm6_tunnel_net_id); 74 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, cons argument 89 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) argument 102 __xfrm6_tunnel_spi_check(struct net *net, u32 spi) argument 117 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) argument 163 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) argument 187 xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr) argument 224 struct net *net = dev_net(skb->dev); local 292 struct net *net = xs_net(x); local 318 xfrm6_tunnel_net_init(struct net *net) argument 332 xfrm6_tunnel_net_exit(struct net *net) argument [all...] |
H A D | output_core.c | 7 #include <net/ip.h> 8 #include <net/ipv6.h> 9 #include <net/ip6_fib.h> 10 #include <net/addrconf.h> 11 #include <net/secure_seq.h> 14 static u32 __ipv6_select_ident(struct net *net, argument 29 __be32 ipv6_proxy_select_ident(struct net *net, struct sk_buff *skb) argument 42 id = __ipv6_select_ident(net, 47 ipv6_select_ident(struct net *net, const struct in6_addr *daddr, const struct in6_addr *saddr) argument 124 __ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) argument 149 ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) argument [all...] |
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_rout 44 struct net *net; member in struct:fib6_cleaner 78 fib6_walker_link(struct net *net, struct fib6_walker *w) argument 85 fib6_walker_unlink(struct net *net, struct fib6_walker *w) argument 92 fib6_new_sernum(struct net *net) argument 107 fib6_update_sernum(struct net *net, struct fib6_info *f6i) argument 184 node_alloc(struct net *net) argument 195 node_free_immediate(struct net *net, struct fib6_node *fn) argument 208 node_free(struct net *net, struct fib6_node *fn) argument 220 fib6_link_table(struct net *net, struct fib6_table *tb) argument 240 fib6_alloc_table(struct net *net, u32 id) argument 257 fib6_new_table(struct net *net, u32 id) argument 275 fib6_get_table(struct net *net, u32 id) argument 298 fib6_tables_init(struct net *net) argument 305 fib6_new_table(struct net *net, u32 id) argument 310 fib6_get_table(struct net *net, u32 id) argument 315 fib6_rule_lookup(struct net *net, struct flowi6 *fl6, const struct sk_buff *skb, int flags, pol_lookup_t lookup) argument 334 fib6_lookup(struct net *net, int oif, struct flowi6 *fl6, struct fib6_result *res, int flags) argument 341 fib6_tables_init(struct net *net) argument 348 fib6_tables_seq_read(struct net *net) argument 393 call_fib6_entry_notifiers(struct net *net, enum fib_event_type event_type, struct fib6_info *rt, struct netlink_ext_ack *extack) argument 407 call_fib6_multipath_entry_notifiers(struct net *net, enum fib_event_type event_type, struct fib6_info *rt, unsigned int nsiblings, struct netlink_ext_ack *extack) argument 423 call_fib6_entry_notifiers_replace(struct net *net, struct fib6_info *rt) argument 435 struct net *net; member in struct:fib6_dump_arg 469 fib6_table_dump(struct net *net, struct fib6_table *tb, struct fib6_walker *w) argument 482 fib6_tables_dump(struct net *net, struct notifier_block *nb, struct netlink_ext_ack *extack) argument 554 struct net *net = sock_net(cb->skb->sk); local 578 struct net *net = sock_net(skb->sk); local 629 struct net *net = sock_net(skb->sk); local 746 fib6_add_1(struct net *net, struct fib6_table *table, struct fib6_node *root, struct in6_addr *addr, int plen, int offset, int allow_create, int replace_required, struct netlink_ext_ack *extack) argument 1030 fib6_purge_rt(struct fib6_info *rt, struct fib6_node *fn, struct net *net) argument 1334 fib6_start_gc(struct net *net, struct fib6_info *rt) argument 1342 fib6_force_start_gc(struct net *net) argument 1364 fib6_update_sernum_upto_root(struct net *net, struct fib6_info *rt) argument 1370 fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i) argument 1758 fib6_find_prefix(struct net *net, struct fib6_table *table, struct fib6_node *fn) argument 1790 fib6_repair_tree(struct net *net, struct fib6_table *table, struct fib6_node *fn) argument 1925 struct net *net = info->nl_net; local 2015 struct net *net = info->nl_net; local 2166 fib6_walk(struct net *net, struct fib6_walker *w) argument 2237 fib6_clean_tree(struct net *net, struct fib6_node *root, int (*func)(struct fib6_info *, void *arg), int sernum, void *arg, bool skip_notify) argument 2257 __fib6_clean_all(struct net *net, int (*func)(struct fib6_info *, void *), int sernum, void *arg, bool skip_notify) argument 2278 fib6_clean_all(struct net *net, int (*func)(struct fib6_info *, void *), void *arg) argument 2284 fib6_clean_all_skip_notify(struct net *net, int (*func)(struct fib6_info *, void *), void *arg) argument 2291 fib6_flush_trees(struct net *net) argument 2328 fib6_gc_table(struct net *net, struct fib6_table *tb6, struct fib6_gc_args *gc_args) argument 2344 fib6_gc_all(struct net *net, struct fib6_gc_args *gc_args) argument 2364 fib6_run_gc(unsigned long expires, struct net *net, bool force) argument 2399 fib6_net_init(struct net *net) argument 2471 fib6_net_exit(struct net *net) argument 2586 ipv6_route_seq_setup_walk(struct ipv6_route_iter *iter, struct net *net) argument 2600 ipv6_route_seq_next_table(struct fib6_table *tbl, struct net *net) argument 2638 struct net *net = seq_file_net(seq); local 2673 struct net *net = seq_file_net(seq); local 2699 struct net *net = seq_file_net(seq); local [all...] |
/linux-master/net/netlabel/ |
H A D | netlabel_unlabeled.h | 19 #include <net/netlabel.h> 209 int netlbl_unlhsh_add(struct net *net, 216 int netlbl_unlhsh_remove(struct net *net,
|
/linux-master/include/net/ |
H A D | secure_seq.h | 7 struct net; 14 u32 secure_tcp_ts_off(const struct net *net, __be32 saddr, __be32 daddr); 17 u32 secure_tcpv6_ts_off(const struct net *net,
|
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) argument 128 ip6_route_get_saddr(struct net *net, struct fib6_info *f6i, const struct in6_addr *daddr, unsigned int prefs, struct in6_addr *saddr) argument 194 struct net *net; member in struct:rt6_rtnl_dump_arg [all...] |
H A D | inet6_hashtables.h | 20 #include <net/inet_sock.h> 22 #include <net/ipv6.h> 23 #include <net/netns/hash.h> 43 struct sock *__inet6_lookup_established(struct net *net, 51 typedef u32 (inet6_ehashfn_t)(const struct net *net, 59 struct sock *inet6_lookup_reuseport(struct net *net, struct sock *sk, 67 struct sock *inet6_lookup_listener(struct net *ne 85 __inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const u16 hnum, const int dif, const int sdif, bool *refcounted) argument 107 inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const __be16 dport, bool *refcounted, inet6_ehashfn_t *ehashfn) argument 153 struct net *net = dev_net(skb_dst(skb)->dev); local 178 inet6_match(struct net *net, const struct sock *sk, const struct in6_addr *saddr, const struct in6_addr *daddr, const __portpair ports, const int dif, const int sdif) argument [all...] |
H A D | route.h | 23 #include <net/dst.h> 24 #include <net/inetpeer.h> 25 #include <net/flow.h> 26 #include <net/inet_sock.h> 27 #include <net/ip_fib.h> 28 #include <net/arp.h> 29 #include <net/ndisc.h> 120 void rt_cache_flush(struct net *net); 122 struct rtable *ip_route_output_key_hash(struct net *ne 128 __ip_route_output_key(struct net *net, struct flowi4 *flp) argument 139 ip_route_output_key(struct net *net, struct flowi4 *flp) argument 144 ip_route_output(struct net *net, __be32 daddr, __be32 saddr, u8 tos, int oif) argument 156 ip_route_output_ports(struct net *net, struct flowi4 *fl4, const struct sock *sk, __be32 daddr, __be32 saddr, __be16 dport, __be16 sport, __u8 proto, __u8 tos, int oif) argument 171 ip_route_output_gre(struct net *net, struct flowi4 *fl4, __be32 daddr, __be32 saddr, __be32 gre_key, __u8 tos, int oif) argument 305 struct net *net = sock_net(sk); local 351 struct net *net = dev_net(dst->dev); local [all...] |
/linux-master/net/ipv4/ |
H A D | ip_fragment.c | 39 #include <net/route.h> 40 #include <net/dst.h> 41 #include <net/sock.h> 42 #include <net/ip.h> 43 #include <net/icmp.h> 44 #include <net/checksum.h> 45 #include <net/inetpeer.h> 46 #include <net/inet_frag.h> 51 #include <net/inet_ecn.h> 52 #include <net/l3mde 85 struct net *net = q->fqdir->net; local 138 struct net *net; local 205 ip_find(struct net *net, struct iphdr *iph, u32 user, int vif) argument 277 struct net *net = qp->q.fqdir->net; local 415 struct net *net = qp->q.fqdir->net; local 484 ip_defrag(struct net *net, struct sk_buff *skb, u32 user) argument 512 ip_check_defrag(struct net *net, struct sk_buff *skb, u32 user) argument 599 ip4_frags_ns_ctl_register(struct net *net) argument 633 ip4_frags_ns_ctl_unregister(struct net *net) argument 647 ip4_frags_ns_ctl_register(struct net *net) argument 652 ip4_frags_ns_ctl_unregister(struct net *net) argument 661 ipv4_frags_init_net(struct net *net) argument 699 ipv4_frags_pre_exit_net(struct net *net) argument 704 ipv4_frags_exit_net(struct net *net) argument [all...] |
H A D | ip_forward.c | 30 #include <net/sock.h> 31 #include <net/ip.h> 32 #include <net/tcp.h> 33 #include <net/udp.h> 34 #include <net/icmp.h> 38 #include <net/checksum.h> 40 #include <net/route.h> 41 #include <net/xfrm.h> 65 static int ip_forward_finish(struct net *net, struc argument 89 struct net *net; local [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | ip_defrag.sh | 17 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_high_thresh=9000000 >/dev/null 2>&1 18 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_low_thresh=7000000 >/dev/null 2>&1 19 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_time=1 >/dev/null 2>&1 21 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_high_thresh=9000000 >/dev/null 2>&1 22 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_low_thresh=7000000 >/dev/null 2>&1 23 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_time=1 >/dev/null 2>&1 25 ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_high_thresh=9000000 >/dev/null 2>&1 26 ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_low_thresh=7000000 >/dev/null 2>&1 27 ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_timeout=1 >/dev/null 2>&1 30 ip netns exec "${NETNS}" sysctl -w net [all...] |
/linux-master/net/ipv4/netfilter/ |
H A D | iptable_raw.c | 11 #include <net/ip.h> 37 static int iptable_raw_table_init(struct net *net) argument 49 ret = ipt_register_table(net, table, repl, rawtable_ops); 54 static void __net_exit iptable_raw_net_pre_exit(struct net *net) argument 56 ipt_unregister_table_pre_exit(net, "raw"); 59 static void __net_exit iptable_raw_net_exit(struct net *net) argument 61 ipt_unregister_table_exit(net, "ra [all...] |
H A D | iptable_mangle.c | 13 #include <net/sock.h> 14 #include <net/route.h> 16 #include <net/ip.h> 63 err = ip_route_me_harder(state->net, state->sk, skb, RTN_UNSPEC); 84 static int iptable_mangle_table_init(struct net *net) argument 92 ret = ipt_register_table(net, &packet_mangler, repl, mangle_ops); 97 static void __net_exit iptable_mangle_net_pre_exit(struct net *net) argument 99 ipt_unregister_table_pre_exit(net, "mangl 102 iptable_mangle_net_exit(struct net *net) argument [all...] |
/linux-master/net/bridge/netfilter/ |
H A D | ebtable_broute.c | 12 * other ebtables table. See net/bridge/br_input.c. 59 s->net, NULL); 93 static int broute_table_init(struct net *net) argument 95 return ebt_register_table(net, &broute_table, &ebt_ops_broute); 98 static void __net_exit broute_net_pre_exit(struct net *net) argument 100 ebt_unregister_table_pre_exit(net, "broute"); 103 static void __net_exit broute_net_exit(struct net *net) argument [all...] |
/linux-master/include/linux/ |
H A D | mroute_base.h | 7 #include <net/net_namespace.h> 8 #include <net/sock.h> 9 #include <net/fib_notifier.h> 10 #include <net/ip_fib.h> 73 static inline int mr_call_vif_notifiers(struct net *net, argument 93 return call_fib_notifiers(net, event_type, &info.info); 197 static inline int mr_call_mfc_notifiers(struct net *net, argument 213 return call_fib_notifiers(net, event_typ 248 possible_net_t net; member in struct:mr_table 347 mr_rtm_dumproute(struct sk_buff *skb, struct netlink_callback *cb, struct mr_table *(*iter)(struct net *net, struct mr_table *mrt), int (*fill)(struct mr_table *mrt, struct sk_buff *skb, u32 portid, u32 seq, struct mr_mfc *c, int cmd, int flags), spinlock_t *lock, struct fib_dump_filter *filter) argument 359 mr_dump(struct net *net, struct notifier_block *nb, unsigned short family, int (*rules_dump)(struct net *net, struct notifier_block *nb, struct netlink_ext_ack *extack), struct mr_table *(*mr_iter)(struct net *net, struct mr_table *mrt), struct netlink_ext_ack *extack) argument 437 mr_vif_seq_idx(struct net *net, struct mr_vif_iter *iter, loff_t pos) argument 454 mr_mfc_seq_idx(struct net *net, struct mr_mfc_iter *it, loff_t pos) argument [all...] |
/linux-master/drivers/usb/gadget/function/ |
H A D | u_ether.c | 61 struct net_device *net; member in struct:eth_dev 109 static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p) argument 111 struct eth_dev *dev = netdev_priv(net); 176 size += sizeof(struct ethhdr) + dev->net->mtu + RX_EXTRA; 188 skb = __netdev_alloc_skb(dev->net, size + NET_IP_ALIGN, gfp_flags); 256 dev->net->stats.rx_errors++; 257 dev->net->stats.rx_length_errors++; 262 skb2->protocol = eth_type_trans(skb2, dev->net); 263 dev->net->stats.rx_packets++; 264 dev->net 454 eth_start_xmit(struct sk_buff *skb, struct net_device *net) argument 614 eth_open(struct net_device *net) argument 632 eth_stop(struct net_device *net) argument 744 struct net_device *net; local 816 struct net_device *net; local 857 gether_register_netdev(struct net_device *net) argument 889 gether_set_gadget(struct net_device *net, struct usb_gadget *g) argument 899 gether_set_dev_addr(struct net_device *net, const char *dev_addr) argument 913 gether_get_dev_addr(struct net_device *net, char *dev_addr, int len) argument 929 gether_set_host_addr(struct net_device *net, const char *host_addr) argument 942 gether_get_host_addr(struct net_device *net, char *host_addr, int len) argument 958 gether_get_host_addr_cdc(struct net_device *net, char *host_addr, int len) argument 974 gether_get_host_addr_u8(struct net_device *net, u8 host_mac[ETH_ALEN]) argument 983 gether_set_qmult(struct net_device *net, unsigned qmult) argument 992 gether_get_qmult(struct net_device *net) argument 1001 gether_get_ifname(struct net_device *net, char *name, int len) argument 1014 gether_set_ifname(struct net_device *net, const char *name, int len) argument [all...] |
/linux-master/net/ipv6/netfilter/ |
H A D | ip6t_REJECT.c | 11 * Copyright (c) 2005-2007 Patrick McHardy <kaber@trash.net> 13 * Based on net/ipv4/netfilter/ipt_REJECT.c 22 #include <net/icmp.h> 23 #include <net/flow.h> 28 #include <net/netfilter/ipv6/nf_reject.h> 38 struct net *net = xt_net(par); local 42 nf_send_unreach6(net, skb, ICMPV6_NOROUTE, xt_hooknum(par)); 45 nf_send_unreach6(net, skb, ICMPV6_ADM_PROHIBITED, 49 nf_send_unreach6(net, sk [all...] |
/linux-master/net/netfilter/ |
H A D | nf_conntrack_proto.c | 16 #include <net/netfilter/nf_conntrack.h> 17 #include <net/netfilter/nf_conntrack_l4proto.h> 18 #include <net/netfilter/nf_conntrack_core.h> 19 #include <net/netfilter/nf_conntrack_bridge.h> 20 #include <net/netfilter/nf_log.h> 25 #include <net/route.h> 26 #include <net/ip.h> 31 #include <net/netfilter/nf_conntrack_helper.h> 32 #include <net/netfilter/nf_conntrack_zones.h> 33 #include <net/netfilte 54 struct net *net = state->net; local 79 struct net *net; local 438 nf_ct_netns_do_get(struct net *net, u8 nfproto) argument 527 nf_ct_netns_do_put(struct net *net, u8 nfproto) argument 562 nf_ct_netns_inet_get(struct net *net) argument 582 nf_ct_netns_get(struct net *net, u8 nfproto) argument 609 nf_ct_netns_put(struct net *net, uint8_t nfproto) argument 675 nf_conntrack_proto_pernet_init(struct net *net) argument [all...] |
/linux-master/net/mctp/ |
H A D | neigh.c | 19 #include <net/mctp.h> 20 #include <net/mctpdevice.h> 21 #include <net/netlink.h> 22 #include <net/sock.h> 28 struct net *net = dev_net(mdev->dev); local 32 mutex_lock(&net->mctp.neigh_lock); 55 list_add_rcu(&neigh->list, &net->mctp.neighbours); 58 mutex_unlock(&net->mctp.neigh_lock); 73 struct net *ne local 91 struct net *net = dev_net(mdev->dev); local 118 struct net *net = sock_net(skb->sk); local 176 struct net *net = sock_net(skb->sk); local 245 struct net *net = sock_net(skb->sk); local 281 struct net *net = dev_net(mdev->dev); local 300 mctp_neigh_net_init(struct net *net) argument 309 mctp_neigh_net_exit(struct net *net) argument [all...] |
/linux-master/include/linux/netfilter_ipv4/ |
H A D | ip_tables.h | 25 int ipt_register_table(struct net *net, const struct xt_table *table, 29 void ipt_unregister_table_pre_exit(struct net *net, const char *name); 30 void ipt_unregister_table_exit(struct net *net, const char *name); 71 #include <net/compat.h>
|
/linux-master/include/linux/netfilter_arp/ |
H A D | arp_tables.h | 52 int arpt_register_table(struct net *net, const struct xt_table *table, 55 void arpt_unregister_table(struct net *net, const char *name); 56 void arpt_unregister_table_pre_exit(struct net *net, const char *name); 61 #include <net/compat.h>
|
/linux-master/tools/testing/selftests/netfilter/ |
H A D | ipip-conntrack-mtu.sh | 45 checktool "ip netns add ${r_a}" "create net namespace" 102 ip -net ${r_a} link set $dev up 105 ip -net ${r_a} addr add 10.2.2.1/24 dev veth0 106 ip -net ${r_a} addr add 192.168.10.1/24 dev veth1 108 ip -net ${r_a} route add 192.168.20.0/24 dev ipip0 109 ip -net ${r_a} route add 10.4.4.0/24 via 10.2.2.254 111 ip netns exec ${r_a} sysctl -q net.ipv4.conf.all.forwarding=1 > /dev/null 133 ip -net ${r_b} link set $dev up 136 ip -net ${r_b} addr add 10.4.4.1/24 dev veth0 137 ip -net [all...] |
/linux-master/net/smc/ |
H A D | smc_pnet.h | 15 #include <net/smc.h> 36 struct smc_pnetids_ndev { /* list of pnetids for net devices in UP state*/ 58 int smc_pnet_net_init(struct net *net); 60 void smc_pnet_net_exit(struct net *net); 68 bool smc_pnet_is_ndev_pnetid(struct net *net, u8 *pnetid);
|
/linux-master/fs/nfs/ |
H A D | callback.c | 23 #include <net/inet_sock.h> 41 static int nfs4_callback_up_net(struct svc_serv *serv, struct net *net) argument 45 struct nfs_net *nn = net_generic(net, nfs_net_id); 47 ret = svc_xprt_create(serv, "tcp", net, PF_INET, 53 dprintk("NFS: Callback listener port = %u (af %u, net %x)\n", 54 nn->nfs_callback_tcpport, PF_INET, net->ns.inum); 56 ret = svc_xprt_create(serv, "tcp", net, PF_INET6, 61 dprintk("NFS: Callback listener port = %u (af %u, net %x)\n", 62 nn->nfs_callback_tcpport6, PF_INET6, net 129 nfs_callback_down_net(u32 minorversion, struct svc_serv *serv, struct net *net) argument 140 nfs_callback_up_net(int minorversion, struct svc_serv *serv, struct net *net, struct rpc_xprt *xprt) argument 228 struct net *net = xprt->xprt_net; local 265 nfs_callback_down(int minorversion, struct net *net) argument [all...] |
/linux-master/net/tipc/ |
H A D | addr.c | 2 * net/tipc/addr.c: TIPC address utility routines 56 void tipc_set_node_id(struct net *net, u8 *id) argument 58 struct tipc_net *tn = tipc_net(net); 64 tipc_own_id_string(net), tn->net_id); 67 void tipc_set_node_addr(struct net *net, u32 addr) argument 69 struct tipc_net *tn = tipc_net(net); 73 if (!tipc_own_id(net)) { 75 tipc_set_node_id(net, node_i [all...] |