net 2456 fs/proc/base.c DIR("net", S_IRUGO|S_IXUGO, net), net 650 fs/proc/generic.c ent->data = net; net 30 fs/proc/proc_net.c static struct net *get_proc_net(const struct inode *inode) net 38 fs/proc/proc_net.c struct net *net; net 43 fs/proc/proc_net.c net = get_proc_net(ino); net 44 fs/proc/proc_net.c if (net == NULL) net 49 fs/proc/proc_net.c put_net(net); net 53 fs/proc/proc_net.c p->net = net; net 63 fs/proc/proc_net.c struct net *net; net 66 fs/proc/proc_net.c net = get_proc_net(inode); net 67 fs/proc/proc_net.c if (net == NULL) net 70 fs/proc/proc_net.c err = single_open(file, show, net); net 77 fs/proc/proc_net.c put_net(net); net 103 fs/proc/proc_net.c static struct net *get_proc_task_net(struct inode *dir) net 107 fs/proc/proc_net.c struct net *net = NULL; net 114 fs/proc/proc_net.c net = get_net(ns->net_ns); net 118 fs/proc/proc_net.c return net; net 125 fs/proc/proc_net.c struct net *net; net 128 fs/proc/proc_net.c net = get_proc_task_net(dir); net 129 fs/proc/proc_net.c if (net != NULL) { net 130 fs/proc/proc_net.c de = proc_lookup_de(net->proc_net, dir, dentry); net 131 fs/proc/proc_net.c put_net(net); net 140 fs/proc/proc_net.c struct net *net; net 142 fs/proc/proc_net.c net = get_proc_task_net(inode); net 146 fs/proc/proc_net.c if (net != NULL) { net 147 fs/proc/proc_net.c stat->nlink = net->proc_net->nlink; net 148 fs/proc/proc_net.c put_net(net); net 163 fs/proc/proc_net.c struct net *net; net 166 fs/proc/proc_net.c net = get_proc_task_net(filp->f_path.dentry->d_inode); net 167 fs/proc/proc_net.c if (net != NULL) { net 168 fs/proc/proc_net.c ret = proc_readdir_de(net->proc_net, filp, dirent, filldir); net 169 fs/proc/proc_net.c put_net(net); net 183 fs/proc/proc_net.c return proc_create(name, mode, net->proc_net, fops); net 189 fs/proc/proc_net.c remove_proc_entry(name, net->proc_net); net 203 fs/proc/proc_net.c netd->data = net; net 210 fs/proc/proc_net.c net_statd = proc_net_mkdir(net, "stat", netd); net 214 fs/proc/proc_net.c net->proc_net = netd; net 215 fs/proc/proc_net.c net->proc_net_stat = net_statd; net 226 fs/proc/proc_net.c remove_proc_entry("stat", net->proc_net); net 227 fs/proc/proc_net.c kfree(net->proc_net); net 11 include/linux/if_ec.h unsigned char net; /* Network number. */ net 56 include/linux/if_ec.h unsigned char net; net 67 include/linux/if_ec.h unsigned char station, net; /* Econet protocol address */ net 174 include/linux/if_pppox.h int (*create)(struct net *net, struct socket *sock); net 47 include/linux/inetdevice.h IPV4_DEVCONF((*(net)->ipv4.devconf_all), attr) net 64 include/linux/net.h struct net; net 194 include/linux/net.h int (*create)(struct net *net, struct socket *sock, int protocol); net 731 include/linux/netdevice.h struct net *nd_net; net 787 include/linux/netdevice.h struct net *dev_net(const struct net_device *dev) net 801 include/linux/netdevice.h dev->nd_net = hold_net(net); net 841 include/linux/netdevice.h #define SET_NETDEV_DEV(net, pdev) ((net)->dev.parent = (pdev)) net 904 include/linux/netdevice.h list_for_each_entry(d, &(net)->dev_base_head, dev_list) net 906 include/linux/netdevice.h list_for_each_entry_safe(d, n, &(net)->dev_base_head, dev_list) net 908 include/linux/netdevice.h list_for_each_entry_continue(d, &(net)->dev_base_head, dev_list) net 914 include/linux/netdevice.h struct net *net; net 916 include/linux/netdevice.h net = dev_net(dev); net 918 include/linux/netdevice.h return lh == &net->dev_base_head ? NULL : net_device_entry(lh); net 923 include/linux/netdevice.h return list_empty(&net->dev_base_head) ? NULL : net 924 include/linux/netdevice.h net_device_entry(net->dev_base_head.next); net 30 include/linux/netlink.h struct net; net 228 include/linux/netlink.h struct net *net; net 31 include/linux/nsproxy.h struct net *net_ns; net 10 include/linux/proc_fs.h struct net; net 307 include/linux/proc_fs.h static inline struct net *PDE_NET(struct proc_dir_entry *pde) net 98 include/linux/rio.h struct rio_net *net; /* RIO net this device resides in */ net 161 include/linux/rio_drv.h return rio_mport_read_config_32(rdev->net->hport, destid, hopcount, net 185 include/linux/rio_drv.h return rio_mport_write_config_32(rdev->net->hport, destid, hopcount, net 209 include/linux/rio_drv.h return rio_mport_read_config_16(rdev->net->hport, destid, hopcount, net 233 include/linux/rio_drv.h return rio_mport_write_config_16(rdev->net->hport, destid, hopcount, net 256 include/linux/rio_drv.h return rio_mport_read_config_8(rdev->net->hport, destid, hopcount, net 279 include/linux/rio_drv.h return rio_mport_write_config_8(rdev->net->hport, destid, hopcount, net 296 include/linux/rio_drv.h return rio_mport_send_doorbell(rdev->net->hport, rdev->destid, data); net 6 include/linux/seq_file_net.h struct net; net 7 include/linux/seq_file_net.h extern struct net init_net; net 11 include/linux/seq_file_net.h struct net *net; net 21 include/linux/seq_file_net.h static inline struct net *seq_file_net(struct seq_file *seq) net 24 include/linux/seq_file_net.h return ((struct seq_net_private *)seq->private)->net; net 52 include/linux/udp.h return (num + net_hash_mix(net)) & (UDP_HTABLE_SIZE - 1); net 44 include/linux/usb/usbnet.h struct net_device *net; net 198 include/linux/usb/usbnet.h printk(KERN_DEBUG "%s: " fmt "\n" , (usbnet)->net->name , ## arg) net 204 include/linux/usb/usbnet.h printk(KERN_ERR "%s: " fmt "\n" , (usbnet)->net->name , ## arg) net 206 include/linux/usb/usbnet.h printk(KERN_WARNING "%s: " fmt "\n" , (usbnet)->net->name , ## arg) net 209 include/linux/usb/usbnet.h printk(KERN_INFO "%s: " fmt "\n" , (usbnet)->net->name , ## arg); \ net 24 include/media/videobuf-dvb.h struct dvb_net net; net 110 include/net/dst.h struct net *dst_net; net 25 include/net/fib_rules.h struct net * fr_net; net 71 include/net/fib_rules.h struct net *fro_net; net 32 include/net/icmp.h #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) net 33 include/net/icmp.h #define ICMP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.icmp_statistics, field) net 34 include/net/icmp.h #define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmpmsg_statistics, field+256) net 35 include/net/icmp.h #define ICMPMSGIN_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.icmpmsg_statistics, field) net 40 include/net/icmp.h struct net; net 40 include/net/inet6_hashtables.h ports, inet_ehash_secret + net_hash_mix(net)); net 51 include/net/inet6_hashtables.h struct net *net = sock_net(sk); net 53 include/net/inet6_hashtables.h return inet6_ehashfn(net, laddr, lport, faddr, fport); net 86 include/net/inet6_hashtables.h struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, net 91 include/net/inet6_hashtables.h return inet6_lookup_listener(net, hashinfo, daddr, hnum, dif); net 17 include/net/inet_frag.h struct netns_frags *net; net 80 include/net/inet_hashtables.h struct net *ib_net; net 210 include/net/inet_hashtables.h return (lport + net_hash_mix(net)) & (bhash_size - 1); net 219 include/net/inet_hashtables.h return (num + net_hash_mix(net)) & (INET_LHTABLE_SIZE - 1); net 267 include/net/inet_hashtables.h return __inet_lookup_listener(net, hashinfo, daddr, ntohs(dport), dif); net 344 include/net/inet_hashtables.h return __inet_lookup_established(net, hashinfo, saddr, sport, daddr, net 355 include/net/inet_hashtables.h struct sock *sk = __inet_lookup_established(net, hashinfo, net 358 include/net/inet_hashtables.h return sk ? : __inet_lookup_listener(net, hashinfo, daddr, hnum, dif); net 370 include/net/inet_hashtables.h sk = __inet_lookup(net, hashinfo, saddr, sport, daddr, dport, dif); net 183 include/net/inet_sock.h inet_ehash_secret + net_hash_mix(net)); net 193 include/net/inet_sock.h struct net *net = sock_net(sk); net 195 include/net/inet_sock.h return inet_ehashfn(net, laddr, lport, faddr, fport); net 216 include/net/inet_timewait_sock.h struct net *twsk_net(const struct inet_timewait_sock *twsk) net 229 include/net/inet_timewait_sock.h twsk->tw_net = net; net 168 include/net/ip.h #define IP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.ip_statistics, field) net 169 include/net/ip.h #define IP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.ip_statistics, field) net 170 include/net/ip.h #define IP_ADD_STATS_BH(net, field, val) SNMP_ADD_STATS_BH((net)->mib.ip_statistics, field, val) net 171 include/net/ip.h #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) net 172 include/net/ip.h #define NET_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.net_statistics, field) net 173 include/net/ip.h #define NET_INC_STATS_USER(net, field) SNMP_INC_STATS_USER((net)->mib.net_statistics, field) net 174 include/net/ip.h #define NET_ADD_STATS_BH(net, field, adnd) SNMP_ADD_STATS_BH((net)->mib.net_statistics, field, adnd) net 175 include/net/ip.h #define NET_ADD_STATS_USER(net, field, adnd) SNMP_ADD_STATS_USER((net)->mib.net_statistics, field, adnd) net 110 include/net/ip6_route.h struct net *net; net 72 include/net/ip_fib.h struct net *fib_net; net 172 include/net/ip_fib.h &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX] : net 173 include/net/ip_fib.h &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]; net 179 include/net/ip_fib.h return fib_get_table(net, id); net 187 include/net/ip_fib.h table = fib_get_table(net, RT_TABLE_LOCAL); net 191 include/net/ip_fib.h table = fib_get_table(net, RT_TABLE_MAIN); net 118 include/net/ipv6.h SNMP_INC_STATS##modifier((net)->mib.statname##_statistics, (field));\ net 126 include/net/ipv6.h SNMP_ADD_STATS##modifier((net)->mib.statname##_statistics, (field), (val));\ net 132 include/net/ipv6.h _DEVINC(net, ipv6, , idev, field) net 134 include/net/ipv6.h _DEVINC(net, ipv6, _BH, idev, field) net 136 include/net/ipv6.h _DEVADD(net, ipv6, _BH, idev, field, val) net 139 include/net/ipv6.h _DEVINC(net, icmpv6, , idev, field) net 141 include/net/ipv6.h _DEVINC(net, icmpv6, _BH, idev, field) net 144 include/net/ipv6.h _DEVINC(net, icmpv6msg, , idev, field +256) net 146 include/net/ipv6.h _DEVINC(net, icmpv6msg, _BH, idev, field +256) net 148 include/net/ipv6.h _DEVINC(net, icmpv6msg, _BH, idev, field) net 196 include/net/ipv6.h struct net *fl_net; net 18 include/net/ipx.h __be32 net; net 42 include/net/neighbour.h struct net *net; net 139 include/net/neighbour.h struct net *net; net 224 include/net/neighbour.h struct net *neigh_parms_net(const struct neigh_parms *parms) net 227 include/net/neighbour.h return parms->net; net 245 include/net/neighbour.h struct net *pneigh_net(const struct pneigh_entry *pneigh) net 248 include/net/neighbour.h return pneigh->net; net 84 include/net/net_namespace.h extern struct net init_net; net 89 include/net/net_namespace.h extern struct net *copy_net_ns(unsigned long flags, struct net *net_ns); net 95 include/net/net_namespace.h static inline struct net *copy_net_ns(unsigned long flags, struct net *net_ns) net 110 include/net/net_namespace.h return net && atomic_read(&net->count); net 113 include/net/net_namespace.h static inline struct net *get_net(struct net *net) net 115 include/net/net_namespace.h atomic_inc(&net->count); net 116 include/net/net_namespace.h return net; net 119 include/net/net_namespace.h static inline struct net *maybe_get_net(struct net *net) net 126 include/net/net_namespace.h if (!atomic_inc_not_zero(&net->count)) net 127 include/net/net_namespace.h net = NULL; net 128 include/net/net_namespace.h return net; net 133 include/net/net_namespace.h if (atomic_dec_and_test(&net->count)) net 134 include/net/net_namespace.h __put_net(net); net 149 include/net/net_namespace.h static inline struct net *get_net(struct net *net) net 151 include/net/net_namespace.h return net; net 158 include/net/net_namespace.h static inline struct net *maybe_get_net(struct net *net) net 160 include/net/net_namespace.h return net; net 172 include/net/net_namespace.h static inline struct net *hold_net(struct net *net) net 174 include/net/net_namespace.h if (net) net 175 include/net/net_namespace.h atomic_inc(&net->use_count); net 176 include/net/net_namespace.h return net; net 181 include/net/net_namespace.h if (net) net 182 include/net/net_namespace.h atomic_dec(&net->use_count); net 185 include/net/net_namespace.h static inline struct net *hold_net(struct net *net) net 187 include/net/net_namespace.h return net; net 211 include/net/net_namespace.h int (*init)(struct net *net); net 212 include/net/net_namespace.h void (*exit)(struct net *net); net 127 include/net/netfilter/nf_conntrack.h struct net *ct_net; net 152 include/net/netfilter/nf_conntrack.h extern struct net init_net; net 154 include/net/netfilter/nf_conntrack.h static inline struct net *nf_ct_net(const struct nf_conn *ct) net 293 include/net/netfilter/nf_conntrack.h (per_cpu_ptr((net)->ct.stat, raw_smp_processor_id())->count++) net 297 include/net/netfilter/nf_conntrack.h per_cpu_ptr((net)->ct.stat, raw_smp_processor_id())->count++; \ net 31 include/net/netfilter/nf_conntrack_acct.h struct net *net = nf_ct_net(ct); net 34 include/net/netfilter/nf_conntrack_acct.h if (!net->ct.sysctl_acct) net 31 include/net/netfilter/nf_conntrack_ecache.h struct net *net = nf_ct_net(ct); net 35 include/net/netfilter/nf_conntrack_ecache.h ecache = per_cpu_ptr(net->ct.ecache, raw_smp_processor_id()); net 58 include/net/netfilter/nf_conntrack_expect.h static inline struct net *nf_ct_exp_net(struct nf_conntrack_expect *exp) net 53 include/net/netfilter/nf_conntrack_l4proto.h int (*error)(struct net *net, struct sk_buff *skb, unsigned int dataoff, net 123 include/net/netfilter/nf_conntrack_l4proto.h ((net)->ct.sysctl_log_invalid == (proto) || \ net 124 include/net/netfilter/nf_conntrack_l4proto.h (net)->ct.sysctl_log_invalid == IPPROTO_RAW) net 127 include/net/netfilter/nf_conntrack_l4proto.h (((net)->ct.sysctl_log_invalid == (proto) || \ net 128 include/net/netfilter/nf_conntrack_l4proto.h (net)->ct.sysctl_log_invalid == IPPROTO_RAW) \ net 217 include/net/netlink.h struct net *nl_net; net 40 include/net/netns/generic.h ng = rcu_dereference(net->gen); net 6 include/net/netns/hash.h struct net; net 16 include/net/netns/hash.h return (unsigned)(((unsigned long)net) >> L1_CACHE_SHIFT); net 163 include/net/route.h struct net *net = sock_net(sk); net 169 include/net/route.h err = __ip_route_output_key(net, rp, &fl); net 178 include/net/route.h return ip_route_output_flow(net, rp, &fl, sk, flags); net 100 include/net/sock.h struct net; net 129 include/net/sock.h struct net *skc_net; net 1303 include/net/sock.h struct net *sock_net(const struct sock *sk) net 1316 include/net/sock.h sk->sk_net = net; net 1329 include/net/sock.h sock_net_set(sk, hold_net(net)); net 270 include/net/tcp.h #define TCP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.tcp_statistics, field) net 271 include/net/tcp.h #define TCP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.tcp_statistics, field) net 272 include/net/tcp.h #define TCP_DEC_STATS(net, field) SNMP_DEC_STATS((net)->mib.tcp_statistics, field) net 273 include/net/tcp.h #define TCP_ADD_STATS_USER(net, field, val) SNMP_ADD_STATS_USER((net)->mib.tcp_statistics, field, val) net 1034 include/net/tcp.h TCP_ADD_STATS_USER(net, TCP_MIB_RTOALGORITHM, 1); net 1035 include/net/tcp.h TCP_ADD_STATS_USER(net, TCP_MIB_RTOMIN, TCP_RTO_MIN*1000/HZ); net 1036 include/net/tcp.h TCP_ADD_STATS_USER(net, TCP_MIB_RTOMAX, TCP_RTO_MAX*1000/HZ); net 1037 include/net/tcp.h TCP_ADD_STATS_USER(net, TCP_MIB_MAXCONN, -1); net 159 include/net/udp.h if (is_udplite) SNMP_INC_STATS_USER((net)->mib.udplite_statistics, field); \ net 160 include/net/udp.h else SNMP_INC_STATS_USER((net)->mib.udp_statistics, field); } while(0) net 162 include/net/udp.h if (is_udplite) SNMP_INC_STATS_BH((net)->mib.udplite_statistics, field); \ net 163 include/net/udp.h else SNMP_INC_STATS_BH((net)->mib.udp_statistics, field); } while(0) net 166 include/net/udp.h if (is_udplite) SNMP_INC_STATS_BH((net)->mib.udplite_stats_in6, field);\ net 167 include/net/udp.h else SNMP_INC_STATS_BH((net)->mib.udp_stats_in6, field); \ net 170 include/net/udp.h if (__lite) SNMP_INC_STATS_USER((net)->mib.udplite_stats_in6, field); \ net 171 include/net/udp.h else SNMP_INC_STATS_USER((net)->mib.udp_stats_in6, field); \ net 8 include/net/wext.h struct net; net 299 net/8021q/vlan.c struct net *net = dev_net(real_dev); net 300 net/8021q/vlan.c struct vlan_net *vn = net_generic(net, vlan_net_id); net 343 net/8021q/vlan.c dev_net_set(new_dev, net); net 565 net/8021q/vlan.c dev = __dev_get_by_name(net, args.device1); net 611 net/8021q/vlan.c vn = net_generic(net, vlan_net_id); net 669 net/8021q/vlan.c err = net_assign_generic(net, vlan_net_id, vn); net 675 net/8021q/vlan.c err = vlan_proc_init(net); net 693 net/8021q/vlan.c vn = net_generic(net, vlan_net_id); net 694 net/8021q/vlan.c rtnl_kill_links(net, &vlan_link_ops); net 695 net/8021q/vlan.c vlan_proc_cleanup(net); net 126 net/8021q/vlanproc.c struct vlan_net *vn = net_generic(net, vlan_net_id); net 132 net/8021q/vlanproc.c proc_net_remove(net, name_root); net 145 net/8021q/vlanproc.c struct vlan_net *vn = net_generic(net, vlan_net_id); net 147 net/8021q/vlanproc.c vn->proc_vlan_dir = proc_net_mkdir(net, name_root, net->proc_net); net 159 net/8021q/vlanproc.c vlan_proc_cleanup(net); net 207 net/8021q/vlanproc.c struct net *net = seq_file_net(seq); net 215 net/8021q/vlanproc.c for_each_netdev(net, dev) { net 229 net/8021q/vlanproc.c struct net *net = seq_file_net(seq); net 235 net/8021q/vlanproc.c dev = net_device_entry(&net->dev_base_head); net 237 net/8021q/vlanproc.c for_each_netdev_continue(net, dev) { net 255 net/8021q/vlanproc.c struct net *net = seq_file_net(seq); net 256 net/8021q/vlanproc.c struct vlan_net *vn = net_generic(net, vlan_net_id); net 5 net/8021q/vlanproc.h struct net; net 411 net/appletalk/ddp.c iface->address.s_net == net && net 416 net/appletalk/ddp.c if (node == ATADDR_ANYNODE && net != ATADDR_ANYNET && net 417 net/appletalk/ddp.c ntohs(iface->nets.nr_firstnet) <= ntohs(net) && net 418 net/appletalk/ddp.c ntohs(net) <= ntohs(iface->nets.nr_lastnet)) net 1036 net/appletalk/ddp.c if (net != &init_net) net 1046 net/appletalk/ddp.c sk = sk_alloc(net, PF_APPLETALK, GFP_KERNEL, &ddp_proto); net 136 net/atm/common.c sk = sk_alloc(net, family, GFP_KERNEL, &vcc_proto); net 129 net/atm/pvc.c if (net != &init_net) net 133 net/atm/pvc.c return vcc_create(net, sock, protocol, PF_ATMPVC); net 634 net/atm/svc.c if (net != &init_net) net 638 net/atm/svc.c error = vcc_create(net, sock, protocol, AF_ATMSVC); net 801 net/ax25/af_ax25.c if (net != &init_net) net 849 net/ax25/af_ax25.c sk = sk_alloc(net, PF_AX25, GFP_ATOMIC, &ax25_proto); net 142 net/bluetooth/af_bluetooth.c if (net != &init_net) net 159 net/bluetooth/af_bluetooth.c err = bt_proto[proto]->create(net, sock, proto); net 212 net/bluetooth/bnep/sock.c sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &bnep_proto); net 207 net/bluetooth/cmtp/sock.c sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &cmtp_proto); net 640 net/bluetooth/hci_sock.c sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &hci_sk_proto); net 258 net/bluetooth/hidp/sock.c sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &hidp_proto); net 685 net/bluetooth/l2cap.c sk = sk_alloc(net, PF_BLUETOOTH, prio, &l2cap_proto); net 723 net/bluetooth/l2cap.c sk = l2cap_sock_alloc(net, sock, protocol, GFP_ATOMIC); net 288 net/bluetooth/rfcomm/sock.c sk = sk_alloc(net, PF_BLUETOOTH, prio, &rfcomm_proto); net 337 net/bluetooth/rfcomm/sock.c sk = rfcomm_sock_alloc(net, sock, protocol, GFP_ATOMIC); net 422 net/bluetooth/sco.c sk = sk_alloc(net, PF_BLUETOOTH, prio, &sco_proto); net 456 net/bluetooth/sco.c sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC); net 181 net/bridge/br_if.c dev_net_set(dev, net); net 271 net/bridge/br_if.c dev = new_bridge_dev(net, name); net 304 net/bridge/br_if.c dev = __dev_get_by_name(net, name); net 455 net/bridge/br_if.c for_each_netdev(net, dev) { net 29 net/bridge/br_ioctl.c for_each_netdev(net, dev) { net 340 net/bridge/br_ioctl.c args[2] = get_bridge_ifindices(net, indices, args[2]); net 363 net/bridge/br_ioctl.c return br_add_bridge(net, buf); net 365 net/bridge/br_ioctl.c return br_del_bridge(net, buf); net 377 net/bridge/br_ioctl.c return old_deviceless(net, uarg); net 392 net/bridge/br_ioctl.c return br_add_bridge(net, buf); net 394 net/bridge/br_ioctl.c return br_del_bridge(net, buf); net 85 net/bridge/br_netlink.c struct net *net = dev_net(port->dev); net 101 net/bridge/br_netlink.c err = rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL, GFP_ATOMIC); net 104 net/bridge/br_netlink.c rtnl_set_sk_err(net, RTNLGRP_LINK, err); net 112 net/bridge/br_netlink.c struct net *net = sock_net(skb->sk); net 117 net/bridge/br_netlink.c for_each_netdev(net, dev) { net 141 net/bridge/br_netlink.c struct net *net = sock_net(skb->sk); net 163 net/bridge/br_netlink.c dev = __dev_get_by_index(net, ifm->ifi_index); net 128 net/can/af_can.c if (net != &init_net) net 170 net/can/af_can.c sk = sk_alloc(net, PF_CAN, GFP_KERNEL, cp->prot); net 216 net/core/dev.c return &net->dev_name_head[hash & ((1 << NETDEV_HASHBITS) - 1)]; net 221 net/core/dev.c return &net->dev_index_head[ifindex & ((1 << NETDEV_HASHBITS) - 1)]; net 227 net/core/dev.c struct net *net = dev_net(dev); net 232 net/core/dev.c list_add_tail(&dev->dev_list, &net->dev_base_head); net 233 net/core/dev.c hlist_add_head(&dev->name_hlist, dev_name_hash(net, dev->name)); net 234 net/core/dev.c hlist_add_head(&dev->index_hlist, dev_index_hash(net, dev->ifindex)); net 597 net/core/dev.c hlist_for_each(p, dev_name_hash(net, name)) { net 623 net/core/dev.c dev = __dev_get_by_name(net, name); net 646 net/core/dev.c hlist_for_each(p, dev_index_hash(net, ifindex)) { net 672 net/core/dev.c dev = __dev_get_by_index(net, ifindex); net 700 net/core/dev.c for_each_netdev(net, dev) net 715 net/core/dev.c for_each_netdev(net, dev) net 729 net/core/dev.c dev = __dev_getfirstbyhwtype(net, type); net 756 net/core/dev.c for_each_netdev(net, dev) { net 830 net/core/dev.c for_each_netdev(net, d) { net 847 net/core/dev.c if (!__dev_get_by_name(net, buf)) net 874 net/core/dev.c struct net *net; net 878 net/core/dev.c net = dev_net(dev); net 879 net/core/dev.c ret = __dev_alloc_name(net, name, buf); net 899 net/core/dev.c struct net *net; net 904 net/core/dev.c net = dev_net(dev); net 921 net/core/dev.c else if (__dev_get_by_name(net, newname)) net 935 net/core/dev.c hlist_add_head(&dev->name_hlist, dev_name_hash(net, dev->name)); net 1037 net/core/dev.c dev = __dev_get_by_name(net, name); net 1226 net/core/dev.c struct net *net; net 1235 net/core/dev.c for_each_net(net) { net 1236 net/core/dev.c for_each_netdev(net, dev) { net 1255 net/core/dev.c for_each_net(net) { net 1256 net/core/dev.c for_each_netdev(net, dev) { net 2504 net/core/dev.c dev = __dev_get_by_index(net, ifr.ifr_ifindex); net 2548 net/core/dev.c for_each_netdev(net, dev) { net 2583 net/core/dev.c struct net *net = seq_file_net(seq); net 2592 net/core/dev.c for_each_netdev(net, dev) net 2601 net/core/dev.c struct net *net = seq_file_net(seq); net 2604 net/core/dev.c first_net_device(net) : next_net_device((struct net_device *)v); net 2869 net/core/dev.c if (!proc_net_fops_create(net, "dev", S_IRUGO, &dev_seq_fops)) net 2871 net/core/dev.c if (!proc_net_fops_create(net, "softnet_stat", S_IRUGO, &softnet_seq_fops)) net 2873 net/core/dev.c if (!proc_net_fops_create(net, "ptype", S_IRUGO, &ptype_seq_fops)) net 2876 net/core/dev.c if (wext_proc_init(net)) net 2882 net/core/dev.c proc_net_remove(net, "ptype"); net 2884 net/core/dev.c proc_net_remove(net, "softnet_stat"); net 2886 net/core/dev.c proc_net_remove(net, "dev"); net 2892 net/core/dev.c wext_proc_exit(net); net 2894 net/core/dev.c proc_net_remove(net, "ptype"); net 2895 net/core/dev.c proc_net_remove(net, "softnet_stat"); net 2896 net/core/dev.c proc_net_remove(net, "dev"); net 3507 net/core/dev.c struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); net 3574 net/core/dev.c struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); net 3701 net/core/dev.c ret = dev_ifconf(net, (char __user *) arg); net 3706 net/core/dev.c return dev_ifname(net, (struct ifreq __user *)arg); net 3736 net/core/dev.c dev_load(net, ifr.ifr_name); net 3738 net/core/dev.c ret = dev_ifsioc_locked(net, &ifr, cmd); net 3750 net/core/dev.c dev_load(net, ifr.ifr_name); net 3752 net/core/dev.c ret = dev_ethtool(net, &ifr); net 3774 net/core/dev.c dev_load(net, ifr.ifr_name); net 3776 net/core/dev.c ret = dev_ifsioc(net, &ifr, cmd); net 3815 net/core/dev.c dev_load(net, ifr.ifr_name); net 3817 net/core/dev.c ret = dev_ifsioc(net, &ifr, cmd); net 3837 net/core/dev.c dev_load(net, ifr.ifr_name); net 3839 net/core/dev.c ret = dev_ifsioc(net, &ifr, cmd); net 3848 net/core/dev.c return wext_handle_ioctl(net, &ifr, cmd, arg); net 3868 net/core/dev.c if (!__dev_get_by_index(net, ifindex)) net 3972 net/core/dev.c struct net *net; net 3982 net/core/dev.c net = dev_net(dev); net 4005 net/core/dev.c dev->ifindex = dev_new_index(net); net 4010 net/core/dev.c head = dev_name_hash(net, dev->name); net 4459 net/core/dev.c if (net_eq(dev_net(dev), net)) net 4467 net/core/dev.c if (__dev_get_by_name(net, destname)) { net 4474 net/core/dev.c if (__dev_alloc_name(net, pat, buf) < 0) net 4479 net/core/dev.c if (__dev_get_by_name(net, destname)) net 4510 net/core/dev.c dev_net_set(dev, net); net 4517 net/core/dev.c if (__dev_get_by_index(net, dev->ifindex)) { net 4519 net/core/dev.c dev->ifindex = dev_new_index(net); net 4763 net/core/dev.c INIT_LIST_HEAD(&net->dev_base_head); net 4765 net/core/dev.c net->dev_name_head = netdev_create_hash(); net 4766 net/core/dev.c if (net->dev_name_head == NULL) net 4769 net/core/dev.c net->dev_index_head = netdev_create_hash(); net 4770 net/core/dev.c if (net->dev_index_head == NULL) net 4776 net/core/dev.c kfree(net->dev_name_head); net 4811 net/core/dev.c kfree(net->dev_name_head); net 4812 net/core/dev.c kfree(net->dev_index_head); net 4828 net/core/dev.c for_each_netdev_safe(net, dev, next) { net 208 net/core/dev_mcast.c if (!proc_net_fops_create(net, "dev_mcast", 0, &dev_mc_seq_fops)) net 215 net/core/dev_mcast.c proc_net_remove(net, "dev_mcast"); net 827 net/core/ethtool.c struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); net 50 net/core/fib_rules.c list_for_each_entry_rcu(ops, &net->rules_ops, list) { net 79 net/core/fib_rules.c struct net *net; net 81 net/core/fib_rules.c net = ops->fro_net; net 91 net/core/fib_rules.c spin_lock(&net->rules_mod_lock); net 92 net/core/fib_rules.c list_for_each_entry(o, &net->rules_ops, list) net 96 net/core/fib_rules.c hold_net(net); net 97 net/core/fib_rules.c list_add_tail_rcu(&ops->list, &net->rules_ops); net 100 net/core/fib_rules.c spin_unlock(&net->rules_mod_lock); net 120 net/core/fib_rules.c struct net *net = ops->fro_net; net 122 net/core/fib_rules.c spin_lock(&net->rules_mod_lock); net 125 net/core/fib_rules.c spin_unlock(&net->rules_mod_lock); net 128 net/core/fib_rules.c release_net(net); net 217 net/core/fib_rules.c struct net *net = sock_net(skb->sk); net 227 net/core/fib_rules.c ops = lookup_rules_ops(net, frh->family); net 246 net/core/fib_rules.c rule->fr_net = hold_net(net); net 256 net/core/fib_rules.c dev = __dev_get_by_name(net, rule->ifname); net 356 net/core/fib_rules.c struct net *net = sock_net(skb->sk); net 366 net/core/fib_rules.c ops = lookup_rules_ops(net, frh->family); net 538 net/core/fib_rules.c struct net *net = sock_net(skb->sk); net 545 net/core/fib_rules.c ops = lookup_rules_ops(net, family); net 553 net/core/fib_rules.c list_for_each_entry_rcu(ops, &net->rules_ops, list) { net 574 net/core/fib_rules.c struct net *net; net 578 net/core/fib_rules.c net = ops->fro_net; net 591 net/core/fib_rules.c err = rtnl_notify(skb, net, pid, ops->nlgroup, nlh, GFP_KERNEL); net 594 net/core/fib_rules.c rtnl_set_sk_err(net, ops->nlgroup, err); net 622 net/core/fib_rules.c struct net *net = dev_net(dev); net 630 net/core/fib_rules.c list_for_each_entry(ops, &net->rules_ops, list) net 635 net/core/fib_rules.c list_for_each_entry(ops, &net->rules_ops, list) net 651 net/core/fib_rules.c INIT_LIST_HEAD(&net->rules_ops); net 652 net/core/fib_rules.c spin_lock_init(&net->rules_mod_lock); net 395 net/core/neighbour.c net_eq(dev_net(n->dev), net)) { net 493 net/core/neighbour.c net_eq(pneigh_net(n), net) && net 508 net/core/neighbour.c net, pkey, key_len, dev); net 522 net/core/neighbour.c net, pkey, key_len, dev); net 535 net/core/neighbour.c n->net = hold_net(net); net 545 net/core/neighbour.c release_net(net); net 572 net/core/neighbour.c net_eq(pneigh_net(n), net)) { net 1320 net/core/neighbour.c if ((p->dev && p->dev->ifindex == ifindex && net_eq(neigh_parms_net(p), net)) || net 1332 net/core/neighbour.c struct net *net; net 1334 net/core/neighbour.c net = dev_net(dev); net 1335 net/core/neighbour.c ref = lookup_neigh_params(tbl, net, 0); net 1355 net/core/neighbour.c p->net = hold_net(net); net 1412 net/core/neighbour.c tbl->parms.net = &init_net; net 1522 net/core/neighbour.c struct net *net = sock_net(skb->sk); net 1538 net/core/neighbour.c dev = dev_get_by_index(net, ndm->ndm_ifindex); net 1557 net/core/neighbour.c err = pneigh_delete(tbl, net, nla_data(dst_attr), dev); net 1588 net/core/neighbour.c struct net *net = sock_net(skb->sk); net 1605 net/core/neighbour.c dev = dev_get_by_index(net, ndm->ndm_ifindex); net 1634 net/core/neighbour.c pn = pneigh_lookup(tbl, net, dst, dev, 1); net 1857 net/core/neighbour.c struct net *net = sock_net(skb->sk); net 1907 net/core/neighbour.c p = lookup_neigh_params(tbl, net, ifindex); net 1982 net/core/neighbour.c struct net *net = sock_net(skb->sk); net 2003 net/core/neighbour.c if (!net_eq(neigh_parms_net(p), net)) net 2082 net/core/neighbour.c struct net * net = sock_net(skb->sk); net 2095 net/core/neighbour.c if (dev_net(n->dev) != net) net 2190 net/core/neighbour.c struct net *net = seq_file_net(seq); net 2200 net/core/neighbour.c if (!net_eq(dev_net(n->dev), net)) net 2231 net/core/neighbour.c struct net *net = seq_file_net(seq); net 2243 net/core/neighbour.c if (!net_eq(dev_net(n->dev), net)) net 2292 net/core/neighbour.c struct net *net = seq_file_net(seq); net 2300 net/core/neighbour.c while (pn && !net_eq(pneigh_net(pn), net)) net 2315 net/core/neighbour.c struct net *net = seq_file_net(seq); net 2323 net/core/neighbour.c while (pn && !net_eq(pneigh_net(pn), net)) net 2529 net/core/neighbour.c struct net *net = dev_net(n->dev); net 2544 net/core/neighbour.c err = rtnl_notify(skb, net, 0, RTNLGRP_NEIGH, NULL, GFP_ATOMIC); net 2547 net/core/neighbour.c rtnl_set_sk_err(net, RTNLGRP_NEIGH, err); net 39 net/core/net-sysfs.c struct net_device *net = to_net_dev(dev); net 43 net/core/net-sysfs.c if (dev_isalive(net)) net 44 net/core/net-sysfs.c ret = (*format)(net, buf); net 52 net/core/net-sysfs.c static ssize_t format_##field(const struct net_device *net, char *buf) \ net 54 net/core/net-sysfs.c return sprintf(buf, format_string, net->field); \ net 68 net/core/net-sysfs.c struct net_device *net = to_net_dev(dev); net 81 net/core/net-sysfs.c if (dev_isalive(net)) { net 82 net/core/net-sysfs.c if ((ret = (*set)(net, new)) == 0) net 102 net/core/net-sysfs.c struct net_device *net = to_net_dev(dev); net 106 net/core/net-sysfs.c if (dev_isalive(net)) net 107 net/core/net-sysfs.c ret = sysfs_format_mac(buf, net->dev_addr, net->addr_len); net 115 net/core/net-sysfs.c struct net_device *net = to_net_dev(dev); net 116 net/core/net-sysfs.c if (dev_isalive(net)) net 117 net/core/net-sysfs.c return sysfs_format_mac(buf, net->broadcast, net->addr_len); net 175 net/core/net-sysfs.c return dev_set_mtu(net, (int) new_mtu); net 188 net/core/net-sysfs.c return dev_change_flags(net, (unsigned) new_flags); net 201 net/core/net-sysfs.c net->tx_queue_len = new_len; net 476 net/core/net-sysfs.c struct device *dev = &(net->dev); net 485 net/core/net-sysfs.c struct device *dev = &(net->dev); net 486 net/core/net-sysfs.c struct attribute_group **groups = net->sysfs_groups; net 489 net/core/net-sysfs.c dev->platform_data = net; net 493 net/core/net-sysfs.c strlcpy(dev->bus_id, net->name, BUS_ID_SIZE); net 499 net/core/net-sysfs.c if (net->wireless_handlers && net->wireless_handlers->get_wireless_stats) net 522 net/core/net-sysfs.c struct device *device = &(net->dev); net 23 net/core/net_namespace.c struct net init_net; net 38 net/core/net_namespace.c atomic_set(&net->count, 1); net 40 net/core/net_namespace.c atomic_set(&net->use_count, 0); net 51 net/core/net_namespace.c rcu_assign_pointer(net->gen, ng); net 56 net/core/net_namespace.c error = ops->init(net); net 70 net/core/net_namespace.c ops->exit(net); net 82 net/core/net_namespace.c static struct net *net_alloc(void) net 89 net/core/net_namespace.c if (!net) net 93 net/core/net_namespace.c if (unlikely(atomic_read(&net->use_count) != 0)) { net 95 net/core/net_namespace.c atomic_read(&net->use_count)); net 100 net/core/net_namespace.c kmem_cache_free(net_cachep, net); net 103 net/core/net_namespace.c struct net *copy_net_ns(unsigned long flags, struct net *old_net) net 105 net/core/net_namespace.c struct net *new_net = NULL; net 142 net/core/net_namespace.c struct net *net; net 147 net/core/net_namespace.c net = container_of(work, struct net, work); net 153 net/core/net_namespace.c list_del(&net->list); net 159 net/core/net_namespace.c ops->exit(net); net 170 net/core/net_namespace.c net_free(net); net 176 net/core/net_namespace.c INIT_WORK(&net->work, cleanup_net); net 177 net/core/net_namespace.c queue_work(netns_wq, &net->work); net 182 net/core/net_namespace.c struct net *copy_net_ns(unsigned long flags, struct net *old_net) net 194 net/core/net_namespace.c printk(KERN_INFO "net_namespace: %zd bytes\n", sizeof(struct net)); net 196 net/core/net_namespace.c net_cachep = kmem_cache_create("net_namespace", sizeof(struct net), net 226 net/core/net_namespace.c struct net *net, *undo_net; net 231 net/core/net_namespace.c for_each_net(net) { net 232 net/core/net_namespace.c error = ops->init(net); net 244 net/core/net_namespace.c if (undo_net == net) net 255 net/core/net_namespace.c struct net *net; net 259 net/core/net_namespace.c for_each_net(net) net 260 net/core/net_namespace.c ops->exit(net); net 428 net/core/net_namespace.c ng = old_ng = net->gen; net 452 net/core/net_namespace.c rcu_assign_pointer(net->gen, ng); net 281 net/core/rtnetlink.c for_each_netdev(net, dev) { net 292 net/core/rtnetlink.c __rtnl_kill_links(net, ops); net 305 net/core/rtnetlink.c struct net *net; net 307 net/core/rtnetlink.c for_each_net(net) { net 308 net/core/rtnetlink.c __rtnl_kill_links(net, ops); net 439 net/core/rtnetlink.c struct sock *rtnl = net->rtnl; net 453 net/core/rtnetlink.c struct sock *rtnl = net->rtnl; net 461 net/core/rtnetlink.c struct sock *rtnl = net->rtnl; net 472 net/core/rtnetlink.c struct sock *rtnl = net->rtnl; net 686 net/core/rtnetlink.c struct net *net = sock_net(skb->sk); net 692 net/core/rtnetlink.c for_each_netdev(net, dev) { net 728 net/core/rtnetlink.c static struct net *get_net_ns_by_pid(pid_t pid) net 731 net/core/rtnetlink.c struct net *net; net 734 net/core/rtnetlink.c net = ERR_PTR(-ESRCH); net 741 net/core/rtnetlink.c net = get_net(nsproxy->net_ns); net 744 net/core/rtnetlink.c return net; net 769 net/core/rtnetlink.c struct net *net; net 770 net/core/rtnetlink.c net = get_net_ns_by_pid(nla_get_u32(tb[IFLA_NET_NS_PID])); net 771 net/core/rtnetlink.c if (IS_ERR(net)) { net 772 net/core/rtnetlink.c err = PTR_ERR(net); net 775 net/core/rtnetlink.c err = dev_change_net_namespace(dev, net, ifname); net 776 net/core/rtnetlink.c put_net(net); net 912 net/core/rtnetlink.c struct net *net = sock_net(skb->sk); net 931 net/core/rtnetlink.c dev = dev_get_by_index(net, ifm->ifi_index); net 933 net/core/rtnetlink.c dev = dev_get_by_name(net, ifname); net 954 net/core/rtnetlink.c struct net *net = sock_net(skb->sk); net 971 net/core/rtnetlink.c dev = __dev_get_by_index(net, ifm->ifi_index); net 973 net/core/rtnetlink.c dev = __dev_get_by_name(net, ifname); net 1005 net/core/rtnetlink.c dev_net_set(dev, net); net 1033 net/core/rtnetlink.c struct net *net = sock_net(skb->sk); net 1057 net/core/rtnetlink.c dev = __dev_get_by_index(net, ifm->ifi_index); net 1059 net/core/rtnetlink.c dev = __dev_get_by_name(net, ifname); net 1148 net/core/rtnetlink.c dev = rtnl_create_link(net, ifname, ops, tb); net 1165 net/core/rtnetlink.c struct net *net = sock_net(skb->sk); net 1178 net/core/rtnetlink.c dev = dev_get_by_index(net, ifm->ifi_index); net 1198 net/core/rtnetlink.c err = rtnl_unicast(nskb, net, NETLINK_CB(skb).pid); net 1231 net/core/rtnetlink.c struct net *net = dev_net(dev); net 1246 net/core/rtnetlink.c err = rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL, GFP_KERNEL); net 1249 net/core/rtnetlink.c rtnl_set_sk_err(net, RTNLGRP_LINK, err); net 1260 net/core/rtnetlink.c struct net *net = sock_net(skb->sk); net 1297 net/core/rtnetlink.c rtnl = net->rtnl; net 1371 net/core/rtnetlink.c sk = netlink_kernel_create(net, NETLINK_ROUTE, RTNLGRP_MAX, net 1375 net/core/rtnetlink.c net->rtnl = sk; net 1381 net/core/rtnetlink.c netlink_kernel_release(net->rtnl); net 1382 net/core/rtnetlink.c net->rtnl = NULL; net 377 net/core/sock.c struct net *net = sock_net(sk); net 406 net/core/sock.c struct net_device *dev = dev_get_by_name(net, devname); net 953 net/core/sock.c sock_net_set(sk, get_net(net)); net 1948 net/core/sock.c per_cpu_ptr(net->core.inuse, cpu)->val[prot->inuse_idx] += val; net 1958 net/core/sock.c res += per_cpu_ptr(net->core.inuse, cpu)->val[idx]; net 1966 net/core/sock.c net->core.inuse = alloc_percpu(struct prot_inuse); net 1967 net/core/sock.c return net->core.inuse ? 0 : -ENOMEM; net 1972 net/core/sock.c free_percpu(net->core.inuse); net 168 net/core/sysctl_net_core.c net->core.sysctl_somaxconn = SOMAXCONN; net 171 net/core/sysctl_net_core.c if (net != &init_net) { net 176 net/core/sysctl_net_core.c tbl[0].data = &net->core.sysctl_somaxconn; net 179 net/core/sysctl_net_core.c net->core.sysctl_hdr = register_net_sysctl_table(net, net 181 net/core/sysctl_net_core.c if (net->core.sysctl_hdr == NULL) net 197 net/core/sysctl_net_core.c tbl = net->core.sysctl_hdr->ctl_table_arg; net 198 net/core/sysctl_net_core.c unregister_net_sysctl_table(net->core.sysctl_hdr); net 208 net/dccp/ipv4.c struct net *net = dev_net(skb->dev); net 212 net/dccp/ipv4.c ICMP_INC_STATS_BH(net, ICMP_MIB_INERRORS); net 216 net/dccp/ipv4.c sk = inet_lookup(net, &dccp_hashinfo, net 220 net/dccp/ipv4.c ICMP_INC_STATS_BH(net, ICMP_MIB_INERRORS); net 234 net/dccp/ipv4.c NET_INC_STATS_BH(net, LINUX_MIB_LOCKDROPPEDICMPS); net 243 net/dccp/ipv4.c NET_INC_STATS_BH(net, LINUX_MIB_OUTOFWINDOWICMPS); net 290 net/dccp/ipv4.c NET_INC_STATS_BH(net, LINUX_MIB_OUTOFWINDOWICMPS); net 468 net/dccp/ipv4.c if (ip_route_output_flow(net, &rt, &fl, sk, 0)) { net 469 net/dccp/ipv4.c IP_INC_STATS_BH(net, IPSTATS_MIB_OUTNOROUTES); net 510 net/dccp/ipv4.c struct net *net = dev_net(rxskb->dst->dev); net 511 net/dccp/ipv4.c struct sock *ctl_sk = net->dccp.v4_ctl_sk; net 520 net/dccp/ipv4.c dst = dccp_v4_route_skb(net, ctl_sk, rxskb); net 998 net/dccp/ipv4.c err = inet_ctl_sock_create(&net->dccp.v4_ctl_sk, PF_INET, net 999 net/dccp/ipv4.c SOCK_DCCP, IPPROTO_DCCP, net); net 1005 net/dccp/ipv4.c inet_ctl_sock_destroy(net->dccp.v4_ctl_sk); net 97 net/dccp/ipv6.c struct net *net = dev_net(skb->dev); net 101 net/dccp/ipv6.c ICMP6_INC_STATS_BH(net, __in6_dev_get(skb->dev), net 106 net/dccp/ipv6.c sk = inet6_lookup(net, &dccp_hashinfo, net 111 net/dccp/ipv6.c ICMP6_INC_STATS_BH(net, __in6_dev_get(skb->dev), net 123 net/dccp/ipv6.c NET_INC_STATS_BH(net, LINUX_MIB_LOCKDROPPEDICMPS); net 132 net/dccp/ipv6.c NET_INC_STATS_BH(net, LINUX_MIB_OUTOFWINDOWICMPS); net 208 net/dccp/ipv6.c NET_INC_STATS_BH(net, LINUX_MIB_OUTOFWINDOWICMPS); net 316 net/dccp/ipv6.c struct net *net = dev_net(rxskb->dst->dev); net 317 net/dccp/ipv6.c struct sock *ctl_sk = net->dccp.v6_ctl_sk; net 1194 net/dccp/ipv6.c err = inet_ctl_sock_create(&net->dccp.v6_ctl_sk, PF_INET6, net 1195 net/dccp/ipv6.c SOCK_DCCP, IPPROTO_DCCP, net); net 1201 net/dccp/ipv6.c inet_ctl_sock_destroy(net->dccp.v6_ctl_sk); net 477 net/decnet/af_decnet.c struct sock *sk = sk_alloc(net, PF_DECnet, gfp, &dn_proto); net 682 net/decnet/af_decnet.c if (net != &init_net) net 697 net/decnet/af_decnet.c if ((sk = dn_alloc_sock(net, sock, GFP_KERNEL)) == NULL) net 628 net/decnet/dn_dev.c struct net *net = sock_net(skb->sk); net 635 net/decnet/dn_dev.c if (net != &init_net) net 666 net/decnet/dn_dev.c struct net *net = sock_net(skb->sk); net 674 net/decnet/dn_dev.c if (net != &init_net) net 782 net/decnet/dn_dev.c struct net *net = sock_net(skb->sk); net 788 net/decnet/dn_dev.c if (net != &init_net) net 507 net/decnet/dn_fib.c struct net *net = sock_net(skb->sk); net 512 net/decnet/dn_fib.c if (net != &init_net) net 527 net/decnet/dn_fib.c struct net *net = sock_net(skb->sk); net 532 net/decnet/dn_fib.c if (net != &init_net) net 1515 net/decnet/dn_route.c struct net *net = sock_net(in_skb->sk); net 1524 net/decnet/dn_route.c if (net != &init_net) net 1604 net/decnet/dn_route.c struct net *net = sock_net(skb->sk); net 1609 net/decnet/dn_route.c if (net != &init_net) net 466 net/decnet/dn_table.c struct net *net = sock_net(skb->sk); net 473 net/decnet/dn_table.c if (net != &init_net) net 209 net/econet/af_econet.c eo->net = sec->addr.net; net 303 net/econet/af_econet.c addr.net = eo->net; net 312 net/econet/af_econet.c addr.net = saddr->addr.net; net 318 net/econet/af_econet.c dev = net2dev_map[addr.net]; net 531 net/econet/af_econet.c sec->addr.net = eo->net; net 615 net/econet/af_econet.c if (net != &init_net) net 625 net/econet/af_econet.c sk = sk_alloc(net, PF_ECONET, GFP_KERNEL, &econet_proto); net 683 net/econet/af_econet.c net2dev_map[edev->net] = NULL; net 685 net/econet/af_econet.c edev->net = sec->addr.net; net 686 net/econet/af_econet.c net2dev_map[sec->addr.net] = dev; net 699 net/econet/af_econet.c sec->addr.net = edev->net; net 788 net/econet/af_econet.c (opt->net == net || opt->net == 0)) net 812 net/econet/af_econet.c sec->addr.net = net; net 861 net/econet/af_econet.c if ((sk = ec_listening_socket(ah->port, stn, edev->net)) == NULL) net 876 net/econet/af_econet.c if (ec_queue_packet(sk, newskb, stn, edev->net, ah->cb, ah->port)) net 1094 net/econet/af_econet.c if (ec_queue_packet(sk, skb, edev->net, hdr->src_stn, hdr->cb, net 1133 net/econet/af_econet.c net2dev_map[edev->net] = NULL; net 248 net/ipv4/af_inet.c if (net == &init_net) net 332 net/ipv4/af_inet.c if (!inet_netns_ok(net, protocol)) net 344 net/ipv4/af_inet.c sk = sk_alloc(net, PF_INET, GFP_KERNEL, answer_prot); net 799 net/ipv4/af_inet.c struct net *net = sock_net(sk); net 811 net/ipv4/af_inet.c err = ip_rt_ioctl(net, cmd, (void __user *)arg); net 816 net/ipv4/af_inet.c err = arp_ioctl(net, cmd, (void __user *)arg); net 829 net/ipv4/af_inet.c err = devinet_ioctl(net, cmd, (void __user *)arg); net 1263 net/ipv4/af_inet.c sk_change_net(*sk, net); net 1340 net/ipv4/af_inet.c if (snmp_mib_init((void **)net->mib.tcp_statistics, net 1343 net/ipv4/af_inet.c if (snmp_mib_init((void **)net->mib.ip_statistics, net 1346 net/ipv4/af_inet.c if (snmp_mib_init((void **)net->mib.net_statistics, net 1349 net/ipv4/af_inet.c if (snmp_mib_init((void **)net->mib.udp_statistics, net 1352 net/ipv4/af_inet.c if (snmp_mib_init((void **)net->mib.udplite_statistics, net 1355 net/ipv4/af_inet.c if (snmp_mib_init((void **)net->mib.icmp_statistics, net 1358 net/ipv4/af_inet.c if (snmp_mib_init((void **)net->mib.icmpmsg_statistics, net 1362 net/ipv4/af_inet.c tcp_mib_init(net); net 1366 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.icmp_statistics); net 1368 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.udplite_statistics); net 1370 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.udp_statistics); net 1372 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.net_statistics); net 1374 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.ip_statistics); net 1376 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.tcp_statistics); net 1383 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.icmpmsg_statistics); net 1384 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.icmp_statistics); net 1385 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.udplite_statistics); net 1386 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.udp_statistics); net 1387 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.net_statistics); net 1388 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.ip_statistics); net 1389 net/ipv4/af_inet.c snmp_mib_free((void **)net->mib.tcp_statistics); net 424 net/ipv4/arp.c struct net *net = dev_net(dev); net 426 net/ipv4/arp.c if (ip_route_output_key(net, &rt, &fl) < 0) net 429 net/ipv4/arp.c NET_INC_STATS_BH(net, LINUX_MIB_ARPFILTER); net 711 net/ipv4/arp.c struct net *net = dev_net(dev); net 807 net/ipv4/arp.c inet_addr_type(net, tip) == RTN_LOCAL && net 837 net/ipv4/arp.c (arp_fwd_proxy(in_dev, rt) || pneigh_lookup(&arp_tbl, net, &tip, dev, 0))) { net 867 net/ipv4/arp.c inet_addr_type(net, sip) == RTN_UNICAST) net 950 net/ipv4/arp.c IPV4_DEVCONF_ALL(net, PROXY_ARP) = on; net 969 net/ipv4/arp.c dev = dev_getbyhwaddr(net, r->arp_ha.sa_family, net 975 net/ipv4/arp.c if (pneigh_lookup(&arp_tbl, net, &ip, dev, 1) == NULL) net 980 net/ipv4/arp.c return arp_req_set_proxy(net, dev, 1); net 991 net/ipv4/arp.c return arp_req_set_public(net, r, dev); net 1000 net/ipv4/arp.c if ((err = ip_route_output_key(net, &rt, &fl)) != 0) net 1084 net/ipv4/arp.c return pneigh_delete(&arp_tbl, net, &ip, dev); net 1089 net/ipv4/arp.c return arp_req_set_proxy(net, dev, 0); net 1100 net/ipv4/arp.c return arp_req_delete_public(net, r, dev); net 1107 net/ipv4/arp.c if ((err = ip_route_output_key(net, &rt, &fl)) != 0) net 1162 net/ipv4/arp.c if ((dev = __dev_get_by_name(net, r.arp_dev)) == NULL) net 1178 net/ipv4/arp.c err = arp_req_delete(net, &r, dev); net 1181 net/ipv4/arp.c err = arp_req_set(net, &r, dev); net 1381 net/ipv4/arp.c if (!proc_net_fops_create(net, "arp", S_IRUGO, &arp_seq_fops)) net 1388 net/ipv4/arp.c proc_net_remove(net, "arp"); net 85 net/ipv4/devinet.c IPV4_DEVCONF((*net->ipv4.devconf_dflt), attr) net 416 net/ipv4/devinet.c dev = __dev_get_by_index(net, ifindex); net 439 net/ipv4/devinet.c struct net *net = sock_net(skb->sk); net 453 net/ipv4/devinet.c in_dev = inetdev_by_index(net, ifm->ifa_index); net 502 net/ipv4/devinet.c dev = __dev_get_by_index(net, ifm->ifa_index); net 551 net/ipv4/devinet.c struct net *net = sock_net(skb->sk); net 556 net/ipv4/devinet.c ifa = rtm_to_ifaddr(net, nlh); net 617 net/ipv4/devinet.c dev_load(net, ifr.ifr_name); net 658 net/ipv4/devinet.c if ((dev = __dev_get_by_name(net, ifr.ifr_name)) == NULL) net 870 net/ipv4/devinet.c struct net *net = dev_net(dev); net 899 net/ipv4/devinet.c for_each_netdev(net, dev) { net 967 net/ipv4/devinet.c struct net *net; net 972 net/ipv4/devinet.c net = dev_net(in_dev->dev); net 975 net/ipv4/devinet.c for_each_netdev(net, dev) { net 1163 net/ipv4/devinet.c struct net *net = sock_net(skb->sk); net 1172 net/ipv4/devinet.c for_each_netdev(net, dev) { net 1206 net/ipv4/devinet.c struct net *net; net 1208 net/ipv4/devinet.c net = dev_net(ifa->ifa_dev->dev); net 1220 net/ipv4/devinet.c err = rtnl_notify(skb, net, pid, RTNLGRP_IPV4_IFADDR, nlh, GFP_KERNEL); net 1223 net/ipv4/devinet.c rtnl_set_sk_err(net, RTNLGRP_IPV4_IFADDR, err); net 1233 net/ipv4/devinet.c for_each_netdev(net, dev) { net 1238 net/ipv4/devinet.c in_dev->cnf.data[i] = net->ipv4.devconf_dflt->data[i]; net 1247 net/ipv4/devinet.c int on = IPV4_DEVCONF_ALL(net, FORWARDING); net 1249 net/ipv4/devinet.c IPV4_DEVCONF_ALL(net, ACCEPT_REDIRECTS) = !on; net 1250 net/ipv4/devinet.c IPV4_DEVCONF_DFLT(net, FORWARDING) = on; net 1253 net/ipv4/devinet.c for_each_netdev(net, dev) { net 1274 net/ipv4/devinet.c struct net *net = ctl->extra2; net 1279 net/ipv4/devinet.c if (cnf == net->ipv4.devconf_dflt) net 1280 net/ipv4/devinet.c devinet_copy_dflt_conf(net, i); net 1291 net/ipv4/devinet.c struct net *net; net 1327 net/ipv4/devinet.c net = table->extra2; net 1332 net/ipv4/devinet.c if (cnf == net->ipv4.devconf_dflt) net 1333 net/ipv4/devinet.c devinet_copy_dflt_conf(net, i); net 1347 net/ipv4/devinet.c struct net *net = ctl->extra2; net 1349 net/ipv4/devinet.c if (valp != &IPV4_DEVCONF_DFLT(net, FORWARDING)) { net 1351 net/ipv4/devinet.c if (valp == &IPV4_DEVCONF_ALL(net, FORWARDING)) { net 1352 net/ipv4/devinet.c inet_forward_change(net); net 1360 net/ipv4/devinet.c rt_cache_flush(net, 0); net 1374 net/ipv4/devinet.c struct net *net = ctl->extra2; net 1377 net/ipv4/devinet.c rt_cache_flush(net, 0); net 1388 net/ipv4/devinet.c struct net *net = table->extra2; net 1391 net/ipv4/devinet.c rt_cache_flush(net, 0); net 1485 net/ipv4/devinet.c t->devinet_vars[i].extra2 = net; net 1500 net/ipv4/devinet.c t->sysctl_header = register_net_sysctl_table(net, devinet_ctl_path, net 1579 net/ipv4/devinet.c if (net != &init_net) { net 1595 net/ipv4/devinet.c tbl[0].extra2 = net; net 1600 net/ipv4/devinet.c err = __devinet_sysctl_register(net, "all", net 1605 net/ipv4/devinet.c err = __devinet_sysctl_register(net, "default", net 1611 net/ipv4/devinet.c forw_hdr = register_net_sysctl_table(net, net_ipv4_path, tbl); net 1614 net/ipv4/devinet.c net->ipv4.forw_hdr = forw_hdr; net 1617 net/ipv4/devinet.c net->ipv4.devconf_all = all; net 1618 net/ipv4/devinet.c net->ipv4.devconf_dflt = dflt; net 1645 net/ipv4/devinet.c tbl = net->ipv4.forw_hdr->ctl_table_arg; net 1646 net/ipv4/devinet.c unregister_net_sysctl_table(net->ipv4.forw_hdr); net 1647 net/ipv4/devinet.c __devinet_sysctl_unregister(net->ipv4.devconf_dflt); net 1648 net/ipv4/devinet.c __devinet_sysctl_unregister(net->ipv4.devconf_all); net 1651 net/ipv4/devinet.c kfree(net->ipv4.devconf_dflt); net 1652 net/ipv4/devinet.c kfree(net->ipv4.devconf_all); net 63 net/ipv4/fib_frontend.c &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]); net 65 net/ipv4/fib_frontend.c &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]); net 81 net/ipv4/fib_frontend.c tb = fib_get_table(net, id); net 89 net/ipv4/fib_frontend.c hlist_add_head_rcu(&tb->tb_hlist, &net->ipv4.fib_table_hash[h]); net 105 net/ipv4/fib_frontend.c head = &net->ipv4.fib_table_hash[h]; net 127 net/ipv4/fib_frontend.c tb = fib_get_table(net, table); net 141 net/ipv4/fib_frontend.c head = &net->ipv4.fib_table_hash[h]; net 147 net/ipv4/fib_frontend.c rt_cache_flush(net, -1); net 165 net/ipv4/fib_frontend.c local_table = fib_get_table(net, RT_TABLE_LOCAL); net 201 net/ipv4/fib_frontend.c local_table = fib_get_table(net, RT_TABLE_LOCAL); net 215 net/ipv4/fib_frontend.c return __inet_dev_addr_type(net, NULL, addr); net 221 net/ipv4/fib_frontend.c return __inet_dev_addr_type(net, dev, addr); net 244 net/ipv4/fib_frontend.c struct net *net; net 258 net/ipv4/fib_frontend.c net = dev_net(dev); net 259 net/ipv4/fib_frontend.c if (fib_lookup(net, &fl, &res)) net 283 net/ipv4/fib_frontend.c if (fib_lookup(net, &fl, &res) == 0) { net 329 net/ipv4/fib_frontend.c cfg->fc_nlinfo.nl_net = net; net 390 net/ipv4/fib_frontend.c dev = __dev_get_by_name(net, devname); net 413 net/ipv4/fib_frontend.c inet_addr_type(net, addr) == RTN_UNICAST) net 470 net/ipv4/fib_frontend.c err = rtentry_to_fib_config(net, cmd, &rt, &cfg); net 475 net/ipv4/fib_frontend.c tb = fib_get_table(net, cfg.fc_table); net 481 net/ipv4/fib_frontend.c tb = fib_new_table(net, cfg.fc_table); net 535 net/ipv4/fib_frontend.c cfg->fc_nlinfo.nl_net = net; net 583 net/ipv4/fib_frontend.c struct net *net = sock_net(skb->sk); net 588 net/ipv4/fib_frontend.c err = rtm_to_fib_config(net, skb, nlh, &cfg); net 592 net/ipv4/fib_frontend.c tb = fib_get_table(net, cfg.fc_table); net 605 net/ipv4/fib_frontend.c struct net *net = sock_net(skb->sk); net 610 net/ipv4/fib_frontend.c err = rtm_to_fib_config(net, skb, nlh, &cfg); net 614 net/ipv4/fib_frontend.c tb = fib_new_table(net, cfg.fc_table); net 627 net/ipv4/fib_frontend.c struct net *net = sock_net(skb->sk); net 644 net/ipv4/fib_frontend.c head = &net->ipv4.fib_table_hash[h]; net 674 net/ipv4/fib_frontend.c struct net *net = dev_net(ifa->ifa_dev->dev); net 685 net/ipv4/fib_frontend.c .nl_net = net, net 690 net/ipv4/fib_frontend.c tb = fib_new_table(net, RT_TABLE_MAIN); net 692 net/ipv4/fib_frontend.c tb = fib_new_table(net, RT_TABLE_LOCAL); net 851 net/ipv4/fib_frontend.c struct net *net; net 857 net/ipv4/fib_frontend.c net = sock_net(skb->sk); net 869 net/ipv4/fib_frontend.c tb = fib_get_table(net, frn->tb_id_in); net 876 net/ipv4/fib_frontend.c netlink_unicast(net->ipv4.fibnl, skb, pid, MSG_DONTWAIT); net 882 net/ipv4/fib_frontend.c sk = netlink_kernel_create(net, NETLINK_FIB_LOOKUP, 0, net 886 net/ipv4/fib_frontend.c net->ipv4.fibnl = sk; net 892 net/ipv4/fib_frontend.c netlink_kernel_release(net->ipv4.fibnl); net 893 net/ipv4/fib_frontend.c net->ipv4.fibnl = NULL; net 979 net/ipv4/fib_frontend.c net->ipv4.fib_table_hash = kzalloc( net 981 net/ipv4/fib_frontend.c if (net->ipv4.fib_table_hash == NULL) net 985 net/ipv4/fib_frontend.c INIT_HLIST_HEAD(&net->ipv4.fib_table_hash[i]); net 987 net/ipv4/fib_frontend.c err = fib4_rules_init(net); net 993 net/ipv4/fib_frontend.c kfree(net->ipv4.fib_table_hash); net 1002 net/ipv4/fib_frontend.c fib4_rules_exit(net); net 1010 net/ipv4/fib_frontend.c head = &net->ipv4.fib_table_hash[i]; net 1017 net/ipv4/fib_frontend.c kfree(net->ipv4.fib_table_hash); net 1024 net/ipv4/fib_frontend.c error = ip_fib_net_init(net); net 1027 net/ipv4/fib_frontend.c error = nl_fib_lookup_init(net); net 1030 net/ipv4/fib_frontend.c error = fib_proc_init(net); net 1037 net/ipv4/fib_frontend.c nl_fib_lookup_exit(net); net 1039 net/ipv4/fib_frontend.c ip_fib_net_exit(net); net 1045 net/ipv4/fib_frontend.c fib_proc_exit(net); net 1046 net/ipv4/fib_frontend.c nl_fib_lookup_exit(net); net 1047 net/ipv4/fib_frontend.c ip_fib_net_exit(net); net 1066 net/ipv4/fib_hash.c if (!proc_net_fops_create(net, "route", S_IRUGO, &fib_seq_fops)) net 1073 net/ipv4/fib_hash.c proc_net_remove(net, "route"); net 64 net/ipv4/fib_rules.c err = fib_rules_lookup(net->ipv4.rules_ops, flp, 0, &arg); net 126 net/ipv4/fib_rules.c if (fib_get_table(net, id) == NULL) net 127 net/ipv4/fib_rules.c return fib_new_table(net, id); net 140 net/ipv4/fib_rules.c struct net *net = sock_net(skb->sk); net 151 net/ipv4/fib_rules.c table = fib_empty_table(net); net 308 net/ipv4/fib_rules.c ops->fro_net = net; net 315 net/ipv4/fib_rules.c net->ipv4.rules_ops = ops; net 327 net/ipv4/fib_rules.c fib_rules_unregister(net->ipv4.rules_ops); net 328 net/ipv4/fib_rules.c kfree(net->ipv4.rules_ops); net 523 net/ipv4/fib_semantics.c struct net *net; net 525 net/ipv4/fib_semantics.c net = cfg->fc_nlinfo.nl_net; net 538 net/ipv4/fib_semantics.c if (inet_addr_type(net, nh->nh_gw) != RTN_UNICAST) net 540 net/ipv4/fib_semantics.c if ((dev = __dev_get_by_index(net, nh->nh_oif)) == NULL) net 563 net/ipv4/fib_semantics.c if ((err = fib_lookup(net, &fl, &res)) != 0) net 587 net/ipv4/fib_semantics.c in_dev = inetdev_by_index(net, nh->nh_oif); net 691 net/ipv4/fib_semantics.c struct net *net = cfg->fc_nlinfo.nl_net; net 732 net/ipv4/fib_semantics.c fi->fib_net = hold_net(net); net 804 net/ipv4/fib_semantics.c nh->nh_dev = dev_get_by_index(net, fi->fib_nh->nh_oif); net 818 net/ipv4/fib_semantics.c if (inet_addr_type(net, fi->fib_prefsrc) != RTN_LOCAL) net 1050 net/ipv4/fib_semantics.c if (fi->fib_net != net) net 2219 net/ipv4/fib_trie.c struct net *net = (struct net *)seq->private; net 2228 net/ipv4/fib_trie.c struct hlist_head *head = &net->ipv4.fib_table_hash[h]; net 2268 net/ipv4/fib_trie.c struct net *net = seq_file_net(seq); net 2273 net/ipv4/fib_trie.c struct hlist_head *head = &net->ipv4.fib_table_hash[h]; net 2303 net/ipv4/fib_trie.c struct net *net = seq_file_net(seq); net 2326 net/ipv4/fib_trie.c struct hlist_head *head = &net->ipv4.fib_table_hash[h]; net 2636 net/ipv4/fib_trie.c if (!proc_net_fops_create(net, "fib_trie", S_IRUGO, &fib_trie_fops)) net 2639 net/ipv4/fib_trie.c if (!proc_net_fops_create(net, "fib_triestat", S_IRUGO, net 2643 net/ipv4/fib_trie.c if (!proc_net_fops_create(net, "route", S_IRUGO, &fib_route_fops)) net 2649 net/ipv4/fib_trie.c proc_net_remove(net, "fib_triestat"); net 2651 net/ipv4/fib_trie.c proc_net_remove(net, "fib_trie"); net 2658 net/ipv4/fib_trie.c proc_net_remove(net, "fib_trie"); net 2659 net/ipv4/fib_trie.c proc_net_remove(net, "fib_triestat"); net 2660 net/ipv4/fib_trie.c proc_net_remove(net, "route"); net 204 net/ipv4/icmp.c return net->ipv4.icmp_sk[smp_processor_id()]; net 213 net/ipv4/icmp.c sk = icmp_sk(net); net 288 net/ipv4/icmp.c if ((1 << type) & net->ipv4.sysctl_icmp_ratemask) net 289 net/ipv4/icmp.c rc = xrlim_allow(dst, net->ipv4.sysctl_icmp_ratelimit); net 299 net/ipv4/icmp.c ICMPMSGOUT_INC_STATS(net, type); net 300 net/ipv4/icmp.c ICMP_INC_STATS(net, ICMP_MIB_OUTMSGS); net 360 net/ipv4/icmp.c struct net *net = dev_net(rt->u.dst.dev); net 368 net/ipv4/icmp.c sk = icmp_xmit_lock(net); net 390 net/ipv4/icmp.c if (ip_route_output_key(net, &rt, &fl)) net 393 net/ipv4/icmp.c if (icmpv4_xrlim_allow(net, rt, icmp_param->data.icmph.type, net 422 net/ipv4/icmp.c struct net *net; net 427 net/ipv4/icmp.c net = dev_net(rt->u.dst.dev); net 491 net/ipv4/icmp.c sk = icmp_xmit_lock(net); net 504 net/ipv4/icmp.c net->ipv4.sysctl_icmp_errors_use_inbound_ifaddr) net 505 net/ipv4/icmp.c dev = dev_get_by_index(net, rt->fl.iif); net 559 net/ipv4/icmp.c if (__ip_route_output_key(net, &rt, &fl)) net 581 net/ipv4/icmp.c if (inet_addr_type(net, fl.fl4_src) == RTN_LOCAL) net 582 net/ipv4/icmp.c err = __ip_route_output_key(net, &rt2, &fl); net 588 net/ipv4/icmp.c if (ip_route_output_key(net, &rt2, &fl2)) net 622 net/ipv4/icmp.c if (!icmpv4_xrlim_allow(net, rt, type, code)) net 658 net/ipv4/icmp.c struct net *net; net 660 net/ipv4/icmp.c net = dev_net(skb->dst->dev); net 691 net/ipv4/icmp.c info = ip_rt_frag_needed(net, iph, net 729 net/ipv4/icmp.c if (!net->ipv4.sysctl_icmp_ignore_bogus_error_responses && net 730 net/ipv4/icmp.c inet_addr_type(net, iph->daddr) == RTN_BROADCAST) { net 766 net/ipv4/icmp.c ICMP_INC_STATS_BH(net, ICMP_MIB_INERRORS); net 824 net/ipv4/icmp.c struct net *net; net 826 net/ipv4/icmp.c net = dev_net(skb->dst->dev); net 827 net/ipv4/icmp.c if (!net->ipv4.sysctl_icmp_echo_ignore_all) { net 976 net/ipv4/icmp.c struct net *net = dev_net(rt->u.dst.dev); net 997 net/ipv4/icmp.c ICMP_INC_STATS_BH(net, ICMP_MIB_INMSGS); net 1015 net/ipv4/icmp.c ICMPMSGIN_INC_STATS_BH(net, icmph->type); net 1039 net/ipv4/icmp.c net->ipv4.sysctl_icmp_echo_ignore_broadcasts) { net 1056 net/ipv4/icmp.c ICMP_INC_STATS_BH(net, ICMP_MIB_INERRORS); net 1139 net/ipv4/icmp.c inet_ctl_sock_destroy(net->ipv4.icmp_sk[i]); net 1140 net/ipv4/icmp.c kfree(net->ipv4.icmp_sk); net 1141 net/ipv4/icmp.c net->ipv4.icmp_sk = NULL; net 1148 net/ipv4/icmp.c net->ipv4.icmp_sk = net 1150 net/ipv4/icmp.c if (net->ipv4.icmp_sk == NULL) net 1157 net/ipv4/icmp.c SOCK_RAW, IPPROTO_ICMP, net); net 1161 net/ipv4/icmp.c net->ipv4.icmp_sk[i] = sk; net 1173 net/ipv4/icmp.c net->ipv4.sysctl_icmp_echo_ignore_all = 0; net 1174 net/ipv4/icmp.c net->ipv4.sysctl_icmp_echo_ignore_broadcasts = 1; net 1177 net/ipv4/icmp.c net->ipv4.sysctl_icmp_ignore_bogus_error_responses = 1; net 1191 net/ipv4/icmp.c net->ipv4.sysctl_icmp_ratelimit = 1 * HZ; net 1192 net/ipv4/icmp.c net->ipv4.sysctl_icmp_ratemask = 0x1818; net 1193 net/ipv4/icmp.c net->ipv4.sysctl_icmp_errors_use_inbound_ifaddr = 0; net 1199 net/ipv4/icmp.c inet_ctl_sock_destroy(net->ipv4.icmp_sk[i]); net 1200 net/ipv4/icmp.c kfree(net->ipv4.icmp_sk); net 292 net/ipv4/igmp.c struct net *net = dev_net(dev); net 303 net/ipv4/igmp.c if (ip_route_output_key(net, &rt, &fl)) { net 633 net/ipv4/igmp.c struct net *net = dev_net(dev); net 648 net/ipv4/igmp.c if (ip_route_output_key(net, &rt, &fl)) net 1394 net/ipv4/igmp.c idev = inetdev_by_index(net, imr->imr_ifindex); net 1400 net/ipv4/igmp.c dev = ip_dev_find(net, imr->imr_address.s_addr); net 1406 net/ipv4/igmp.c if (!dev && !ip_route_output_key(net, &rt, &fl)) { net 1744 net/ipv4/igmp.c struct net *net = sock_net(sk); net 1753 net/ipv4/igmp.c in_dev = ip_mc_find_dev(net, imr); net 1815 net/ipv4/igmp.c struct net *net = sock_net(sk); net 1821 net/ipv4/igmp.c in_dev = ip_mc_find_dev(net, imr); net 1859 net/ipv4/igmp.c struct net *net = sock_net(sk); net 1871 net/ipv4/igmp.c in_dev = ip_mc_find_dev(net, &imr); net 1991 net/ipv4/igmp.c struct net *net = sock_net(sk); net 2005 net/ipv4/igmp.c in_dev = ip_mc_find_dev(net, &imr); net 2076 net/ipv4/igmp.c struct net *net = sock_net(sk); net 2086 net/ipv4/igmp.c in_dev = ip_mc_find_dev(net, &imr); net 2223 net/ipv4/igmp.c struct net *net = sock_net(sk); net 2233 net/ipv4/igmp.c in_dev = inetdev_by_index(net, iml->multi.imr_ifindex); net 97 net/ipv4/inet_connection_sock.c struct net *net = sock_net(sk); net 108 net/ipv4/inet_connection_sock.c head = &hashinfo->bhash[inet_bhashfn(net, rover, net 112 net/ipv4/inet_connection_sock.c if (tb->ib_net == net && tb->port == rover) net 136 net/ipv4/inet_connection_sock.c head = &hashinfo->bhash[inet_bhashfn(net, snum, net 140 net/ipv4/inet_connection_sock.c if (tb->ib_net == net && tb->port == snum) net 159 net/ipv4/inet_connection_sock.c net, head, snum)) == NULL) net 344 net/ipv4/inet_connection_sock.c struct net *net = sock_net(sk); net 347 net/ipv4/inet_connection_sock.c if (ip_route_output_flow(net, &rt, &fl, sk, 0)) { net 348 net/ipv4/inet_connection_sock.c IP_INC_STATS_BH(net, IPSTATS_MIB_OUTNOROUTES); net 353 net/ipv4/inet_connection_sock.c IP_INC_STATS_BH(net, IPSTATS_MIB_OUTNOROUTES); net 101 net/ipv4/inet_fragment.c fq->net->nqueues--; net 142 net/ipv4/inet_fragment.c nf = q->net; net 216 net/ipv4/inet_fragment.c if (qp->net == nf && f->match(qp, arg)) { net 251 net/ipv4/inet_fragment.c q->net = nf; net 275 net/ipv4/inet_fragment.c if (q->net == nf && f->match(q, key)) { net 38 net/ipv4/inet_hashtables.c tb->ib_net = hold_net(net); net 161 net/ipv4/inet_hashtables.c if (net_eq(sock_net(sk), net) && inet->num == hnum && net 197 net/ipv4/inet_hashtables.c head = &hashinfo->listening_hash[inet_lhashfn(net, hnum)]; net 204 net/ipv4/inet_hashtables.c !sk->sk_bound_dev_if && net_eq(sock_net(sk), net)) net 206 net/ipv4/inet_hashtables.c sk = inet_lookup_listener_slow(net, head, daddr, hnum, dif); net 230 net/ipv4/inet_hashtables.c unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport); net 237 net/ipv4/inet_hashtables.c if (INET_MATCH(sk, net, hash, acookie, net 244 net/ipv4/inet_hashtables.c if (INET_TW_MATCH(sk, net, hash, acookie, net 270 net/ipv4/inet_hashtables.c struct net *net = sock_net(sk); net 271 net/ipv4/inet_hashtables.c unsigned int hash = inet_ehashfn(net, daddr, lport, saddr, inet->dport); net 285 net/ipv4/inet_hashtables.c if (INET_TW_MATCH(sk2, net, hash, acookie, net 297 net/ipv4/inet_hashtables.c if (INET_MATCH(sk2, net, hash, acookie, net 315 net/ipv4/inet_hashtables.c NET_INC_STATS_BH(net, LINUX_MIB_TIMEWAITRECYCLED); net 319 net/ipv4/inet_hashtables.c NET_INC_STATS_BH(net, LINUX_MIB_TIMEWAITRECYCLED); net 428 net/ipv4/inet_hashtables.c struct net *net = sock_net(sk); net 443 net/ipv4/inet_hashtables.c head = &hinfo->bhash[inet_bhashfn(net, port, net 452 net/ipv4/inet_hashtables.c if (tb->ib_net == net && tb->port == port) { net 464 net/ipv4/inet_hashtables.c net, head, port); net 499 net/ipv4/inet_hashtables.c head = &hinfo->bhash[inet_bhashfn(net, snum, hinfo->bhash_size)]; net 432 net/ipv4/inet_timewait_sock.c if (!net_eq(twsk_net(tw), net) || net 79 net/ipv4/ip_fragment.c return net->ipv4.frags.nqueues; net 84 net/ipv4/ip_fragment.c return atomic_read(&net->ipv4.frags.mem); net 179 net/ipv4/ip_fragment.c evicted = inet_frag_evictor(&net->ipv4.frags, &ip4_frags); net 181 net/ipv4/ip_fragment.c IP_ADD_STATS_BH(net, IPSTATS_MIB_REASMFAILS, evicted); net 190 net/ipv4/ip_fragment.c struct net *net; net 193 net/ipv4/ip_fragment.c net = container_of(qp->q.net, struct net, ipv4.frags); net 202 net/ipv4/ip_fragment.c IP_INC_STATS_BH(net, IPSTATS_MIB_REASMTIMEOUT); net 203 net/ipv4/ip_fragment.c IP_INC_STATS_BH(net, IPSTATS_MIB_REASMFAILS); net 209 net/ipv4/ip_fragment.c if ((head->dev = dev_get_by_index(net, qp->iif)) != NULL) { net 234 net/ipv4/ip_fragment.c q = inet_frag_find(&net->ipv4.frags, &ip4_frags, &arg, hash); net 264 net/ipv4/ip_fragment.c struct net *net; net 266 net/ipv4/ip_fragment.c net = container_of(qp->q.net, struct net, ipv4.frags); net 267 net/ipv4/ip_fragment.c IP_INC_STATS_BH(net, IPSTATS_MIB_REASMFAILS); net 277 net/ipv4/ip_fragment.c if (!mod_timer(&qp->q.timer, jiffies + qp->q.net->timeout)) { net 285 net/ipv4/ip_fragment.c frag_kfree_skb(qp->q.net, fp, NULL); net 422 net/ipv4/ip_fragment.c frag_kfree_skb(qp->q.net, free_it, NULL); net 442 net/ipv4/ip_fragment.c atomic_add(skb->truesize, &qp->q.net->mem); net 451 net/ipv4/ip_fragment.c list_move_tail(&qp->q.lru_list, &qp->q.net->lru_list); net 526 net/ipv4/ip_fragment.c atomic_add(clone->truesize, &qp->q.net->mem); net 531 net/ipv4/ip_fragment.c atomic_sub(head->truesize, &qp->q.net->mem); net 541 net/ipv4/ip_fragment.c atomic_sub(fp->truesize, &qp->q.net->mem); net 574 net/ipv4/ip_fragment.c struct net *net; net 576 net/ipv4/ip_fragment.c net = skb->dev ? dev_net(skb->dev) : dev_net(skb->dst->dev); net 577 net/ipv4/ip_fragment.c IP_INC_STATS_BH(net, IPSTATS_MIB_REASMREQDS); net 580 net/ipv4/ip_fragment.c if (atomic_read(&net->ipv4.frags.mem) > net->ipv4.frags.high_thresh) net 581 net/ipv4/ip_fragment.c ip_evictor(net); net 584 net/ipv4/ip_fragment.c if ((qp = ip_find(net, ip_hdr(skb), user)) != NULL) { net 596 net/ipv4/ip_fragment.c IP_INC_STATS_BH(net, IPSTATS_MIB_REASMFAILS); net 660 net/ipv4/ip_fragment.c if (net != &init_net) { net 665 net/ipv4/ip_fragment.c table[0].data = &net->ipv4.frags.high_thresh; net 666 net/ipv4/ip_fragment.c table[1].data = &net->ipv4.frags.low_thresh; net 667 net/ipv4/ip_fragment.c table[2].data = &net->ipv4.frags.timeout; net 670 net/ipv4/ip_fragment.c hdr = register_net_sysctl_table(net, net_ipv4_ctl_path, table); net 674 net/ipv4/ip_fragment.c net->ipv4.frags_hdr = hdr; net 678 net/ipv4/ip_fragment.c if (net != &init_net) net 688 net/ipv4/ip_fragment.c table = net->ipv4.frags_hdr->ctl_table_arg; net 689 net/ipv4/ip_fragment.c unregister_net_sysctl_table(net->ipv4.frags_hdr); net 720 net/ipv4/ip_fragment.c net->ipv4.frags.high_thresh = 256 * 1024; net 721 net/ipv4/ip_fragment.c net->ipv4.frags.low_thresh = 192 * 1024; net 727 net/ipv4/ip_fragment.c net->ipv4.frags.timeout = IP_FRAG_TIME; net 729 net/ipv4/ip_fragment.c inet_frags_init_net(&net->ipv4.frags); net 731 net/ipv4/ip_fragment.c return ip4_frags_ns_ctl_register(net); net 736 net/ipv4/ip_fragment.c ip4_frags_ns_ctl_unregister(net); net 737 net/ipv4/ip_fragment.c inet_frags_exit_net(&net->ipv4.frags, &ip4_frags); net 177 net/ipv4/ip_gre.c struct ipgre_net *ign = net_generic(net, ipgre_net_id); net 290 net/ipv4/ip_gre.c struct ipgre_net *ign = net_generic(net, ipgre_net_id); net 308 net/ipv4/ip_gre.c struct ipgre_net *ign = net_generic(net, ipgre_net_id); net 310 net/ipv4/ip_gre.c t = ipgre_tunnel_find(net, parms, ARPHRD_IPGRE); net 323 net/ipv4/ip_gre.c dev_net_set(dev, net); net 350 net/ipv4/ip_gre.c struct net *net = dev_net(dev); net 351 net/ipv4/ip_gre.c struct ipgre_net *ign = net_generic(net, ipgre_net_id); net 913 net/ipv4/ip_gre.c struct net *net = dev_net(dev); net 914 net/ipv4/ip_gre.c struct ipgre_net *ign = net_generic(net, ipgre_net_id); net 924 net/ipv4/ip_gre.c t = ipgre_tunnel_locate(net, &p, 0); net 956 net/ipv4/ip_gre.c t = ipgre_tunnel_locate(net, &p, cmd == SIOCADDTUNNEL); net 1018 net/ipv4/ip_gre.c if ((t = ipgre_tunnel_locate(net, &p, 0)) == NULL) net 1257 net/ipv4/ip_gre.c err = net_assign_generic(net, ipgre_net_id, ign); net 1269 net/ipv4/ip_gre.c dev_net_set(ign->fb_tunnel_dev, net); net 1291 net/ipv4/ip_gre.c ign = net_generic(net, ipgre_net_id); net 1419 net/ipv4/ip_gre.c struct net *net = dev_net(dev); net 1420 net/ipv4/ip_gre.c struct ipgre_net *ign = net_generic(net, ipgre_net_id); net 1427 net/ipv4/ip_gre.c if (ipgre_tunnel_find(net, &nt->parms, dev->type)) net 1452 net/ipv4/ip_gre.c struct net *net = dev_net(dev); net 1453 net/ipv4/ip_gre.c struct ipgre_net *ign = net_generic(net, ipgre_net_id); net 1463 net/ipv4/ip_gre.c t = ipgre_tunnel_locate(net, &p, 0); net 194 net/ipv4/ip_input.c struct net *net = dev_net(skb->dev); net 212 net/ipv4/ip_input.c if (ipprot != NULL && (net == &init_net || ipprot->netns_ok)) { net 227 net/ipv4/ip_input.c IP_INC_STATS_BH(net, IPSTATS_MIB_INDELIVERS); net 231 net/ipv4/ip_input.c IP_INC_STATS_BH(net, IPSTATS_MIB_INUNKNOWNPROTOS); net 236 net/ipv4/ip_input.c IP_INC_STATS_BH(net, IPSTATS_MIB_INDELIVERS); net 391 net/ipv4/ip_options.c if (inet_addr_type(net, addr) == RTN_UNICAST) net 514 net/ipv4/ip_options.c if (optlen && ip_options_compile(net, opt, NULL)) { net 534 net/ipv4/ip_options.c return ip_options_get_finish(net, optp, opt, optlen); net 546 net/ipv4/ip_options.c return ip_options_get_finish(net, optp, opt, optlen); net 1215 net/ipv4/ip_output.c struct net *net = sock_net(sk); net 1285 net/ipv4/ip_output.c icmp_out_count(net, ((struct icmphdr *) net 1302 net/ipv4/ip_output.c IP_INC_STATS(net, IPSTATS_MIB_OUTDISCARDS); net 178 net/ipv4/ip_sockglue.c err = ip_options_get(net, &ipc->opt, CMSG_DATA(cmsg), err < 40 ? err : 40); net 145 net/ipv4/ipip.c struct ipip_net *ipn = net_generic(net, ipip_net_id); net 222 net/ipv4/ipip.c struct ipip_net *ipn = net_generic(net, ipip_net_id); net 240 net/ipv4/ipip.c dev_net_set(dev, net); net 265 net/ipv4/ipip.c struct net *net = dev_net(dev); net 266 net/ipv4/ipip.c struct ipip_net *ipn = net_generic(net, ipip_net_id); net 577 net/ipv4/ipip.c struct net *net = dev_net(dev); net 578 net/ipv4/ipip.c struct ipip_net *ipn = net_generic(net, ipip_net_id); net 588 net/ipv4/ipip.c t = ipip_tunnel_locate(net, &p, 0); net 614 net/ipv4/ipip.c t = ipip_tunnel_locate(net, &p, cmd == SIOCADDTUNNEL); net 667 net/ipv4/ipip.c if ((t = ipip_tunnel_locate(net, &p, 0)) == NULL) net 779 net/ipv4/ipip.c err = net_assign_generic(net, ipip_net_id, ipn); net 797 net/ipv4/ipip.c dev_net_set(ipn->fb_tunnel_dev, net); net 818 net/ipv4/ipip.c ipn = net_generic(net, ipip_net_id); net 15 net/ipv4/netfilter.c struct net *net = dev_net(skb->dst->dev); net 23 net/ipv4/netfilter.c type = inet_addr_type(net, iph->saddr); net 40 net/ipv4/netfilter.c if (ip_route_output_key(net, &rt, &fl) != 0) net 50 net/ipv4/netfilter.c if (ip_route_output_key(net, &rt, &fl) != 0) net 879 net/ipv4/netfilter/arp_tables.c t = try_then_request_module(xt_find_table_lock(net, NFPROTO_ARP, name), net 936 net/ipv4/netfilter/arp_tables.c t = xt_find_table_lock(net, NFPROTO_ARP, get.name); net 978 net/ipv4/netfilter/arp_tables.c t = try_then_request_module(xt_find_table_lock(net, NFPROTO_ARP, name), net 1065 net/ipv4/netfilter/arp_tables.c ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, net 1145 net/ipv4/netfilter/arp_tables.c t = xt_find_table_lock(net, NFPROTO_ARP, name); net 1485 net/ipv4/netfilter/arp_tables.c ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, net 1619 net/ipv4/netfilter/arp_tables.c t = xt_find_table_lock(net, NFPROTO_ARP, get.name); net 1764 net/ipv4/netfilter/arp_tables.c new_table = xt_register_table(net, table, &bootstrap, newinfo); net 1832 net/ipv4/netfilter/arp_tables.c return xt_proto_init(net, NFPROTO_ARP); net 1837 net/ipv4/netfilter/arp_tables.c xt_proto_fini(net, NFPROTO_ARP); net 115 net/ipv4/netfilter/arptable_filter.c net->ipv4.arptable_filter = net 116 net/ipv4/netfilter/arptable_filter.c arpt_register_table(net, &packet_filter, &initial_table.repl); net 117 net/ipv4/netfilter/arptable_filter.c if (IS_ERR(net->ipv4.arptable_filter)) net 118 net/ipv4/netfilter/arptable_filter.c return PTR_ERR(net->ipv4.arptable_filter); net 124 net/ipv4/netfilter/arptable_filter.c arpt_unregister_table(net->ipv4.arptable_filter); net 502 net/ipv4/netfilter/ip_queue.c if ((n->net == &init_net) && (n->pid == peer_pid)) net 1123 net/ipv4/netfilter/ip_tables.c t = try_then_request_module(xt_find_table_lock(net, AF_INET, name), net 1181 net/ipv4/netfilter/ip_tables.c t = xt_find_table_lock(net, AF_INET, get.name); net 1219 net/ipv4/netfilter/ip_tables.c t = try_then_request_module(xt_find_table_lock(net, AF_INET, name), net 1306 net/ipv4/netfilter/ip_tables.c ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, net 1394 net/ipv4/netfilter/ip_tables.c t = xt_find_table_lock(net, AF_INET, name); net 1843 net/ipv4/netfilter/ip_tables.c ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, net 1942 net/ipv4/netfilter/ip_tables.c t = xt_find_table_lock(net, AF_INET, get.name); net 2094 net/ipv4/netfilter/ip_tables.c new_table = xt_register_table(net, table, &bootstrap, newinfo); net 2218 net/ipv4/netfilter/ip_tables.c return xt_proto_init(net, AF_INET); net 2223 net/ipv4/netfilter/ip_tables.c xt_proto_fini(net, AF_INET); net 117 net/ipv4/netfilter/ipt_MASQUERADE.c struct net *net = dev_net(dev); net 125 net/ipv4/netfilter/ipt_MASQUERADE.c nf_ct_iterate_cleanup(net, device_cmp, net 138 net/ipv4/netfilter/iptable_filter.c net->ipv4.iptable_filter = net 139 net/ipv4/netfilter/iptable_filter.c ipt_register_table(net, &packet_filter, &initial_table.repl); net 140 net/ipv4/netfilter/iptable_filter.c if (IS_ERR(net->ipv4.iptable_filter)) net 141 net/ipv4/netfilter/iptable_filter.c return PTR_ERR(net->ipv4.iptable_filter); net 147 net/ipv4/netfilter/iptable_filter.c ipt_unregister_table(net->ipv4.iptable_filter); net 207 net/ipv4/netfilter/iptable_mangle.c net->ipv4.iptable_mangle = net 208 net/ipv4/netfilter/iptable_mangle.c ipt_register_table(net, &packet_mangler, &initial_table.repl); net 209 net/ipv4/netfilter/iptable_mangle.c if (IS_ERR(net->ipv4.iptable_mangle)) net 210 net/ipv4/netfilter/iptable_mangle.c return PTR_ERR(net->ipv4.iptable_mangle); net 216 net/ipv4/netfilter/iptable_mangle.c ipt_unregister_table(net->ipv4.iptable_mangle); net 99 net/ipv4/netfilter/iptable_raw.c net->ipv4.iptable_raw = net 100 net/ipv4/netfilter/iptable_raw.c ipt_register_table(net, &packet_raw, &initial_table.repl); net 101 net/ipv4/netfilter/iptable_raw.c if (IS_ERR(net->ipv4.iptable_raw)) net 102 net/ipv4/netfilter/iptable_raw.c return PTR_ERR(net->ipv4.iptable_raw); net 108 net/ipv4/netfilter/iptable_raw.c ipt_unregister_table(net->ipv4.iptable_raw); net 135 net/ipv4/netfilter/iptable_security.c net->ipv4.iptable_security = net 136 net/ipv4/netfilter/iptable_security.c ipt_register_table(net, &security_table, &initial_table.repl); net 138 net/ipv4/netfilter/iptable_security.c if (IS_ERR(net->ipv4.iptable_security)) net 139 net/ipv4/netfilter/iptable_security.c return PTR_ERR(net->ipv4.iptable_security); net 146 net/ipv4/netfilter/iptable_security.c ipt_unregister_table(net->ipv4.iptable_security); net 30 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c struct net *net = seq_file_net(seq); net 37 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c n = rcu_dereference(net->ct.hash[st->bucket].first); net 47 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c struct net *net = seq_file_net(seq); net 54 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c head = rcu_dereference(net->ct.hash[st->bucket].first); net 184 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c struct net *net = seq_file_net(seq); net 189 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c n = rcu_dereference(net->ct.expect_hash[st->bucket].first); net 199 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c struct net *net = seq_file_net(seq); net 206 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c head = rcu_dereference(net->ct.expect_hash[st->bucket].first); net 288 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c struct net *net = seq_file_net(seq); net 298 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c return per_cpu_ptr(net->ct.stat, cpu); net 306 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c struct net *net = seq_file_net(seq); net 313 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c return per_cpu_ptr(net->ct.stat, cpu); net 325 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c struct net *net = seq_file_net(seq); net 326 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c unsigned int nr_conntracks = atomic_read(&net->ct.count); net 382 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c proc = proc_net_fops_create(net, "ip_conntrack", 0440, &ct_file_ops); net 386 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c proc_exp = proc_net_fops_create(net, "ip_conntrack_expect", 0440, net 392 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c net->proc_net_stat, &ct_cpu_seq_fops); net 398 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c proc_net_remove(net, "ip_conntrack_expect"); net 400 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c proc_net_remove(net, "ip_conntrack"); net 407 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c remove_proc_entry("ip_conntrack", net->proc_net_stat); net 408 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c proc_net_remove(net, "ip_conntrack_expect"); net 409 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c proc_net_remove(net, "ip_conntrack"); net 158 net/ipv4/netfilter/nf_conntrack_proto_icmp.c h = nf_conntrack_find_get(net, &innertuple); net 184 net/ipv4/netfilter/nf_conntrack_proto_icmp.c if (LOG_INVALID(net, IPPROTO_ICMP)) net 191 net/ipv4/netfilter/nf_conntrack_proto_icmp.c if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && net 193 net/ipv4/netfilter/nf_conntrack_proto_icmp.c if (LOG_INVALID(net, IPPROTO_ICMP)) net 206 net/ipv4/netfilter/nf_conntrack_proto_icmp.c if (LOG_INVALID(net, IPPROTO_ICMP)) net 220 net/ipv4/netfilter/nf_conntrack_proto_icmp.c return icmp_error_message(net, skb, ctinfo, hooknum); net 156 net/ipv4/netfilter/nf_nat_core.c hlist_for_each_entry_rcu(nat, n, &net->ipv4.nat_bysource[h], bysource) { net 232 net/ipv4/netfilter/nf_nat_core.c struct net *net = nf_ct_net(ct); net 244 net/ipv4/netfilter/nf_nat_core.c if (find_appropriate_src(net, orig_tuple, tuple, range)) { net 285 net/ipv4/netfilter/nf_nat_core.c struct net *net = nf_ct_net(ct); net 338 net/ipv4/netfilter/nf_nat_core.c &net->ipv4.nat_bysource[srchash]); net 589 net/ipv4/netfilter/nf_nat_core.c net->ipv4.nat_bysource = nf_ct_alloc_hashtable(&nf_nat_htable_size, net 590 net/ipv4/netfilter/nf_nat_core.c &net->ipv4.nat_vmalloced); net 591 net/ipv4/netfilter/nf_nat_core.c if (!net->ipv4.nat_bysource) net 610 net/ipv4/netfilter/nf_nat_core.c nf_ct_iterate_cleanup(net, &clean_nat, NULL); net 612 net/ipv4/netfilter/nf_nat_core.c nf_ct_free_hashtable(net->ipv4.nat_bysource, net->ipv4.nat_vmalloced, net 43 net/ipv4/netfilter/nf_nat_pptp.c struct net *net = nf_ct_net(ct); net 77 net/ipv4/netfilter/nf_nat_pptp.c other_exp = nf_ct_expect_find_get(net, &t); net 96 net/ipv4/netfilter/nf_nat_rule.c if (ip_route_output_key(net, &rt, &fl) != 0) net 180 net/ipv4/netfilter/nf_nat_rule.c struct net *net = nf_ct_net(ct); net 183 net/ipv4/netfilter/nf_nat_rule.c ret = ipt_do_table(skb, hooknum, in, out, net->ipv4.nat_table); net 215 net/ipv4/netfilter/nf_nat_rule.c net->ipv4.nat_table = ipt_register_table(net, &nat_table, net 217 net/ipv4/netfilter/nf_nat_rule.c if (IS_ERR(net->ipv4.nat_table)) net 218 net/ipv4/netfilter/nf_nat_rule.c return PTR_ERR(net->ipv4.nat_table); net 224 net/ipv4/netfilter/nf_nat_rule.c ipt_unregister_table(net->ipv4.nat_table); net 52 net/ipv4/proc.c struct net *net = seq->private; net 56 net/ipv4/proc.c sock_prot_inuse_get(net, &tcp_prot), net 61 net/ipv4/proc.c sock_prot_inuse_get(net, &udp_prot), net 64 net/ipv4/proc.c sock_prot_inuse_get(net, &udplite_prot)); net 66 net/ipv4/proc.c sock_prot_inuse_get(net, &raw_prot)); net 68 net/ipv4/proc.c ip_frag_nqueues(net), ip_frag_mem(net)); net 246 net/ipv4/proc.c struct net *net = seq->private; net 251 net/ipv4/proc.c if (snmp_fold_field((void **) net->mib.icmpmsg_statistics, i)) net 263 net/ipv4/proc.c snmp_fold_field((void **) net->mib.icmpmsg_statistics, net 275 net/ipv4/proc.c net->mib.icmpmsg_statistics, out[j])); net 284 net/ipv4/proc.c struct net *net = seq->private; net 293 net/ipv4/proc.c snmp_fold_field((void **) net->mib.icmp_statistics, ICMP_MIB_INMSGS), net 294 net/ipv4/proc.c snmp_fold_field((void **) net->mib.icmp_statistics, ICMP_MIB_INERRORS)); net 297 net/ipv4/proc.c snmp_fold_field((void **) net->mib.icmpmsg_statistics, net 300 net/ipv4/proc.c snmp_fold_field((void **) net->mib.icmp_statistics, ICMP_MIB_OUTMSGS), net 301 net/ipv4/proc.c snmp_fold_field((void **) net->mib.icmp_statistics, ICMP_MIB_OUTERRORS)); net 304 net/ipv4/proc.c snmp_fold_field((void **) net->mib.icmpmsg_statistics, net 314 net/ipv4/proc.c struct net *net = seq->private; net 322 net/ipv4/proc.c IPV4_DEVCONF_ALL(net, FORWARDING) ? 1 : 2, net 327 net/ipv4/proc.c snmp_fold_field((void **)net->mib.ip_statistics, net 342 net/ipv4/proc.c snmp_fold_field((void **)net->mib.tcp_statistics, net 346 net/ipv4/proc.c snmp_fold_field((void **)net->mib.tcp_statistics, net 357 net/ipv4/proc.c snmp_fold_field((void **)net->mib.udp_statistics, net 368 net/ipv4/proc.c snmp_fold_field((void **)net->mib.udplite_statistics, net 396 net/ipv4/proc.c struct net *net = seq->private; net 405 net/ipv4/proc.c snmp_fold_field((void **)net->mib.net_statistics, net 415 net/ipv4/proc.c snmp_fold_field((void **)net->mib.ip_statistics, net 437 net/ipv4/proc.c if (!proc_net_fops_create(net, "sockstat", S_IRUGO, &sockstat_seq_fops)) net 439 net/ipv4/proc.c if (!proc_net_fops_create(net, "netstat", S_IRUGO, &netstat_seq_fops)) net 441 net/ipv4/proc.c if (!proc_net_fops_create(net, "snmp", S_IRUGO, &snmp_seq_fops)) net 447 net/ipv4/proc.c proc_net_remove(net, "netstat"); net 449 net/ipv4/proc.c proc_net_remove(net, "sockstat"); net 456 net/ipv4/proc.c proc_net_remove(net, "snmp"); net 457 net/ipv4/proc.c proc_net_remove(net, "netstat"); net 458 net/ipv4/proc.c proc_net_remove(net, "sockstat"); net 118 net/ipv4/raw.c if (net_eq(sock_net(sk), net) && inet->num == num && net 162 net/ipv4/raw.c struct net *net; net 169 net/ipv4/raw.c net = dev_net(skb->dev); net 170 net/ipv4/raw.c sk = __raw_v4_lookup(net, __sk_head(head), iph->protocol, net 183 net/ipv4/raw.c sk = __raw_v4_lookup(net, sk_next(sk), iph->protocol, net 269 net/ipv4/raw.c struct net *net; net 277 net/ipv4/raw.c net = dev_net(skb->dev); net 279 net/ipv4/raw.c while ((raw_sk = __raw_v4_lookup(net, raw_sk, protocol, net 323 net/ipv4/raw.c struct net *net = sock_net(sk); net 372 net/ipv4/raw.c icmp_out_count(net, ((struct icmphdr *) net 388 net/ipv4/raw.c IP_INC_STATS(net, IPSTATS_MIB_OUTDISCARDS); net 992 net/ipv4/raw.c if (!proc_net_fops_create(net, "raw", S_IRUGO, &raw_seq_fops)) net 1000 net/ipv4/raw.c proc_net_remove(net, "raw"); net 269 net/ipv4/route.c return atomic_read(&net->ipv4.rt_genid); net 557 net/ipv4/route.c pde = proc_net_fops_create(net, "rt_cache", S_IRUGO, net 563 net/ipv4/route.c net->proc_net_stat, &rt_cpu_seq_fops); net 568 net/ipv4/route.c pde = create_proc_read_entry("rt_acct", 0, net->proc_net, net 577 net/ipv4/route.c remove_proc_entry("rt_cache", net->proc_net_stat); net 580 net/ipv4/route.c remove_proc_entry("rt_cache", net->proc_net); net 587 net/ipv4/route.c remove_proc_entry("rt_cache", net->proc_net_stat); net 588 net/ipv4/route.c remove_proc_entry("rt_cache", net->proc_net); net 589 net/ipv4/route.c remove_proc_entry("rt_acct", net->proc_net); net 830 net/ipv4/route.c atomic_add(shuffle + 1U, &net->ipv4.rt_genid); net 839 net/ipv4/route.c rt_cache_invalidate(net); net 849 net/ipv4/route.c struct net *net = (struct net *)__net; net 850 net/ipv4/route.c rt_cache_invalidate(net); net 851 net/ipv4/route.c mod_timer(&net->ipv4.rt_secret_timer, jiffies + ip_rt_secret_interval); net 1204 net/ipv4/route.c struct net *net; net 1209 net/ipv4/route.c net = dev_net(dev); net 1221 net/ipv4/route.c if (inet_addr_type(net, new_gw) != RTN_UNICAST) net 1228 net/ipv4/route.c rt_genid(net)); net 1241 net/ipv4/route.c !net_eq(dev_net(rth->u.dst.dev), net)) { net 1279 net/ipv4/route.c rt->rt_genid = rt_genid(net); net 1495 net/ipv4/route.c rt_genid(net)); net 1509 net/ipv4/route.c !net_eq(dev_net(rth->u.dst.dev), net) || net 1956 net/ipv4/route.c struct net * net = dev_net(dev); net 1987 net/ipv4/route.c if ((err = fib_lookup(net, &fl, &res)) != 0) { net 2002 net/ipv4/route.c net->loopback_dev->ifindex, net 2048 net/ipv4/route.c rth->rt_genid = rt_genid(net); net 2065 net/ipv4/route.c rth->u.dst.dev = net->loopback_dev; net 2078 net/ipv4/route.c hash = rt_hash(daddr, saddr, fl.iif, rt_genid(net)); net 2125 net/ipv4/route.c struct net *net; net 2127 net/ipv4/route.c net = dev_net(dev); net 2129 net/ipv4/route.c hash = rt_hash(daddr, saddr, iif, rt_genid(net)); net 2140 net/ipv4/route.c net_eq(dev_net(rth->u.dst.dev), net) && net 2343 net/ipv4/route.c .iif = net->loopback_dev->ifindex, net 2376 net/ipv4/route.c dev_out = ip_dev_find(net, oldflp->fl4_src); net 2401 net/ipv4/route.c dev_out = ip_dev_find(net, oldflp->fl4_src); net 2411 net/ipv4/route.c dev_out = dev_get_by_index(net, oldflp->oif); net 2445 net/ipv4/route.c dev_out = net->loopback_dev; net 2447 net/ipv4/route.c fl.oif = net->loopback_dev->ifindex; net 2453 net/ipv4/route.c if (fib_lookup(net, &fl, &res)) { net 2492 net/ipv4/route.c dev_out = net->loopback_dev; net 2508 net/ipv4/route.c fib_select_default(net, &fl, &res); net 2537 net/ipv4/route.c hash = rt_hash(flp->fl4_dst, flp->fl4_src, flp->oif, rt_genid(net)); net 2549 net/ipv4/route.c net_eq(dev_net(rth->u.dst.dev), net) && net 2561 net/ipv4/route.c return ip_route_output_slow(net, rp, flp); net 2605 net/ipv4/route.c rt->rt_genid = rt_genid(net); net 2630 net/ipv4/route.c if ((err = __ip_route_output_key(net, rp, flp)) != 0) net 2641 net/ipv4/route.c err = ipv4_dst_blackhole(net, rp, flp); net 2653 net/ipv4/route.c return ip_route_output_flow(net, rp, flp, NULL, 0); net 2752 net/ipv4/route.c struct net *net = sock_net(in_skb->sk); net 2791 net/ipv4/route.c dev = __dev_get_by_index(net, iif); net 2817 net/ipv4/route.c err = ip_route_output_key(net, &rt, &fl); net 2832 net/ipv4/route.c err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).pid); net 2846 net/ipv4/route.c struct net *net; net 2848 net/ipv4/route.c net = sock_net(skb->sk); net 2860 net/ipv4/route.c if (!net_eq(dev_net(rt->u.dst.dev), net) || idx < s_idx) net 2896 net/ipv4/route.c struct net *net; net 2902 net/ipv4/route.c net = (struct net *)__ctl->extra1; net 2903 net/ipv4/route.c rt_cache_flush(net, flush_delay); net 2919 net/ipv4/route.c struct net *net; net 2924 net/ipv4/route.c net = (struct net *)table->extra1; net 2925 net/ipv4/route.c rt_cache_flush(net, delay); net 2931 net/ipv4/route.c struct net *net; net 2939 net/ipv4/route.c for_each_net(net) { net 2940 net/ipv4/route.c int deleted = del_timer_sync(&net->ipv4.rt_secret_timer); net 2946 net/ipv4/route.c long time = net->ipv4.rt_secret_timer.expires - jiffies; net 2951 net/ipv4/route.c net->ipv4.rt_secret_timer.expires = time; net 2953 net/ipv4/route.c net->ipv4.rt_secret_timer.expires = new; net 2955 net/ipv4/route.c net->ipv4.rt_secret_timer.expires += jiffies; net 2956 net/ipv4/route.c add_timer(&net->ipv4.rt_secret_timer); net 3172 net/ipv4/route.c if (net != &init_net) { net 3177 net/ipv4/route.c tbl[0].extra1 = net; net 3179 net/ipv4/route.c net->ipv4.route_hdr = net 3180 net/ipv4/route.c register_net_sysctl_table(net, ipv4_route_path, tbl); net 3181 net/ipv4/route.c if (net->ipv4.route_hdr == NULL) net 3196 net/ipv4/route.c tbl = net->ipv4.route_hdr->ctl_table_arg; net 3197 net/ipv4/route.c unregister_net_sysctl_table(net->ipv4.route_hdr); net 3211 net/ipv4/route.c atomic_set(&net->ipv4.rt_genid, net 3215 net/ipv4/route.c net->ipv4.rt_secret_timer.function = rt_secret_rebuild; net 3216 net/ipv4/route.c net->ipv4.rt_secret_timer.data = (unsigned long)net; net 3217 net/ipv4/route.c init_timer_deferrable(&net->ipv4.rt_secret_timer); net 3220 net/ipv4/route.c net->ipv4.rt_secret_timer.expires = net 3223 net/ipv4/route.c add_timer(&net->ipv4.rt_secret_timer); net 3230 net/ipv4/route.c del_timer_sync(&net->ipv4.rt_secret_timer); net 813 net/ipv4/sysctl_net_ipv4.c if (net != &init_net) { net 819 net/ipv4/sysctl_net_ipv4.c &net->ipv4.sysctl_icmp_echo_ignore_all; net 821 net/ipv4/sysctl_net_ipv4.c &net->ipv4.sysctl_icmp_echo_ignore_broadcasts; net 823 net/ipv4/sysctl_net_ipv4.c &net->ipv4.sysctl_icmp_ignore_bogus_error_responses; net 825 net/ipv4/sysctl_net_ipv4.c &net->ipv4.sysctl_icmp_errors_use_inbound_ifaddr; net 827 net/ipv4/sysctl_net_ipv4.c &net->ipv4.sysctl_icmp_ratelimit; net 829 net/ipv4/sysctl_net_ipv4.c &net->ipv4.sysctl_icmp_ratemask; net 832 net/ipv4/sysctl_net_ipv4.c net->ipv4.ipv4_hdr = register_net_sysctl_table(net, net 834 net/ipv4/sysctl_net_ipv4.c if (net->ipv4.ipv4_hdr == NULL) net 840 net/ipv4/sysctl_net_ipv4.c if (net != &init_net) net 850 net/ipv4/sysctl_net_ipv4.c table = net->ipv4.ipv4_hdr->ctl_table_arg; net 851 net/ipv4/sysctl_net_ipv4.c unregister_net_sysctl_table(net->ipv4.ipv4_hdr); net 345 net/ipv4/tcp_ipv4.c struct net *net = dev_net(skb->dev); net 348 net/ipv4/tcp_ipv4.c ICMP_INC_STATS_BH(net, ICMP_MIB_INERRORS); net 352 net/ipv4/tcp_ipv4.c sk = inet_lookup(net, &tcp_hashinfo, iph->daddr, th->dest, net 355 net/ipv4/tcp_ipv4.c ICMP_INC_STATS_BH(net, ICMP_MIB_INERRORS); net 368 net/ipv4/tcp_ipv4.c NET_INC_STATS_BH(net, LINUX_MIB_LOCKDROPPEDICMPS); net 377 net/ipv4/tcp_ipv4.c NET_INC_STATS_BH(net, LINUX_MIB_OUTOFWINDOWICMPS); net 424 net/ipv4/tcp_ipv4.c NET_INC_STATS_BH(net, LINUX_MIB_OUTOFWINDOWICMPS); net 546 net/ipv4/tcp_ipv4.c struct net *net; net 596 net/ipv4/tcp_ipv4.c net = dev_net(skb->dst->dev); net 597 net/ipv4/tcp_ipv4.c ip_send_reply(net->ipv4.tcp_sock, skb, net 600 net/ipv4/tcp_ipv4.c TCP_INC_STATS_BH(net, TCP_MIB_OUTSEGS); net 601 net/ipv4/tcp_ipv4.c TCP_INC_STATS_BH(net, TCP_MIB_OUTRSTS); net 623 net/ipv4/tcp_ipv4.c struct net *net = dev_net(skb->dst->dev); net 672 net/ipv4/tcp_ipv4.c ip_send_reply(net->ipv4.tcp_sock, skb, net 675 net/ipv4/tcp_ipv4.c TCP_INC_STATS_BH(net, TCP_MIB_OUTSEGS); net 1545 net/ipv4/tcp_ipv4.c struct net *net = dev_net(skb->dev); net 1551 net/ipv4/tcp_ipv4.c TCP_INC_STATS_BH(net, TCP_MIB_INSEGS); net 1626 net/ipv4/tcp_ipv4.c TCP_INC_STATS_BH(net, TCP_MIB_INERRS); net 1647 net/ipv4/tcp_ipv4.c TCP_INC_STATS_BH(net, TCP_MIB_INERRS); net 1881 net/ipv4/tcp_ipv4.c struct net *net = seq_file_net(seq); net 1922 net/ipv4/tcp_ipv4.c if (sk->sk_family == st->family && net_eq(sock_net(sk), net)) { net 1967 net/ipv4/tcp_ipv4.c struct net *net = seq_file_net(seq); net 1983 net/ipv4/tcp_ipv4.c !net_eq(sock_net(sk), net)) { net 1993 net/ipv4/tcp_ipv4.c !net_eq(twsk_net(tw), net)) { net 2012 net/ipv4/tcp_ipv4.c struct net *net = seq_file_net(seq); net 2020 net/ipv4/tcp_ipv4.c while (tw && (tw->tw_family != st->family || !net_eq(twsk_net(tw), net))) { net 2043 net/ipv4/tcp_ipv4.c if (sk->sk_family == st->family && net_eq(sock_net(sk), net)) net 2176 net/ipv4/tcp_ipv4.c p = proc_create_data(afinfo->name, S_IRUGO, net->proc_net, net 2185 net/ipv4/tcp_ipv4.c proc_net_remove(net, afinfo->name); net 2329 net/ipv4/tcp_ipv4.c return tcp_proc_register(net, &tcp4_seq_afinfo); net 2334 net/ipv4/tcp_ipv4.c tcp_proc_unregister(net, &tcp4_seq_afinfo); net 2393 net/ipv4/tcp_ipv4.c return inet_ctl_sock_create(&net->ipv4.tcp_sock, net 2394 net/ipv4/tcp_ipv4.c PF_INET, SOCK_RAW, IPPROTO_TCP, net); net 2399 net/ipv4/tcp_ipv4.c inet_ctl_sock_destroy(net->ipv4.tcp_sock); net 2400 net/ipv4/tcp_ipv4.c inet_twsk_purge(net, &tcp_hashinfo, &tcp_death_row, AF_INET); net 134 net/ipv4/udp.c sk_for_each(sk2, node, &udptable[udp_hashfn(net, num)]) net 135 net/ipv4/udp.c if (net_eq(sock_net(sk2), net) && net 159 net/ipv4/udp.c struct net *net = sock_net(sk); net 174 net/ipv4/udp.c while (udp_lib_lport_inuse(net, snum, udptable, sk, net 182 net/ipv4/udp.c } else if (udp_lib_lport_inuse(net, snum, udptable, sk, saddr_comp)) net 188 net/ipv4/udp.c sk_add_node(sk, &udptable[udp_hashfn(net, snum)]); net 224 net/ipv4/udp.c sk_for_each(sk, node, &udptable[udp_hashfn(net, hnum)]) { net 227 net/ipv4/udp.c if (net_eq(sock_net(sk), net) && sk->sk_hash == hnum && net 283 net/ipv4/udp.c return __udp4_lib_lookup(net, saddr, sport, daddr, dport, dif, udp_hash); net 336 net/ipv4/udp.c struct net *net = dev_net(skb->dev); net 338 net/ipv4/udp.c sk = __udp4_lib_lookup(net, iph->daddr, uh->dest, net 341 net/ipv4/udp.c ICMP_INC_STATS_BH(net, ICMP_MIB_INERRORS); net 638 net/ipv4/udp.c struct net *net = sock_net(sk); net 641 net/ipv4/udp.c err = ip_route_output_flow(net, &rt, &fl, sk, 1); net 644 net/ipv4/udp.c IP_INC_STATS_BH(net, IPSTATS_MIB_OUTNOROUTES); net 1080 net/ipv4/udp.c sk = sk_head(&udptable[udp_hashfn(net, ntohs(uh->dest))]); net 1160 net/ipv4/udp.c struct net *net = dev_net(skb->dev); net 1183 net/ipv4/udp.c return __udp4_lib_mcast_deliver(net, skb, uh, net 1208 net/ipv4/udp.c UDP_INC_STATS_BH(net, UDP_MIB_NOPORTS, proto == IPPROTO_UDPLITE); net 1242 net/ipv4/udp.c UDP_INC_STATS_BH(net, UDP_MIB_INERRORS, proto == IPPROTO_UDPLITE); net 1505 net/ipv4/udp.c struct net *net = seq_file_net(seq); net 1510 net/ipv4/udp.c if (!net_eq(sock_net(sk), net)) net 1524 net/ipv4/udp.c struct net *net = seq_file_net(seq); net 1530 net/ipv4/udp.c } while (sk && (!net_eq(sock_net(sk), net) || sk->sk_family != state->family)); net 1607 net/ipv4/udp.c p = proc_create_data(afinfo->name, S_IRUGO, net->proc_net, net 1616 net/ipv4/udp.c proc_net_remove(net, afinfo->name); net 1671 net/ipv4/udp.c return udp_proc_register(net, &udp4_seq_afinfo); net 1676 net/ipv4/udp.c udp_proc_unregister(net, &udp4_seq_afinfo); net 85 net/ipv4/udplite.c return udp_proc_register(net, &udplite4_seq_afinfo); net 90 net/ipv4/udplite.c udp_proc_unregister(net, &udplite4_seq_afinfo); net 482 net/ipv6/addrconf.c for_each_netdev(net, dev) { net 498 net/ipv6/addrconf.c struct net *net; net 500 net/ipv6/addrconf.c net = (struct net *)table->extra2; net 501 net/ipv6/addrconf.c if (p == &net->ipv6.devconf_dflt->forwarding) net 505 net/ipv6/addrconf.c if (p == &net->ipv6.devconf_all->forwarding) { net 506 net/ipv6/addrconf.c __s32 newf = net->ipv6.devconf_all->forwarding; net 507 net/ipv6/addrconf.c net->ipv6.devconf_dflt->forwarding = newf; net 508 net/ipv6/addrconf.c addrconf_forward_change(net, newf); net 514 net/ipv6/addrconf.c rt6_purge_dflt_routers(net); net 804 net/ipv6/addrconf.c struct net *net = dev_net(ifp->idev->dev); net 806 net/ipv6/addrconf.c rt = rt6_lookup(net, &prefix, NULL, ifp->idev->dev->ifindex, 1); net 1069 net/ipv6/addrconf.c ret = ipv6_addr_label(net, net 1123 net/ipv6/addrconf.c dst.label = ipv6_addr_label(net, daddr, dst_type, dst.ifindex); net 1132 net/ipv6/addrconf.c for_each_netdev(net, dev) { net 1191 net/ipv6/addrconf.c minihiscore = ipv6_get_saddr_eval(net, hiscore, &dst, i); net 1192 net/ipv6/addrconf.c miniscore = ipv6_get_saddr_eval(net, score, &dst, i); net 1287 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) net 1309 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) net 1352 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) net 1869 net/ipv6/addrconf.c struct net *net = dev_net(dev); net 1888 net/ipv6/addrconf.c ifp = ipv6_get_ifaddr(net, &addr, dev, 1); net 1896 net/ipv6/addrconf.c !net->ipv6.devconf_all->forwarding) net 2026 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ireq.ifr6_ifindex); net 2057 net/ipv6/addrconf.c dev = __dev_get_by_name(net, p.name); net 2094 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ifindex); net 2156 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ifindex); net 2197 net/ipv6/addrconf.c err = inet6_addr_add(net, ireq.ifr6_ifindex, &ireq.ifr6_addr, net 2216 net/ipv6/addrconf.c err = inet6_addr_del(net, ireq.ifr6_ifindex, &ireq.ifr6_addr, net 2228 net/ipv6/addrconf.c struct net *net = dev_net(idev->dev); net 2255 net/ipv6/addrconf.c for_each_netdev(net, dev) { net 2418 net/ipv6/addrconf.c struct net *net = dev_net(idev->dev); net 2422 net/ipv6/addrconf.c (link_dev = __dev_get_by_index(net, idev->dev->iflink))) { net 2427 net/ipv6/addrconf.c for_each_netdev(net, link_dev) { net 2599 net/ipv6/addrconf.c struct net *net = dev_net(dev); net 2607 net/ipv6/addrconf.c rt6_ifdown(net, dev); net 2919 net/ipv6/addrconf.c struct net *net = seq_file_net(seq); net 2924 net/ipv6/addrconf.c while (ifa && !net_eq(dev_net(ifa->idev->dev), net)) net 2935 net/ipv6/addrconf.c struct net *net = seq_file_net(seq); net 2940 net/ipv6/addrconf.c if (!net_eq(dev_net(ifa->idev->dev), net)) { net 3023 net/ipv6/addrconf.c if (!proc_net_fops_create(net, "if_inet6", S_IRUGO, &if6_fops)) net 3030 net/ipv6/addrconf.c proc_net_remove(net, "if_inet6"); net 3058 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) net 3207 net/ipv6/addrconf.c struct net *net = sock_net(skb->sk); net 3222 net/ipv6/addrconf.c return inet6_addr_del(net, ifm->ifa_index, pfx, ifm->ifa_prefixlen); net 3273 net/ipv6/addrconf.c struct net *net = sock_net(skb->sk); net 3303 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ifm->ifa_index); net 3310 net/ipv6/addrconf.c ifa = ipv6_get_ifaddr(net, pfx, dev, 1); net 3316 net/ipv6/addrconf.c return inet6_addr_add(net, ifm->ifa_index, pfx, net 3483 net/ipv6/addrconf.c struct net *net = sock_net(skb->sk); net 3489 net/ipv6/addrconf.c for_each_netdev(net, dev) { net 3579 net/ipv6/addrconf.c struct net *net = sock_net(in_skb->sk); net 3600 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ifm->ifa_index); net 3602 net/ipv6/addrconf.c if ((ifa = ipv6_get_ifaddr(net, addr, dev, 1)) == NULL) { net 3620 net/ipv6/addrconf.c err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).pid); net 3630 net/ipv6/addrconf.c struct net *net = dev_net(ifa->idev->dev); net 3644 net/ipv6/addrconf.c err = rtnl_notify(skb, net, 0, RTNLGRP_IPV6_IFADDR, NULL, GFP_ATOMIC); net 3647 net/ipv6/addrconf.c rtnl_set_sk_err(net, RTNLGRP_IPV6_IFADDR, err); net 3811 net/ipv6/addrconf.c struct net *net = sock_net(skb->sk); net 3819 net/ipv6/addrconf.c for_each_netdev(net, dev) { net 3841 net/ipv6/addrconf.c struct net *net = dev_net(idev->dev); net 3855 net/ipv6/addrconf.c err = rtnl_notify(skb, net, 0, RTNLGRP_IPV6_IFADDR, NULL, GFP_ATOMIC); net 3858 net/ipv6/addrconf.c rtnl_set_sk_err(net, RTNLGRP_IPV6_IFADDR, err); net 3911 net/ipv6/addrconf.c struct net *net = dev_net(idev->dev); net 3925 net/ipv6/addrconf.c err = rtnl_notify(skb, net, 0, RTNLGRP_IPV6_PREFIX, NULL, GFP_ATOMIC); net 3928 net/ipv6/addrconf.c rtnl_set_sk_err(net, RTNLGRP_IPV6_PREFIX, err); net 4298 net/ipv6/addrconf.c t->addrconf_vars[i].extra2 = net; net 4313 net/ipv6/addrconf.c t->sysctl_header = register_net_sysctl_table(net, addrconf_ctl_path, net 4371 net/ipv6/addrconf.c if (net != &init_net) { net 4381 net/ipv6/addrconf.c net->ipv6.devconf_all = all; net 4382 net/ipv6/addrconf.c net->ipv6.devconf_dflt = dflt; net 4385 net/ipv6/addrconf.c err = __addrconf_sysctl_register(net, "all", NET_PROTO_CONF_ALL, net 4390 net/ipv6/addrconf.c err = __addrconf_sysctl_register(net, "default", NET_PROTO_CONF_DEFAULT, net 4412 net/ipv6/addrconf.c __addrconf_sysctl_unregister(net->ipv6.devconf_dflt); net 4413 net/ipv6/addrconf.c __addrconf_sysctl_unregister(net->ipv6.devconf_all); net 4415 net/ipv6/addrconf.c if (net != &init_net) { net 4416 net/ipv6/addrconf.c kfree(net->ipv6.devconf_dflt); net 4417 net/ipv6/addrconf.c kfree(net->ipv6.devconf_all); net 4450 net/ipv6/addrconf.c for_each_netdev(net, dev) { net 4455 net/ipv6/addrconf.c addrconf_ifdown(net->loopback_dev, 2); net 33 net/ipv6/addrlabel.c struct net *lbl_net; net 53 net/ipv6/addrlabel.c struct net *ip6addrlbl_net(const struct ip6addrlbl_entry *lbl) net 152 net/ipv6/addrlabel.c if (!net_eq(ip6addrlbl_net(p), net)) net 170 net/ipv6/addrlabel.c if (__ip6addrlbl_match(net, p, addr, type, ifindex)) net 185 net/ipv6/addrlabel.c p = __ipv6_addr_label(net, addr, type, ifindex); net 242 net/ipv6/addrlabel.c newp->lbl_net = hold_net(net); net 304 net/ipv6/addrlabel.c newp = ip6addrlbl_alloc(net, prefix, prefixlen, ifindex, label); net 331 net/ipv6/addrlabel.c net_eq(ip6addrlbl_net(p), net) && net 357 net/ipv6/addrlabel.c ret = __ip6addrlbl_del(net, &prefix_buf, prefixlen, ifindex); net 371 net/ipv6/addrlabel.c int ret = ip6addrlbl_add(net, net 391 net/ipv6/addrlabel.c if (net_eq(ip6addrlbl_net(p), net)) { net 419 net/ipv6/addrlabel.c struct net *net = sock_net(skb->sk); net 437 net/ipv6/addrlabel.c !__dev_get_by_index(net, ifal->ifal_index)) net 455 net/ipv6/addrlabel.c err = ip6addrlbl_add(net, pfx, ifal->ifal_prefixlen, net 460 net/ipv6/addrlabel.c err = ip6addrlbl_del(net, pfx, ifal->ifal_prefixlen, net 504 net/ipv6/addrlabel.c struct net *net = sock_net(skb->sk); net 513 net/ipv6/addrlabel.c net_eq(ip6addrlbl_net(p), net)) { net 540 net/ipv6/addrlabel.c struct net *net = sock_net(in_skb->sk); net 560 net/ipv6/addrlabel.c !__dev_get_by_index(net, ifal->ifal_index)) net 571 net/ipv6/addrlabel.c p = __ipv6_addr_label(net, addr, ipv6_addr_type(addr), ifal->ifal_index); net 599 net/ipv6/addrlabel.c err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).pid); net 157 net/ipv6/af_inet6.c sk = sk_alloc(net, PF_INET6, GFP_KERNEL, answer_prot); net 188 net/ipv6/af_inet6.c np->ipv6only = net->ipv6.sysctl.bindv6only; net 245 net/ipv6/af_inet6.c struct net *net = sock_net(sk); net 276 net/ipv6/af_inet6.c if (inet_addr_type(net, v4addr) != RTN_LOCAL) { net 298 net/ipv6/af_inet6.c dev = dev_get_by_index(net, sk->sk_bound_dev_if); net 310 net/ipv6/af_inet6.c if (!ipv6_chk_addr(net, &addr->sin6_addr, net 436 net/ipv6/af_inet6.c struct net *net = sock_net(sk); net 449 net/ipv6/af_inet6.c return(ipv6_route_ioctl(net, cmd, (void __user *)arg)); net 452 net/ipv6/af_inet6.c return addrconf_add_ifaddr(net, (void __user *) arg); net 454 net/ipv6/af_inet6.c return addrconf_del_ifaddr(net, (void __user *) arg); net 456 net/ipv6/af_inet6.c return addrconf_set_dstaddr(net, (void __user *) arg); net 800 net/ipv6/af_inet6.c if (snmp_mib_init((void **)net->mib.udp_stats_in6, net 803 net/ipv6/af_inet6.c if (snmp_mib_init((void **)net->mib.udplite_stats_in6, net 806 net/ipv6/af_inet6.c if (snmp_mib_init((void **)net->mib.ipv6_statistics, net 809 net/ipv6/af_inet6.c if (snmp_mib_init((void **)net->mib.icmpv6_statistics, net 812 net/ipv6/af_inet6.c if (snmp_mib_init((void **)net->mib.icmpv6msg_statistics, net 818 net/ipv6/af_inet6.c snmp_mib_free((void **)net->mib.icmpv6_statistics); net 820 net/ipv6/af_inet6.c snmp_mib_free((void **)net->mib.ipv6_statistics); net 822 net/ipv6/af_inet6.c snmp_mib_free((void **)net->mib.udplite_stats_in6); net 824 net/ipv6/af_inet6.c snmp_mib_free((void **)net->mib.udp_stats_in6); net 830 net/ipv6/af_inet6.c snmp_mib_free((void **)net->mib.udp_stats_in6); net 831 net/ipv6/af_inet6.c snmp_mib_free((void **)net->mib.udplite_stats_in6); net 832 net/ipv6/af_inet6.c snmp_mib_free((void **)net->mib.ipv6_statistics); net 833 net/ipv6/af_inet6.c snmp_mib_free((void **)net->mib.icmpv6_statistics); net 834 net/ipv6/af_inet6.c snmp_mib_free((void **)net->mib.icmpv6msg_statistics); net 841 net/ipv6/af_inet6.c net->ipv6.sysctl.bindv6only = 0; net 842 net/ipv6/af_inet6.c net->ipv6.sysctl.icmpv6_time = 1*HZ; net 844 net/ipv6/af_inet6.c err = ipv6_init_mibs(net); net 848 net/ipv6/af_inet6.c err = udp6_proc_init(net); net 851 net/ipv6/af_inet6.c err = tcp6_proc_init(net); net 854 net/ipv6/af_inet6.c err = ac6_proc_init(net); net 862 net/ipv6/af_inet6.c tcp6_proc_exit(net); net 864 net/ipv6/af_inet6.c udp6_proc_exit(net); net 866 net/ipv6/af_inet6.c ipv6_cleanup_mibs(net); net 874 net/ipv6/af_inet6.c udp6_proc_exit(net); net 875 net/ipv6/af_inet6.c tcp6_proc_exit(net); net 876 net/ipv6/af_inet6.c ac6_proc_exit(net); net 878 net/ipv6/af_inet6.c ipv6_cleanup_mibs(net); net 62 net/ipv6/anycast.c struct net *net = sock_net(sk); net 63 net/ipv6/anycast.c int ishost = !net->ipv6.devconf_all->forwarding; net 70 net/ipv6/anycast.c if (ipv6_chk_addr(net, addr, NULL, 0)) net 82 net/ipv6/anycast.c rt = rt6_lookup(net, addr, NULL, 0, 0); net 93 net/ipv6/anycast.c dev = dev_get_by_flags(net, IFF_UP, IFF_UP|IFF_LOOPBACK); net 96 net/ipv6/anycast.c dev = dev_get_by_index(net, ifindex); net 157 net/ipv6/anycast.c struct net *net = sock_net(sk); net 178 net/ipv6/anycast.c dev = dev_get_by_index(net, pac->acl_ifindex); net 192 net/ipv6/anycast.c struct net *net = sock_net(sk); net 207 net/ipv6/anycast.c dev = dev_get_by_index(net, pac->acl_ifindex); net 408 net/ipv6/anycast.c for_each_netdev(net, dev) net 431 net/ipv6/anycast.c struct net *net = seq_file_net(seq); net 434 net/ipv6/anycast.c for_each_netdev(net, state->dev) { net 546 net/ipv6/anycast.c if (!proc_net_fops_create(net, "anycast6", S_IRUGO, &ac6_seq_fops)) net 554 net/ipv6/anycast.c proc_net_remove(net, "anycast6"); net 542 net/ipv6/datagram.c dev = dev_get_by_index(net, fl->oif); net 550 net/ipv6/datagram.c if (!ipv6_chk_addr(net, &src_info->ipi6_addr, net 323 net/ipv6/exthdrs.c struct net *net = dev_net(skb->dev); net 324 net/ipv6/exthdrs.c int accept_source_route = net->ipv6.devconf_all->accept_source_route; net 336 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 346 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 361 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 387 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 406 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 420 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 443 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 449 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 461 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 481 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 497 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), IPSTATS_MIB_INHDRERRORS); net 584 net/ipv6/exthdrs.c struct net *net = dev_net(skb->dst->dev); net 589 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ipv6_skb_idev(skb), net 596 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ipv6_skb_idev(skb), net 602 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ipv6_skb_idev(skb), net 609 net/ipv6/exthdrs.c IP6_INC_STATS_BH(net, ipv6_skb_idev(skb), net 39 net/ipv6/fib6_rules.c fib_rules_lookup(net->ipv6.fib6_rules_ops, fl, flags, &arg); net 46 net/ipv6/fib6_rules.c dst_hold(&net->ipv6.ip6_null_entry->u.dst); net 47 net/ipv6/fib6_rules.c return &net->ipv6.ip6_null_entry->u.dst; net 55 net/ipv6/fib6_rules.c struct net *net = rule->fr_net; net 62 net/ipv6/fib6_rules.c rt = net->ipv6.ip6_null_entry; net 66 net/ipv6/fib6_rules.c rt = net->ipv6.ip6_blk_hole_entry; net 69 net/ipv6/fib6_rules.c rt = net->ipv6.ip6_prohibit_entry; net 73 net/ipv6/fib6_rules.c table = fib6_get_table(net, rule->table); net 75 net/ipv6/fib6_rules.c rt = lookup(net, table, flp, flags); net 77 net/ipv6/fib6_rules.c if (rt != net->ipv6.ip6_null_entry) { net 96 net/ipv6/fib6_rules.c if (ipv6_dev_get_saddr(net, net 158 net/ipv6/fib6_rules.c struct net *net = sock_net(skb->sk); net 165 net/ipv6/fib6_rules.c if (fib6_new_table(net, rule->table) == NULL) { net 269 net/ipv6/fib6_rules.c net->ipv6.fib6_rules_ops = kmemdup(&fib6_rules_ops_template, net 270 net/ipv6/fib6_rules.c sizeof(*net->ipv6.fib6_rules_ops), net 272 net/ipv6/fib6_rules.c if (!net->ipv6.fib6_rules_ops) net 275 net/ipv6/fib6_rules.c net->ipv6.fib6_rules_ops->fro_net = net; net 276 net/ipv6/fib6_rules.c INIT_LIST_HEAD(&net->ipv6.fib6_rules_ops->rules_list); net 278 net/ipv6/fib6_rules.c err = fib_default_rule_add(net->ipv6.fib6_rules_ops, 0, net 283 net/ipv6/fib6_rules.c err = fib_default_rule_add(net->ipv6.fib6_rules_ops, net 288 net/ipv6/fib6_rules.c err = fib_rules_register(net->ipv6.fib6_rules_ops); net 295 net/ipv6/fib6_rules.c fib_rules_cleanup_ops(net->ipv6.fib6_rules_ops); net 297 net/ipv6/fib6_rules.c kfree(net->ipv6.fib6_rules_ops); net 303 net/ipv6/fib6_rules.c fib_rules_unregister(net->ipv6.fib6_rules_ops); net 304 net/ipv6/fib6_rules.c kfree(net->ipv6.fib6_rules_ops); net 84 net/ipv6/icmp.c return net->ipv6.icmp_sk[smp_processor_id()]; net 100 net/ipv6/icmp.c sk = icmpv6_sk(net); net 168 net/ipv6/icmp.c struct net *net = sock_net(sk); net 184 net/ipv6/icmp.c dst = ip6_route_output(net, sk, fl); net 186 net/ipv6/icmp.c IP6_INC_STATS(net, ip6_dst_idev(dst), net 192 net/ipv6/icmp.c int tmo = net->ipv6.sysctl.icmpv6_time; net 311 net/ipv6/icmp.c struct net *net = dev_net(skb->dev); net 341 net/ipv6/icmp.c if (ipv6_chk_addr(net, &hdr->daddr, skb->dev, 0)) net 398 net/ipv6/icmp.c sk = icmpv6_xmit_lock(net); net 513 net/ipv6/icmp.c struct net *net = dev_net(skb->dev); net 544 net/ipv6/icmp.c sk = icmpv6_xmit_lock(net); net 807 net/ipv6/icmp.c net->ipv6.icmp_sk = net 809 net/ipv6/icmp.c if (net->ipv6.icmp_sk == NULL) net 814 net/ipv6/icmp.c SOCK_RAW, IPPROTO_ICMPV6, net); net 823 net/ipv6/icmp.c net->ipv6.icmp_sk[i] = sk; net 844 net/ipv6/icmp.c inet_ctl_sock_destroy(net->ipv6.icmp_sk[j]); net 845 net/ipv6/icmp.c kfree(net->ipv6.icmp_sk); net 854 net/ipv6/icmp.c inet_ctl_sock_destroy(net->ipv6.icmp_sk[i]); net 856 net/ipv6/icmp.c kfree(net->ipv6.icmp_sk); net 973 net/ipv6/icmp.c table[0].data = &net->ipv6.sysctl.icmpv6_time; net 71 net/ipv6/inet6_hashtables.c unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); net 79 net/ipv6/inet6_hashtables.c if (INET6_MATCH(sk, net, hash, saddr, daddr, ports, dif)) net 84 net/ipv6/inet6_hashtables.c if (INET6_TW_MATCH(sk, net, hash, saddr, daddr, ports, dif)) net 108 net/ipv6/inet6_hashtables.c &hashinfo->listening_hash[inet_lhashfn(net, hnum)]) { net 109 net/ipv6/inet6_hashtables.c if (net_eq(sock_net(sk), net) && inet_sk(sk)->num == hnum && net 150 net/ipv6/inet6_hashtables.c sk = __inet6_lookup(net, hashinfo, saddr, sport, daddr, ntohs(dport), dif); net 169 net/ipv6/inet6_hashtables.c struct net *net = sock_net(sk); net 170 net/ipv6/inet6_hashtables.c const unsigned int hash = inet6_ehashfn(net, daddr, lport, saddr, net 185 net/ipv6/inet6_hashtables.c if (INET6_TW_MATCH(sk2, net, hash, saddr, daddr, ports, dif)) { net 196 net/ipv6/inet6_hashtables.c if (INET6_MATCH(sk2, net, hash, saddr, daddr, ports, dif)) net 65 net/ipv6/ip6_fib.c struct net *net; net 189 net/ipv6/ip6_fib.c hlist_add_head_rcu(&tb->tb6_hlist, &net->ipv6.fib_table_hash[h]); net 201 net/ipv6/ip6_fib.c table->tb6_root.leaf = net->ipv6.ip6_null_entry; net 214 net/ipv6/ip6_fib.c tb = fib6_get_table(net, id); net 218 net/ipv6/ip6_fib.c tb = fib6_alloc_table(net, id); net 220 net/ipv6/ip6_fib.c fib6_link_table(net, tb); net 236 net/ipv6/ip6_fib.c head = &net->ipv6.fib_table_hash[h]; net 250 net/ipv6/ip6_fib.c fib6_link_table(net, net->ipv6.fib6_main_tbl); net 251 net/ipv6/ip6_fib.c fib6_link_table(net, net->ipv6.fib6_local_tbl); net 257 net/ipv6/ip6_fib.c return fib6_get_table(net, id); net 262 net/ipv6/ip6_fib.c return net->ipv6.fib6_main_tbl; net 268 net/ipv6/ip6_fib.c return (struct dst_entry *) lookup(net, net->ipv6.fib6_main_tbl, fl, flags); net 273 net/ipv6/ip6_fib.c fib6_link_table(net, net->ipv6.fib6_main_tbl); net 347 net/ipv6/ip6_fib.c struct net *net = sock_net(skb->sk); net 381 net/ipv6/ip6_fib.c arg.net = net; net 386 net/ipv6/ip6_fib.c head = &net->ipv6.fib_table_hash[h]; net 665 net/ipv6/ip6_fib.c if (!timer_pending(&net->ipv6.ip6_fib_timer) && net 667 net/ipv6/ip6_fib.c mod_timer(&net->ipv6.ip6_fib_timer, net 668 net/ipv6/ip6_fib.c jiffies + net->ipv6.sysctl.ip6_rt_gc_interval); net 673 net/ipv6/ip6_fib.c if (!timer_pending(&net->ipv6.ip6_fib_timer)) net 674 net/ipv6/ip6_fib.c mod_timer(&net->ipv6.ip6_fib_timer, net 675 net/ipv6/ip6_fib.c jiffies + net->ipv6.sysctl.ip6_rt_gc_interval); net 968 net/ipv6/ip6_fib.c return net->ipv6.ip6_null_entry; net 1015 net/ipv6/ip6_fib.c fn->leaf = fib6_find_prefix(net, fn); net 1019 net/ipv6/ip6_fib.c fn->leaf = net->ipv6.ip6_null_entry; net 1093 net/ipv6/ip6_fib.c struct net *net = info->nl_net; net 1100 net/ipv6/ip6_fib.c net->ipv6.rt6_stats->fib_rt_entries--; net 1101 net/ipv6/ip6_fib.c net->ipv6.rt6_stats->fib_discarded_routes++; net 1124 net/ipv6/ip6_fib.c net->ipv6.rt6_stats->fib_route_nodes--; net 1125 net/ipv6/ip6_fib.c fn = fib6_repair_tree(net, fn); net 1137 net/ipv6/ip6_fib.c fn->leaf = fib6_find_prefix(net, fn); net 1153 net/ipv6/ip6_fib.c struct net *net = info->nl_net; net 1163 net/ipv6/ip6_fib.c if (fn == NULL || rt == net->ipv6.ip6_null_entry) net 1312 net/ipv6/ip6_fib.c .nl_net = c->net, net 1356 net/ipv6/ip6_fib.c c.net = net; net 1371 net/ipv6/ip6_fib.c head = &net->ipv6.fib_table_hash[h]; net 1374 net/ipv6/ip6_fib.c fib6_clean_tree(net, &table->tb6_root, net 1395 net/ipv6/ip6_fib.c fib6_clean_tree(net, fn, fib6_prune_clone, 1, rt); net 1450 net/ipv6/ip6_fib.c net->ipv6.sysctl.ip6_rt_gc_interval; net 1453 net/ipv6/ip6_fib.c mod_timer(&net->ipv6.ip6_fib_timer, jiffies + HZ); net 1456 net/ipv6/ip6_fib.c gc_args.timeout = net->ipv6.sysctl.ip6_rt_gc_interval; net 1461 net/ipv6/ip6_fib.c fib6_clean_all(net, fib6_age, 0, NULL); net 1464 net/ipv6/ip6_fib.c mod_timer(&net->ipv6.ip6_fib_timer, net 1466 net/ipv6/ip6_fib.c + net->ipv6.sysctl.ip6_rt_gc_interval)); net 1468 net/ipv6/ip6_fib.c del_timer(&net->ipv6.ip6_fib_timer); net 1474 net/ipv6/ip6_fib.c fib6_run_gc(0, (struct net *)arg); net 1479 net/ipv6/ip6_fib.c setup_timer(&net->ipv6.ip6_fib_timer, fib6_gc_timer_cb, (unsigned long)net); net 1481 net/ipv6/ip6_fib.c net->ipv6.rt6_stats = kzalloc(sizeof(*net->ipv6.rt6_stats), GFP_KERNEL); net 1482 net/ipv6/ip6_fib.c if (!net->ipv6.rt6_stats) net 1485 net/ipv6/ip6_fib.c net->ipv6.fib_table_hash = kcalloc(FIB_TABLE_HASHSZ, net 1486 net/ipv6/ip6_fib.c sizeof(*net->ipv6.fib_table_hash), net 1488 net/ipv6/ip6_fib.c if (!net->ipv6.fib_table_hash) net 1491 net/ipv6/ip6_fib.c net->ipv6.fib6_main_tbl = kzalloc(sizeof(*net->ipv6.fib6_main_tbl), net 1493 net/ipv6/ip6_fib.c if (!net->ipv6.fib6_main_tbl) net 1496 net/ipv6/ip6_fib.c net->ipv6.fib6_main_tbl->tb6_id = RT6_TABLE_MAIN; net 1497 net/ipv6/ip6_fib.c net->ipv6.fib6_main_tbl->tb6_root.leaf = net->ipv6.ip6_null_entry; net 1498 net/ipv6/ip6_fib.c net->ipv6.fib6_main_tbl->tb6_root.fn_flags = net 1502 net/ipv6/ip6_fib.c net->ipv6.fib6_local_tbl = kzalloc(sizeof(*net->ipv6.fib6_local_tbl), net 1504 net/ipv6/ip6_fib.c if (!net->ipv6.fib6_local_tbl) net 1506 net/ipv6/ip6_fib.c net->ipv6.fib6_local_tbl->tb6_id = RT6_TABLE_LOCAL; net 1507 net/ipv6/ip6_fib.c net->ipv6.fib6_local_tbl->tb6_root.leaf = net->ipv6.ip6_null_entry; net 1508 net/ipv6/ip6_fib.c net->ipv6.fib6_local_tbl->tb6_root.fn_flags = net 1511 net/ipv6/ip6_fib.c fib6_tables_init(net); net 1517 net/ipv6/ip6_fib.c kfree(net->ipv6.fib6_main_tbl); net 1520 net/ipv6/ip6_fib.c kfree(net->ipv6.fib_table_hash); net 1522 net/ipv6/ip6_fib.c kfree(net->ipv6.rt6_stats); net 1529 net/ipv6/ip6_fib.c rt6_ifdown(net, NULL); net 1530 net/ipv6/ip6_fib.c del_timer_sync(&net->ipv6.ip6_fib_timer); net 1533 net/ipv6/ip6_fib.c kfree(net->ipv6.fib6_local_tbl); net 1535 net/ipv6/ip6_fib.c kfree(net->ipv6.fib6_main_tbl); net 1536 net/ipv6/ip6_fib.c kfree(net->ipv6.fib_table_hash); net 1537 net/ipv6/ip6_fib.c kfree(net->ipv6.rt6_stats); net 70 net/ipv6/ip6_flowlabel.c if (fl->label == label && fl->fl_net == net) net 81 net/ipv6/ip6_flowlabel.c fl = __fl_lookup(net, label); net 166 net/ipv6/ip6_flowlabel.c if (fl->fl_net == net && atomic_read(&fl->users) == 0) { net 190 net/ipv6/ip6_flowlabel.c lfl = __fl_lookup(net, fl->label); net 204 net/ipv6/ip6_flowlabel.c lfl = __fl_lookup(net, fl->label); net 357 net/ipv6/ip6_flowlabel.c err = datagram_send_ctl(net, &msg, &flowi, fl->opt, &junk, &junk); net 369 net/ipv6/ip6_flowlabel.c fl->fl_net = hold_net(net); net 468 net/ipv6/ip6_flowlabel.c struct net *net = sock_net(sk); net 511 net/ipv6/ip6_flowlabel.c fl = fl_lookup(net, freq.flr_label); net 524 net/ipv6/ip6_flowlabel.c fl = fl_create(net, &freq, optval, optlen, &err); net 546 net/ipv6/ip6_flowlabel.c fl1 = fl_lookup(net, freq.flr_label); net 587 net/ipv6/ip6_flowlabel.c fl1 = fl_intern(net, fl, freq.flr_label); net 624 net/ipv6/ip6_flowlabel.c struct net *net = seq_file_net(seq); net 629 net/ipv6/ip6_flowlabel.c while (fl && fl->fl_net != net) net 640 net/ipv6/ip6_flowlabel.c struct net *net = seq_file_net(seq); net 644 net/ipv6/ip6_flowlabel.c while (fl && fl->fl_net != net) net 735 net/ipv6/ip6_flowlabel.c if (!proc_net_fops_create(net, "ip6_flowlabel", net 743 net/ipv6/ip6_flowlabel.c proc_net_remove(net, "ip6_flowlabel"); net 758 net/ipv6/ip6_flowlabel.c ip6_fl_purge(net); net 759 net/ipv6/ip6_flowlabel.c ip6_flowlabel_proc_fini(net); net 62 net/ipv6/ip6_input.c struct net *net = dev_net(skb->dev); net 73 net/ipv6/ip6_input.c IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INRECEIVES); net 77 net/ipv6/ip6_input.c IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INDISCARDS); net 122 net/ipv6/ip6_input.c IP6_INC_STATS_BH(net, net 127 net/ipv6/ip6_input.c IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INHDRERRORS); net 135 net/ipv6/ip6_input.c IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INHDRERRORS); net 146 net/ipv6/ip6_input.c IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INHDRERRORS); net 166 net/ipv6/ip6_input.c struct net *net = dev_net(skb->dst->dev); net 211 net/ipv6/ip6_input.c IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INDELIVERS); net 215 net/ipv6/ip6_input.c IP6_INC_STATS_BH(net, idev, net 222 net/ipv6/ip6_input.c IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INDELIVERS); net 229 net/ipv6/ip6_input.c IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INDISCARDS); net 200 net/ipv6/ip6_output.c struct net *net = sock_net(sk); net 223 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(skb->dst), net 277 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(skb->dst), net 287 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(skb->dst), IPSTATS_MIB_FRAGFAILS); net 420 net/ipv6/ip6_output.c struct net *net = dev_net(dst->dev); net 422 net/ipv6/ip6_output.c if (net->ipv6.devconf_all->forwarding == 0) net 429 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(dst), IPSTATS_MIB_INDISCARDS); net 462 net/ipv6/ip6_output.c IP6_INC_STATS_BH(net, net 470 net/ipv6/ip6_output.c if (net->ipv6.devconf_all->proxy_ndp && net 471 net/ipv6/ip6_output.c pneigh_lookup(&nd_tbl, net, &hdr->daddr, skb->dev, 0)) { net 476 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(dst), net 483 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(dst), IPSTATS_MIB_INDISCARDS); net 532 net/ipv6/ip6_output.c IP6_INC_STATS_BH(net, net 534 net/ipv6/ip6_output.c IP6_INC_STATS_BH(net, net 541 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(dst), IPSTATS_MIB_OUTDISCARDS); net 551 net/ipv6/ip6_output.c IP6_INC_STATS_BH(net, ip6_dst_idev(dst), IPSTATS_MIB_OUTFORWDATAGRAMS); net 556 net/ipv6/ip6_output.c IP6_INC_STATS_BH(net, ip6_dst_idev(dst), IPSTATS_MIB_INADDRERRORS); net 633 net/ipv6/ip6_output.c struct net *net = dev_net(skb->dst->dev); net 647 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(skb->dst), net 697 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(skb->dst), net 749 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(&rt->u.dst), net 763 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(&rt->u.dst), net 775 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(&rt->u.dst), net 810 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(skb->dst), net 874 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(skb->dst), net 877 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(skb->dst), net 883 net/ipv6/ip6_output.c IP6_INC_STATS(net, ip6_dst_idev(skb->dst), net 941 net/ipv6/ip6_output.c struct net *net = sock_net(sk); net 944 net/ipv6/ip6_output.c *dst = ip6_route_output(net, sk, fl); net 950 net/ipv6/ip6_output.c err = ipv6_dev_get_saddr(net, ip6_dst_idev(*dst)->dev, net 972 net/ipv6/ip6_output.c ifp = ipv6_get_ifaddr(net, &fl->fl6_src, net 987 net/ipv6/ip6_output.c *dst = ip6_route_output(net, sk, &fl_gw); net 998 net/ipv6/ip6_output.c IP6_INC_STATS_BH(net, NULL, IPSTATS_MIB_OUTNOROUTES); net 1427 net/ipv6/ip6_output.c struct net *net = sock_net(sk); net 1481 net/ipv6/ip6_output.c IP6_INC_STATS(net, rt->rt6i_idev, IPSTATS_MIB_OUTREQUESTS); net 1485 net/ipv6/ip6_output.c ICMP6MSGOUT_INC_STATS_BH(net, idev, icmp6_hdr(skb)->icmp6_type); net 1486 net/ipv6/ip6_output.c ICMP6_INC_STATS_BH(net, idev, ICMP6_MIB_OUTMSGS); net 139 net/ipv6/ip6_tunnel.c struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id); net 233 net/ipv6/ip6_tunnel.c struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id); net 244 net/ipv6/ip6_tunnel.c dev_net_set(dev, net); net 288 net/ipv6/ip6_tunnel.c struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id); net 297 net/ipv6/ip6_tunnel.c return ip6_tnl_create(net, p); net 312 net/ipv6/ip6_tunnel.c struct net *net = dev_net(dev); net 313 net/ipv6/ip6_tunnel.c struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id); net 660 net/ipv6/ip6_tunnel.c struct net *net = dev_net(t->dev); net 666 net/ipv6/ip6_tunnel.c ldev = dev_get_by_index(net, p->link); net 669 net/ipv6/ip6_tunnel.c likely(ipv6_chk_addr(net, &p->laddr, ldev, 0))) && net 670 net/ipv6/ip6_tunnel.c likely(!ipv6_chk_addr(net, &p->raddr, NULL, 0))) net 798 net/ipv6/ip6_tunnel.c struct net *net = dev_net(t->dev); net 804 net/ipv6/ip6_tunnel.c ldev = dev_get_by_index(net, p->link); net 806 net/ipv6/ip6_tunnel.c if (unlikely(!ipv6_chk_addr(net, &p->laddr, ldev, 0))) net 811 net/ipv6/ip6_tunnel.c unlikely(ipv6_chk_addr(net, &p->raddr, NULL, 0))) net 1209 net/ipv6/ip6_tunnel.c struct net *net = dev_net(dev); net 1210 net/ipv6/ip6_tunnel.c struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id); net 1219 net/ipv6/ip6_tunnel.c t = ip6_tnl_locate(net, &p, 0); net 1240 net/ipv6/ip6_tunnel.c t = ip6_tnl_locate(net, &p, cmd == SIOCADDTUNNEL); net 1273 net/ipv6/ip6_tunnel.c if ((t = ip6_tnl_locate(net, &p, 0)) == NULL) net 1372 net/ipv6/ip6_tunnel.c struct net *net = dev_net(dev); net 1373 net/ipv6/ip6_tunnel.c struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id); net 1418 net/ipv6/ip6_tunnel.c err = net_assign_generic(net, ip6_tnl_net_id, ip6n); net 1433 net/ipv6/ip6_tunnel.c dev_net_set(ip6n->fb_tnl_dev, net); net 1454 net/ipv6/ip6_tunnel.c ip6n = net_generic(net, ip6_tnl_net_id); net 129 net/ipv6/ipv6_sockglue.c struct net *net = sock_net(sk); net 196 net/ipv6/ipv6_sockglue.c sock_prot_inuse_add(net, sk->sk_prot, -1); net 197 net/ipv6/ipv6_sockglue.c sock_prot_inuse_add(net, &tcp_prot, 1); net 210 net/ipv6/ipv6_sockglue.c sock_prot_inuse_add(net, sk->sk_prot, -1); net 211 net/ipv6/ipv6_sockglue.c sock_prot_inuse_add(net, prot, 1); net 427 net/ipv6/ipv6_sockglue.c retv = datagram_send_ctl(net, &msg, &fl, opt, &junk, &junk); net 477 net/ipv6/ipv6_sockglue.c if (__dev_get_by_index(net, val) == NULL) { net 180 net/ipv6/mcast.c struct net *net = sock_net(sk); net 206 net/ipv6/mcast.c rt = rt6_lookup(net, addr, NULL, 0, 0); net 213 net/ipv6/mcast.c dev = dev_get_by_index(net, ifindex); net 254 net/ipv6/mcast.c struct net *net = sock_net(sk); net 265 net/ipv6/mcast.c dev = dev_get_by_index(net, mc_lst->ifindex); net 296 net/ipv6/mcast.c rt = rt6_lookup(net, group, NULL, 0, 0); net 303 net/ipv6/mcast.c dev = dev_get_by_index(net, ifindex); net 326 net/ipv6/mcast.c struct net *net = sock_net(sk); net 335 net/ipv6/mcast.c dev = dev_get_by_index(net, mc_lst->ifindex); net 364 net/ipv6/mcast.c struct net *net = sock_net(sk); net 376 net/ipv6/mcast.c idev = ip6_mc_find_dev(net, group, pgsr->gsr_interface); net 500 net/ipv6/mcast.c struct net *net = sock_net(sk); net 512 net/ipv6/mcast.c idev = ip6_mc_find_dev(net, group, gsf->gf_interface); net 593 net/ipv6/mcast.c struct net *net = sock_net(sk); net 600 net/ipv6/mcast.c idev = ip6_mc_find_dev(net, group, gsf->gf_interface); net 1395 net/ipv6/mcast.c struct net *net = dev_net(dev); net 1396 net/ipv6/mcast.c struct sock *sk = net->ipv6.igmp_sk; net 1445 net/ipv6/mcast.c struct net *net = dev_net(skb->dev); net 1449 net/ipv6/mcast.c IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTREQUESTS); net 1465 net/ipv6/mcast.c icmpv6_flow_init(net->ipv6.igmp_sk, &fl, ICMPV6_MLD2_REPORT, net 1477 net/ipv6/mcast.c ICMP6MSGOUT_INC_STATS_BH(net, idev, ICMPV6_MLD2_REPORT); net 1478 net/ipv6/mcast.c ICMP6_INC_STATS_BH(net, idev, ICMP6_MIB_OUTMSGS); net 1479 net/ipv6/mcast.c IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_OUTMCASTPKTS); net 1481 net/ipv6/mcast.c IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_OUTDISCARDS); net 1759 net/ipv6/mcast.c struct net *net = dev_net(dev); net 1760 net/ipv6/mcast.c struct sock *sk = net->ipv6.igmp_sk; net 1774 net/ipv6/mcast.c IP6_INC_STATS(net, __in6_dev_get(dev), net 1790 net/ipv6/mcast.c IP6_INC_STATS(net, __in6_dev_get(dev), net 1842 net/ipv6/mcast.c ICMP6MSGOUT_INC_STATS(net, idev, type); net 1843 net/ipv6/mcast.c ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS); net 1844 net/ipv6/mcast.c IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTMCASTPKTS); net 1846 net/ipv6/mcast.c IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTDISCARDS); net 2346 net/ipv6/mcast.c struct net *net = seq_file_net(seq); net 2349 net/ipv6/mcast.c for_each_netdev(net, state->dev) { net 2477 net/ipv6/mcast.c struct net *net = seq_file_net(seq); net 2481 net/ipv6/mcast.c for_each_netdev(net, state->dev) { net 2630 net/ipv6/mcast.c if (!proc_net_fops_create(net, "igmp6", S_IRUGO, &igmp6_mc_seq_fops)) net 2632 net/ipv6/mcast.c if (!proc_net_fops_create(net, "mcfilter6", S_IRUGO, net 2641 net/ipv6/mcast.c proc_net_remove(net, "igmp6"); net 2647 net/ipv6/mcast.c proc_net_remove(net, "mcfilter6"); net 2648 net/ipv6/mcast.c proc_net_remove(net, "igmp6"); net 2665 net/ipv6/mcast.c err = inet_ctl_sock_create(&net->ipv6.igmp_sk, PF_INET6, net 2666 net/ipv6/mcast.c SOCK_RAW, IPPROTO_ICMPV6, net); net 2674 net/ipv6/mcast.c inet6_sk(net->ipv6.igmp_sk)->hop_limit = 1; net 2676 net/ipv6/mcast.c err = igmp6_proc_init(net); net 2683 net/ipv6/mcast.c inet_ctl_sock_destroy(net->ipv6.igmp_sk); net 2689 net/ipv6/mcast.c inet_ctl_sock_destroy(net->ipv6.igmp_sk); net 2690 net/ipv6/mcast.c igmp6_proc_exit(net); net 452 net/ipv6/ndisc.c struct net *net = dev_net(dev); net 453 net/ipv6/ndisc.c struct sock *sk = net->ipv6.ndisc_sk; net 519 net/ipv6/ndisc.c IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTREQUESTS); net 524 net/ipv6/ndisc.c ICMP6MSGOUT_INC_STATS(net, idev, type); net 525 net/ipv6/ndisc.c ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS); net 787 net/ipv6/ndisc.c struct net *net = dev_net(dev); net 795 net/ipv6/ndisc.c if (ipv6_chk_acast_addr(net, dev, &msg->target) || net 797 net/ipv6/ndisc.c (net->ipv6.devconf_all->proxy_ndp || idev->cnf.proxy_ndp) && net 926 net/ipv6/ndisc.c struct net *net = dev_net(dev); net 937 net/ipv6/ndisc.c net->ipv6.devconf_all->forwarding && net->ipv6.devconf_all->proxy_ndp && net 938 net/ipv6/ndisc.c pneigh_lookup(&nd_tbl, net, &msg->target, dev, 0)) { net 1028 net/ipv6/ndisc.c struct net *net = dev_net(ra->dev); net 1058 net/ipv6/ndisc.c err = rtnl_notify(skb, net, 0, RTNLGRP_ND_USEROPT, NULL, net 1069 net/ipv6/ndisc.c rtnl_set_sk_err(net, RTNLGRP_ND_USEROPT, err); net 1455 net/ipv6/ndisc.c struct net *net = dev_net(dev); net 1456 net/ipv6/ndisc.c struct sock *sk = net->ipv6.ndisc_sk; net 1488 net/ipv6/ndisc.c dst = ip6_route_output(net, NULL, &fl); net 1584 net/ipv6/ndisc.c IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTREQUESTS); net 1588 net/ipv6/ndisc.c ICMP6MSGOUT_INC_STATS(net, idev, NDISC_REDIRECT); net 1589 net/ipv6/ndisc.c ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS); net 1657 net/ipv6/ndisc.c struct net *net = dev_net(dev); net 1662 net/ipv6/ndisc.c fib6_run_gc(~0UL, net); net 1666 net/ipv6/ndisc.c fib6_run_gc(~0UL, net); net 1782 net/ipv6/ndisc.c SOCK_RAW, IPPROTO_ICMPV6, net); net 1790 net/ipv6/ndisc.c net->ipv6.ndisc_sk = sk; net 1802 net/ipv6/ndisc.c inet_ctl_sock_destroy(net->ipv6.ndisc_sk); net 505 net/ipv6/netfilter/ip6_queue.c if ((n->net == &init_net) && (n->pid == peer_pid)) net 1148 net/ipv6/netfilter/ip6_tables.c t = try_then_request_module(xt_find_table_lock(net, AF_INET6, name), net 1206 net/ipv6/netfilter/ip6_tables.c t = xt_find_table_lock(net, AF_INET6, get.name); net 1245 net/ipv6/netfilter/ip6_tables.c t = try_then_request_module(xt_find_table_lock(net, AF_INET6, name), net 1332 net/ipv6/netfilter/ip6_tables.c ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, net 1421 net/ipv6/netfilter/ip6_tables.c t = xt_find_table_lock(net, AF_INET6, name); net 1869 net/ipv6/netfilter/ip6_tables.c ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, net 1968 net/ipv6/netfilter/ip6_tables.c t = xt_find_table_lock(net, AF_INET6, get.name); net 2120 net/ipv6/netfilter/ip6_tables.c new_table = xt_register_table(net, table, &bootstrap, newinfo); net 2243 net/ipv6/netfilter/ip6_tables.c return xt_proto_init(net, AF_INET6); net 2248 net/ipv6/netfilter/ip6_tables.c xt_proto_fini(net, AF_INET6); net 97 net/ipv6/netfilter/ip6t_REJECT.c dst = ip6_route_output(net, NULL, &fl); net 170 net/ipv6/netfilter/ip6t_REJECT.c skb_in->dev = net->loopback_dev; net 179 net/ipv6/netfilter/ip6t_REJECT.c struct net *net = dev_net((par->in != NULL) ? par->in : par->out); net 187 net/ipv6/netfilter/ip6t_REJECT.c send_unreach(net, skb, ICMPV6_NOROUTE, par->hooknum); net 190 net/ipv6/netfilter/ip6t_REJECT.c send_unreach(net, skb, ICMPV6_ADM_PROHIBITED, par->hooknum); net 193 net/ipv6/netfilter/ip6t_REJECT.c send_unreach(net, skb, ICMPV6_NOT_NEIGHBOUR, par->hooknum); net 196 net/ipv6/netfilter/ip6t_REJECT.c send_unreach(net, skb, ICMPV6_ADDR_UNREACH, par->hooknum); net 199 net/ipv6/netfilter/ip6t_REJECT.c send_unreach(net, skb, ICMPV6_PORT_UNREACH, par->hooknum); net 205 net/ipv6/netfilter/ip6t_REJECT.c send_reset(net, skb); net 137 net/ipv6/netfilter/ip6table_filter.c net->ipv6.ip6table_filter = net 138 net/ipv6/netfilter/ip6table_filter.c ip6t_register_table(net, &packet_filter, &initial_table.repl); net 139 net/ipv6/netfilter/ip6table_filter.c if (IS_ERR(net->ipv6.ip6table_filter)) net 140 net/ipv6/netfilter/ip6table_filter.c return PTR_ERR(net->ipv6.ip6table_filter); net 146 net/ipv6/netfilter/ip6table_filter.c ip6t_unregister_table(net->ipv6.ip6table_filter); net 177 net/ipv6/netfilter/ip6table_mangle.c net->ipv6.ip6table_mangle = net 178 net/ipv6/netfilter/ip6table_mangle.c ip6t_register_table(net, &packet_mangler, &initial_table.repl); net 179 net/ipv6/netfilter/ip6table_mangle.c if (IS_ERR(net->ipv6.ip6table_mangle)) net 180 net/ipv6/netfilter/ip6table_mangle.c return PTR_ERR(net->ipv6.ip6table_mangle); net 186 net/ipv6/netfilter/ip6table_mangle.c ip6t_unregister_table(net->ipv6.ip6table_mangle); net 89 net/ipv6/netfilter/ip6table_raw.c net->ipv6.ip6table_raw = net 90 net/ipv6/netfilter/ip6table_raw.c ip6t_register_table(net, &packet_raw, &initial_table.repl); net 91 net/ipv6/netfilter/ip6table_raw.c if (IS_ERR(net->ipv6.ip6table_raw)) net 92 net/ipv6/netfilter/ip6table_raw.c return PTR_ERR(net->ipv6.ip6table_raw); net 98 net/ipv6/netfilter/ip6table_raw.c ip6t_unregister_table(net->ipv6.ip6table_raw); net 127 net/ipv6/netfilter/ip6table_security.c net->ipv6.ip6table_security = net 128 net/ipv6/netfilter/ip6table_security.c ip6t_register_table(net, &security_table, &initial_table.repl); net 130 net/ipv6/netfilter/ip6table_security.c if (IS_ERR(net->ipv6.ip6table_security)) net 131 net/ipv6/netfilter/ip6table_security.c return PTR_ERR(net->ipv6.ip6table_security); net 138 net/ipv6/netfilter/ip6table_security.c ip6t_unregister_table(net->ipv6.ip6table_security); net 227 net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c ret = nf_conntrack_in(net, PF_INET6, hooknum, reasm); net 237 net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c return nf_conntrack_in(net, PF_INET6, hooknum, skb); net 160 net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c h = nf_conntrack_find_get(net, &intuple); net 184 net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c if (LOG_INVALID(net, IPPROTO_ICMPV6)) net 190 net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && net 201 net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c return icmpv6_error_message(net, skb, dataoff, ctinfo, hooknum); net 34 net/ipv6/proc.c struct net *net = seq->private; net 37 net/ipv6/proc.c sock_prot_inuse_get(net, &tcpv6_prot)); net 39 net/ipv6/proc.c sock_prot_inuse_get(net, &udpv6_prot)); net 41 net/ipv6/proc.c sock_prot_inuse_get(net, &udplitev6_prot)); net 43 net/ipv6/proc.c sock_prot_inuse_get(net, &rawv6_prot)); net 45 net/ipv6/proc.c ip6_frag_nqueues(net), ip6_frag_mem(net)); net 178 net/ipv6/proc.c struct net *net = (struct net *)seq->private; net 180 net/ipv6/proc.c snmp6_seq_show_item(seq, (void **)net->mib.ipv6_statistics, net 182 net/ipv6/proc.c snmp6_seq_show_item(seq, (void **)net->mib.icmpv6_statistics, net 184 net/ipv6/proc.c snmp6_seq_show_icmpv6msg(seq, (void **)net->mib.icmpv6msg_statistics); net 185 net/ipv6/proc.c snmp6_seq_show_item(seq, (void **)net->mib.udp_stats_in6, net 187 net/ipv6/proc.c snmp6_seq_show_item(seq, (void **)net->mib.udplite_stats_in6, net 232 net/ipv6/proc.c struct net *net; net 237 net/ipv6/proc.c net = dev_net(idev->dev); net 238 net/ipv6/proc.c if (!net->mib.proc_net_devsnmp6) net 242 net/ipv6/proc.c net->mib.proc_net_devsnmp6, net 253 net/ipv6/proc.c struct net *net = dev_net(idev->dev); net 254 net/ipv6/proc.c if (!net->mib.proc_net_devsnmp6) net 259 net/ipv6/proc.c net->mib.proc_net_devsnmp6); net 266 net/ipv6/proc.c if (!proc_net_fops_create(net, "sockstat6", S_IRUGO, net 270 net/ipv6/proc.c if (!proc_net_fops_create(net, "snmp6", S_IRUGO, &snmp6_seq_fops)) net 273 net/ipv6/proc.c net->mib.proc_net_devsnmp6 = proc_mkdir("dev_snmp6", net->proc_net); net 274 net/ipv6/proc.c if (!net->mib.proc_net_devsnmp6) net 279 net/ipv6/proc.c proc_net_remove(net, "sockstat6"); net 281 net/ipv6/proc.c proc_net_remove(net, "dev_snmp6"); net 287 net/ipv6/proc.c proc_net_remove(net, "sockstat6"); net 288 net/ipv6/proc.c proc_net_remove(net, "dev_snmp6"); net 289 net/ipv6/proc.c proc_net_remove(net, "snmp6"); net 78 net/ipv6/raw.c if (!net_eq(sock_net(sk), net)) net 160 net/ipv6/raw.c struct net *net; net 173 net/ipv6/raw.c net = dev_net(skb->dev); net 174 net/ipv6/raw.c sk = __raw_v6_lookup(net, sk, nexthdr, daddr, saddr, IP6CB(skb)->iif); net 217 net/ipv6/raw.c sk = __raw_v6_lookup(net, sk_next(sk), nexthdr, daddr, saddr, net 351 net/ipv6/raw.c struct net *net; net 362 net/ipv6/raw.c net = dev_net(skb->dev); net 364 net/ipv6/raw.c while ((sk = __raw_v6_lookup(net, sk, nexthdr, saddr, daddr, net 1282 net/ipv6/raw.c if (!proc_net_fops_create(net, "raw6", S_IRUGO, &raw6_seq_fops)) net 1290 net/ipv6/raw.c proc_net_remove(net, "raw6"); net 87 net/ipv6/reassembly.c return net->ipv6.frags.nqueues; net 92 net/ipv6/reassembly.c return atomic_read(&net->ipv6.frags.mem); net 190 net/ipv6/reassembly.c evicted = inet_frag_evictor(&net->ipv6.frags, &ip6_frags); net 192 net/ipv6/reassembly.c IP6_ADD_STATS_BH(net, idev, IPSTATS_MIB_REASMFAILS, evicted); net 199 net/ipv6/reassembly.c struct net *net; net 210 net/ipv6/reassembly.c net = container_of(fq->q.net, struct net, ipv6.frags); net 211 net/ipv6/reassembly.c dev = dev_get_by_index(net, fq->iif); net 216 net/ipv6/reassembly.c IP6_INC_STATS_BH(net, __in6_dev_get(dev), IPSTATS_MIB_REASMTIMEOUT); net 217 net/ipv6/reassembly.c IP6_INC_STATS_BH(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS); net 253 net/ipv6/reassembly.c q = inet_frag_find(&net->ipv6.frags, &ip6_frags, &arg, hash); net 260 net/ipv6/reassembly.c IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_REASMFAILS); net 270 net/ipv6/reassembly.c struct net *net = dev_net(skb->dst->dev); net 280 net/ipv6/reassembly.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 313 net/ipv6/reassembly.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), net 397 net/ipv6/reassembly.c frag_kfree_skb(fq->q.net, free_it, NULL); net 417 net/ipv6/reassembly.c atomic_add(skb->truesize, &fq->q.net->mem); net 432 net/ipv6/reassembly.c list_move_tail(&fq->q.lru_list, &fq->q.net->lru_list); net 437 net/ipv6/reassembly.c IP6_INC_STATS(net, ip6_dst_idev(skb->dst), net 513 net/ipv6/reassembly.c atomic_add(clone->truesize, &fq->q.net->mem); net 528 net/ipv6/reassembly.c atomic_sub(head->truesize, &fq->q.net->mem); net 538 net/ipv6/reassembly.c atomic_sub(fp->truesize, &fq->q.net->mem); net 580 net/ipv6/reassembly.c struct net *net = dev_net(skb->dst->dev); net 582 net/ipv6/reassembly.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), IPSTATS_MIB_REASMREQDS); net 598 net/ipv6/reassembly.c IP6_INC_STATS_BH(net, net 605 net/ipv6/reassembly.c if (atomic_read(&net->ipv6.frags.mem) > net->ipv6.frags.high_thresh) net 606 net/ipv6/reassembly.c ip6_evictor(net, ip6_dst_idev(skb->dst)); net 608 net/ipv6/reassembly.c if ((fq = fq_find(net, fhdr->identification, &hdr->saddr, &hdr->daddr, net 621 net/ipv6/reassembly.c IP6_INC_STATS_BH(net, ip6_dst_idev(skb->dst), IPSTATS_MIB_REASMFAILS); net 626 net/ipv6/reassembly.c IP6_INC_STATS(net, ip6_dst_idev(skb->dst), IPSTATS_MIB_INHDRERRORS); net 686 net/ipv6/reassembly.c if (net != &init_net) { net 691 net/ipv6/reassembly.c table[0].data = &net->ipv6.frags.high_thresh; net 692 net/ipv6/reassembly.c table[1].data = &net->ipv6.frags.low_thresh; net 693 net/ipv6/reassembly.c table[2].data = &net->ipv6.frags.timeout; net 696 net/ipv6/reassembly.c hdr = register_net_sysctl_table(net, net_ipv6_ctl_path, table); net 700 net/ipv6/reassembly.c net->ipv6.sysctl.frags_hdr = hdr; net 704 net/ipv6/reassembly.c if (net != &init_net) net 714 net/ipv6/reassembly.c table = net->ipv6.sysctl.frags_hdr->ctl_table_arg; net 715 net/ipv6/reassembly.c unregister_net_sysctl_table(net->ipv6.sysctl.frags_hdr); net 754 net/ipv6/reassembly.c net->ipv6.frags.high_thresh = 256 * 1024; net 755 net/ipv6/reassembly.c net->ipv6.frags.low_thresh = 192 * 1024; net 756 net/ipv6/reassembly.c net->ipv6.frags.timeout = IPV6_FRAG_TIMEOUT; net 758 net/ipv6/reassembly.c inet_frags_init_net(&net->ipv6.frags); net 760 net/ipv6/reassembly.c return ip6_frags_ns_sysctl_register(net); net 765 net/ipv6/reassembly.c ip6_frags_ns_sysctl_unregister(net); net 766 net/ipv6/reassembly.c inet_frags_exit_net(&net->ipv6.frags, &ip6_frags); net 268 net/ipv6/route.c if (ipv6_chk_addr(net, saddr, dev, net 279 net/ipv6/route.c return net->ipv6.ip6_null_entry; net 421 net/ipv6/route.c struct net *net; net 447 net/ipv6/route.c net = dev_net(rt0->rt6i_dev); net 448 net/ipv6/route.c return (match ? match : net->ipv6.ip6_null_entry); net 455 net/ipv6/route.c struct net *net = dev_net(dev); net 497 net/ipv6/route.c rt = rt6_get_route_info(net, prefix, rinfo->prefix_len, gwaddr, net 506 net/ipv6/route.c rt = rt6_add_route_info(net, prefix, rinfo->prefix_len, gwaddr, dev->ifindex, net 554 net/ipv6/route.c rt = rt6_device_match(net, rt, &fl->fl6_src, fl->oif, flags); net 555 net/ipv6/route.c BACKTRACK(net, &fl->fl6_src); net 582 net/ipv6/route.c dst = fib6_rule_lookup(net, &fl, flags, ip6_pol_route_lookup); net 679 net/ipv6/route.c int reachable = net->ipv6.devconf_all->forwarding ? 0 : RT6_LOOKUP_F_REACHABLE; net 692 net/ipv6/route.c BACKTRACK(net, &fl->fl6_src); net 693 net/ipv6/route.c if (rt == net->ipv6.ip6_null_entry || net 711 net/ipv6/route.c rt = nrt ? : net->ipv6.ip6_null_entry; net 747 net/ipv6/route.c return ip6_pol_route(net, table, fl->iif, fl, flags); net 753 net/ipv6/route.c struct net *net = dev_net(skb->dev); net 771 net/ipv6/route.c skb->dst = fib6_rule_lookup(net, &fl, flags, ip6_pol_route_input); net 777 net/ipv6/route.c return ip6_pol_route(net, table, fl->oif, fl, flags); net 800 net/ipv6/route.c return fib6_rule_lookup(net, fl, flags, ip6_pol_route_output); net 913 net/ipv6/route.c if (mtu < net->ipv6.sysctl.ip6_rt_min_advmss) net 914 net/ipv6/route.c mtu = net->ipv6.sysctl.ip6_rt_min_advmss; net 936 net/ipv6/route.c struct net *net = dev_net(dev); net 941 net/ipv6/route.c rt = ip6_dst_alloc(net->ipv6.ip6_dst_ops); net 959 net/ipv6/route.c rt->u.dst.metrics[RTAX_ADVMSS-1] = ipv6_advmss(net, dst_mtu(&rt->u.dst)); net 975 net/ipv6/route.c fib6_force_start_gc(net); net 1028 net/ipv6/route.c struct net *net = ops->dst_net; net 1029 net/ipv6/route.c int rt_min_interval = net->ipv6.sysctl.ip6_rt_gc_min_interval; net 1030 net/ipv6/route.c int rt_max_size = net->ipv6.sysctl.ip6_rt_max_size; net 1031 net/ipv6/route.c int rt_elasticity = net->ipv6.sysctl.ip6_rt_gc_elasticity; net 1032 net/ipv6/route.c int rt_gc_timeout = net->ipv6.sysctl.ip6_rt_gc_timeout; net 1033 net/ipv6/route.c unsigned long rt_last_gc = net->ipv6.ip6_rt_last_gc; net 1039 net/ipv6/route.c net->ipv6.ip6_rt_gc_expire++; net 1040 net/ipv6/route.c fib6_run_gc(net->ipv6.ip6_rt_gc_expire, net); net 1041 net/ipv6/route.c net->ipv6.ip6_rt_last_gc = now; net 1043 net/ipv6/route.c net->ipv6.ip6_rt_gc_expire = rt_gc_timeout>>1; net 1045 net/ipv6/route.c net->ipv6.ip6_rt_gc_expire -= net->ipv6.ip6_rt_gc_expire>>rt_elasticity; net 1090 net/ipv6/route.c struct net *net = cfg->fc_nlinfo.nl_net; net 1105 net/ipv6/route.c dev = dev_get_by_index(net, cfg->fc_ifindex); net 1116 net/ipv6/route.c table = fib6_new_table(net, cfg->fc_table); net 1122 net/ipv6/route.c rt = ip6_dst_alloc(net->ipv6.ip6_dst_ops); net 1165 net/ipv6/route.c if (dev != net->loopback_dev) { net 1170 net/ipv6/route.c dev = net->loopback_dev; net 1207 net/ipv6/route.c grt = rt6_lookup(net, gw_addr, NULL, cfg->fc_ifindex, 1); net 1274 net/ipv6/route.c rt->u.dst.metrics[RTAX_ADVMSS-1] = ipv6_advmss(net, dst_mtu(&rt->u.dst)); net 1297 net/ipv6/route.c struct net *net = dev_net(rt->rt6i_dev); net 1299 net/ipv6/route.c if (rt == net->ipv6.ip6_null_entry) net 1412 net/ipv6/route.c rt = net->ipv6.ip6_null_entry; net 1413 net/ipv6/route.c BACKTRACK(net, &fl->fl6_src); net 1428 net/ipv6/route.c struct net *net = dev_net(dev); net 1445 net/ipv6/route.c return (struct rt6_info *)fib6_rule_lookup(net, (struct flowi *)&rdfl, net 1455 net/ipv6/route.c struct net *net = dev_net(neigh->dev); net 1459 net/ipv6/route.c if (rt == net->ipv6.ip6_null_entry) { net 1533 net/ipv6/route.c struct net *net = dev_net(dev); net 1536 net/ipv6/route.c rt = rt6_lookup(net, daddr, saddr, dev->ifindex, 0); net 1569 net/ipv6/route.c dst_set_expires(&rt->u.dst, net->ipv6.sysctl.ip6_rt_mtu_expires); net 1595 net/ipv6/route.c dst_set_expires(&nrt->u.dst, net->ipv6.sysctl.ip6_rt_mtu_expires); net 1610 net/ipv6/route.c struct net *net = dev_net(ort->rt6i_dev); net 1611 net/ipv6/route.c struct rt6_info *rt = ip6_dst_alloc(net->ipv6.ip6_dst_ops); net 1650 net/ipv6/route.c table = fib6_get_table(net, RT6_TABLE_INFO); net 1688 net/ipv6/route.c .fc_nlinfo.nl_net = net, net 1700 net/ipv6/route.c return rt6_get_route_info(net, prefix, prefixlen, gwaddr, ifindex); net 1754 net/ipv6/route.c table = fib6_get_table(net, RT6_TABLE_DFLT); net 1785 net/ipv6/route.c cfg->fc_nlinfo.nl_net = net; net 1808 net/ipv6/route.c rtmsg_to_fib6_config(net, &rtmsg, &cfg); net 1890 net/ipv6/route.c struct net *net = dev_net(idev->dev); net 1891 net/ipv6/route.c struct rt6_info *rt = ip6_dst_alloc(net->ipv6.ip6_dst_ops); net 1896 net/ipv6/route.c dev_hold(net->loopback_dev); net 1902 net/ipv6/route.c rt->rt6i_dev = net->loopback_dev; net 1905 net/ipv6/route.c rt->u.dst.metrics[RTAX_ADVMSS-1] = ipv6_advmss(net, dst_mtu(&rt->u.dst)); net 1922 net/ipv6/route.c rt->rt6i_table = fib6_get_table(net, RT6_TABLE_LOCAL); net 1931 net/ipv6/route.c struct net *net; net 1937 net/ipv6/route.c struct net *net = ((struct arg_dev_net *)arg)->net; net 1940 net/ipv6/route.c rt != net->ipv6.ip6_null_entry) { net 1951 net/ipv6/route.c .net = net, net 1954 net/ipv6/route.c fib6_clean_all(net, fib6_ifdown, 0, &adn); net 1968 net/ipv6/route.c struct net *net = dev_net(arg->dev); net 2000 net/ipv6/route.c rt->u.dst.metrics[RTAX_ADVMSS-1] = ipv6_advmss(net, arg->mtu); net 2216 net/ipv6/route.c if (ipv6_dev_get_saddr(net, idev ? idev->dev : NULL, net 2261 net/ipv6/route.c return rt6_fill_node(arg->net, net 2269 net/ipv6/route.c struct net *net = sock_net(in_skb->sk); net 2306 net/ipv6/route.c dev = __dev_get_by_index(net, iif); net 2325 net/ipv6/route.c rt = (struct rt6_info*) ip6_route_output(net, NULL, &fl); net 2328 net/ipv6/route.c err = rt6_fill_node(net, skb, rt, &fl.fl6_dst, &fl.fl6_src, iif, net 2336 net/ipv6/route.c err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).pid); net 2344 net/ipv6/route.c struct net *net = info->nl_net; net 2355 net/ipv6/route.c err = rt6_fill_node(net, skb, rt, NULL, NULL, 0, net 2363 net/ipv6/route.c err = rtnl_notify(skb, net, info->pid, RTNLGRP_IPV6_ROUTE, net 2367 net/ipv6/route.c rtnl_set_sk_err(net, RTNLGRP_IPV6_ROUTE, err); net 2374 net/ipv6/route.c struct net *net = dev_net(dev); net 2377 net/ipv6/route.c net->ipv6.ip6_null_entry->u.dst.dev = dev; net 2378 net/ipv6/route.c net->ipv6.ip6_null_entry->rt6i_idev = in6_dev_get(dev); net 2380 net/ipv6/route.c net->ipv6.ip6_prohibit_entry->u.dst.dev = dev; net 2381 net/ipv6/route.c net->ipv6.ip6_prohibit_entry->rt6i_idev = in6_dev_get(dev); net 2382 net/ipv6/route.c net->ipv6.ip6_blk_hole_entry->u.dst.dev = dev; net 2383 net/ipv6/route.c net->ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(dev); net 2436 net/ipv6/route.c struct net *net = (struct net *)m->private; net 2437 net/ipv6/route.c fib6_clean_all(net, rt6_info_route, 0, m); net 2456 net/ipv6/route.c struct net *net = (struct net *)seq->private; net 2458 net/ipv6/route.c net->ipv6.rt6_stats->fib_nodes, net 2459 net/ipv6/route.c net->ipv6.rt6_stats->fib_route_nodes, net 2460 net/ipv6/route.c net->ipv6.rt6_stats->fib_rt_alloc, net 2461 net/ipv6/route.c net->ipv6.rt6_stats->fib_rt_entries, net 2462 net/ipv6/route.c net->ipv6.rt6_stats->fib_rt_cache, net 2463 net/ipv6/route.c atomic_read(&net->ipv6.ip6_dst_ops->entries), net 2464 net/ipv6/route.c net->ipv6.rt6_stats->fib_discarded_routes); net 2489 net/ipv6/route.c struct net *net = current->nsproxy->net_ns; net 2490 net/ipv6/route.c int delay = net->ipv6.sysctl.flush_delay; net 2493 net/ipv6/route.c fib6_run_gc(delay <= 0 ? ~0UL : (unsigned long)delay, net); net 2598 net/ipv6/route.c table[0].data = &net->ipv6.sysctl.flush_delay; net 2599 net/ipv6/route.c table[1].data = &net->ipv6.ip6_dst_ops->gc_thresh; net 2600 net/ipv6/route.c table[2].data = &net->ipv6.sysctl.ip6_rt_max_size; net 2601 net/ipv6/route.c table[3].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval; net 2602 net/ipv6/route.c table[4].data = &net->ipv6.sysctl.ip6_rt_gc_timeout; net 2603 net/ipv6/route.c table[5].data = &net->ipv6.sysctl.ip6_rt_gc_interval; net 2604 net/ipv6/route.c table[6].data = &net->ipv6.sysctl.ip6_rt_gc_elasticity; net 2605 net/ipv6/route.c table[7].data = &net->ipv6.sysctl.ip6_rt_mtu_expires; net 2606 net/ipv6/route.c table[8].data = &net->ipv6.sysctl.ip6_rt_min_advmss; net 2617 net/ipv6/route.c net->ipv6.ip6_dst_ops = kmemdup(&ip6_dst_ops_template, net 2618 net/ipv6/route.c sizeof(*net->ipv6.ip6_dst_ops), net 2620 net/ipv6/route.c if (!net->ipv6.ip6_dst_ops) net 2622 net/ipv6/route.c net->ipv6.ip6_dst_ops->dst_net = hold_net(net); net 2624 net/ipv6/route.c net->ipv6.ip6_null_entry = kmemdup(&ip6_null_entry_template, net 2625 net/ipv6/route.c sizeof(*net->ipv6.ip6_null_entry), net 2627 net/ipv6/route.c if (!net->ipv6.ip6_null_entry) net 2629 net/ipv6/route.c net->ipv6.ip6_null_entry->u.dst.path = net 2630 net/ipv6/route.c (struct dst_entry *)net->ipv6.ip6_null_entry; net 2631 net/ipv6/route.c net->ipv6.ip6_null_entry->u.dst.ops = net->ipv6.ip6_dst_ops; net 2634 net/ipv6/route.c net->ipv6.ip6_prohibit_entry = kmemdup(&ip6_prohibit_entry_template, net 2635 net/ipv6/route.c sizeof(*net->ipv6.ip6_prohibit_entry), net 2637 net/ipv6/route.c if (!net->ipv6.ip6_prohibit_entry) net 2639 net/ipv6/route.c net->ipv6.ip6_prohibit_entry->u.dst.path = net 2640 net/ipv6/route.c (struct dst_entry *)net->ipv6.ip6_prohibit_entry; net 2641 net/ipv6/route.c net->ipv6.ip6_prohibit_entry->u.dst.ops = net->ipv6.ip6_dst_ops; net 2643 net/ipv6/route.c net->ipv6.ip6_blk_hole_entry = kmemdup(&ip6_blk_hole_entry_template, net 2644 net/ipv6/route.c sizeof(*net->ipv6.ip6_blk_hole_entry), net 2646 net/ipv6/route.c if (!net->ipv6.ip6_blk_hole_entry) net 2648 net/ipv6/route.c net->ipv6.ip6_blk_hole_entry->u.dst.path = net 2649 net/ipv6/route.c (struct dst_entry *)net->ipv6.ip6_blk_hole_entry; net 2650 net/ipv6/route.c net->ipv6.ip6_blk_hole_entry->u.dst.ops = net->ipv6.ip6_dst_ops; net 2653 net/ipv6/route.c net->ipv6.sysctl.flush_delay = 0; net 2654 net/ipv6/route.c net->ipv6.sysctl.ip6_rt_max_size = 4096; net 2655 net/ipv6/route.c net->ipv6.sysctl.ip6_rt_gc_min_interval = HZ / 2; net 2656 net/ipv6/route.c net->ipv6.sysctl.ip6_rt_gc_timeout = 60*HZ; net 2657 net/ipv6/route.c net->ipv6.sysctl.ip6_rt_gc_interval = 30*HZ; net 2658 net/ipv6/route.c net->ipv6.sysctl.ip6_rt_gc_elasticity = 9; net 2659 net/ipv6/route.c net->ipv6.sysctl.ip6_rt_mtu_expires = 10*60*HZ; net 2660 net/ipv6/route.c net->ipv6.sysctl.ip6_rt_min_advmss = IPV6_MIN_MTU - 20 - 40; net 2663 net/ipv6/route.c proc_net_fops_create(net, "ipv6_route", 0, &ipv6_route_proc_fops); net 2664 net/ipv6/route.c proc_net_fops_create(net, "rt6_stats", S_IRUGO, &rt6_stats_seq_fops); net 2666 net/ipv6/route.c net->ipv6.ip6_rt_gc_expire = 30*HZ; net 2674 net/ipv6/route.c kfree(net->ipv6.ip6_prohibit_entry); net 2676 net/ipv6/route.c kfree(net->ipv6.ip6_null_entry); net 2679 net/ipv6/route.c release_net(net->ipv6.ip6_dst_ops->dst_net); net 2680 net/ipv6/route.c kfree(net->ipv6.ip6_dst_ops); net 2687 net/ipv6/route.c proc_net_remove(net, "ipv6_route"); net 2688 net/ipv6/route.c proc_net_remove(net, "rt6_stats"); net 2690 net/ipv6/route.c kfree(net->ipv6.ip6_null_entry); net 2692 net/ipv6/route.c kfree(net->ipv6.ip6_prohibit_entry); net 2693 net/ipv6/route.c kfree(net->ipv6.ip6_blk_hole_entry); net 2695 net/ipv6/route.c release_net(net->ipv6.ip6_dst_ops->dst_net); net 2696 net/ipv6/route.c kfree(net->ipv6.ip6_dst_ops); net 88 net/ipv6/sit.c struct sit_net *sitn = net_generic(net, sit_net_id); net 165 net/ipv6/sit.c struct sit_net *sitn = net_generic(net, sit_net_id); net 183 net/ipv6/sit.c dev_net_set(dev, net); net 388 net/ipv6/sit.c struct net *net = dev_net(dev); net 389 net/ipv6/sit.c struct sit_net *sitn = net_generic(net, sit_net_id); net 775 net/ipv6/sit.c struct net *net = dev_net(dev); net 776 net/ipv6/sit.c struct sit_net *sitn = net_generic(net, sit_net_id); net 786 net/ipv6/sit.c t = ipip6_tunnel_locate(net, &p, 0); net 812 net/ipv6/sit.c t = ipip6_tunnel_locate(net, &p, cmd == SIOCADDTUNNEL); net 864 net/ipv6/sit.c if ((t = ipip6_tunnel_locate(net, &p, 0)) == NULL) net 967 net/ipv6/sit.c struct net *net = dev_net(dev); net 968 net/ipv6/sit.c struct sit_net *sitn = net_generic(net, sit_net_id); net 1013 net/ipv6/sit.c err = net_assign_generic(net, sit_net_id, sitn); net 1030 net/ipv6/sit.c dev_net_set(sitn->fb_tunnel_dev, net); net 1051 net/ipv6/sit.c sitn = net_generic(net, sit_net_id); net 75 net/ipv6/sysctl_net_ipv6.c ipv6_route_table = ipv6_route_sysctl_init(net); net 80 net/ipv6/sysctl_net_ipv6.c ipv6_icmp_table = ipv6_icmp_sysctl_init(net); net 85 net/ipv6/sysctl_net_ipv6.c ipv6_table[2].data = &net->ipv6.sysctl.bindv6only; net 87 net/ipv6/sysctl_net_ipv6.c net->ipv6.sysctl.table = register_net_sysctl_table(net, net_ipv6_ctl_path, net 89 net/ipv6/sysctl_net_ipv6.c if (!net->ipv6.sysctl.table) net 111 net/ipv6/sysctl_net_ipv6.c ipv6_table = net->ipv6.sysctl.table->ctl_table_arg; net 115 net/ipv6/sysctl_net_ipv6.c unregister_net_sysctl_table(net->ipv6.sysctl.table); net 327 net/ipv6/tcp_ipv6.c struct net *net = dev_net(skb->dev); net 329 net/ipv6/tcp_ipv6.c sk = inet6_lookup(net, &tcp_hashinfo, &hdr->daddr, net 333 net/ipv6/tcp_ipv6.c ICMP6_INC_STATS_BH(net, __in6_dev_get(skb->dev), net 345 net/ipv6/tcp_ipv6.c NET_INC_STATS_BH(net, LINUX_MIB_LOCKDROPPEDICMPS); net 354 net/ipv6/tcp_ipv6.c NET_INC_STATS_BH(net, LINUX_MIB_OUTOFWINDOWICMPS); net 429 net/ipv6/tcp_ipv6.c NET_INC_STATS_BH(net, LINUX_MIB_OUTOFWINDOWICMPS); net 951 net/ipv6/tcp_ipv6.c struct net *net = dev_net(skb->dst->dev); net 952 net/ipv6/tcp_ipv6.c struct sock *ctl_sk = net->ipv6.tcp_sk; net 1025 net/ipv6/tcp_ipv6.c TCP_INC_STATS_BH(net, TCP_MIB_OUTSEGS); net 1027 net/ipv6/tcp_ipv6.c TCP_INC_STATS_BH(net, TCP_MIB_OUTRSTS); net 1589 net/ipv6/tcp_ipv6.c struct net *net = dev_net(skb->dev); net 1597 net/ipv6/tcp_ipv6.c TCP_INC_STATS_BH(net, TCP_MIB_INSEGS); net 1665 net/ipv6/tcp_ipv6.c TCP_INC_STATS_BH(net, TCP_MIB_INERRS); net 1690 net/ipv6/tcp_ipv6.c TCP_INC_STATS_BH(net, TCP_MIB_INERRS); net 2011 net/ipv6/tcp_ipv6.c return tcp_proc_register(net, &tcp6_seq_afinfo); net 2016 net/ipv6/tcp_ipv6.c tcp_proc_unregister(net, &tcp6_seq_afinfo); net 2078 net/ipv6/tcp_ipv6.c return inet_ctl_sock_create(&net->ipv6.tcp_sk, PF_INET6, net 2079 net/ipv6/tcp_ipv6.c SOCK_RAW, IPPROTO_TCP, net); net 2084 net/ipv6/tcp_ipv6.c inet_ctl_sock_destroy(net->ipv6.tcp_sk); net 2085 net/ipv6/tcp_ipv6.c inet_twsk_purge(net, &tcp_hashinfo, &tcp_death_row, AF_INET6); net 68 net/ipv6/udp.c sk_for_each(sk, node, &udptable[udp_hashfn(net, hnum)]) { net 71 net/ipv6/udp.c if (net_eq(sock_net(sk), net) && sk->sk_hash == hnum && net 384 net/ipv6/udp.c sk = sk_head(&udptable[udp_hashfn(net, ntohs(uh->dest))]); net 458 net/ipv6/udp.c struct net *net = dev_net(skb->dev); net 497 net/ipv6/udp.c return __udp6_lib_mcast_deliver(net, skb, net 514 net/ipv6/udp.c UDP6_INC_STATS_BH(net, UDP_MIB_NOPORTS, net 540 net/ipv6/udp.c UDP6_INC_STATS_BH(net, UDP_MIB_INERRORS, proto == IPPROTO_UDPLITE); net 1022 net/ipv6/udp.c return udp_proc_register(net, &udp6_seq_afinfo); net 1026 net/ipv6/udp.c udp_proc_unregister(net, &udp6_seq_afinfo); net 109 net/ipv6/udplite.c return udp_proc_register(net, &udplite6_seq_afinfo); net 114 net/ipv6/udplite.c udp_proc_unregister(net, &udplite6_seq_afinfo); net 198 net/ipx/af_ipx.c if (net) { net 200 net/ipx/af_ipx.c if (i->if_netnum == net) net 591 net/ipx/af_ipx.c ipx->ipx_dest.net = IPX_SKB_CB(skb)->ipx_dest_net; net 592 net/ipx/af_ipx.c ipx->ipx_source.net = IPX_SKB_CB(skb)->ipx_source_net; net 619 net/ipx/af_ipx.c if (ipx->ipx_dest.net == intrfc->if_netnum) { net 648 net/ipx/af_ipx.c if (ipx->ipx_source.net != intrfc->if_netnum) { net 1359 net/ipx/af_ipx.c if (net != &init_net) net 1372 net/ipx/af_ipx.c sk = sk_alloc(net, PF_IPX, GFP_KERNEL, &ipx_proto); net 1565 net/ipx/af_ipx.c ipxs->dest_addr.net = addr->sipx_network; net 1600 net/ipx/af_ipx.c sipx.sipx_network = addr->net; net 1665 net/ipx/af_ipx.c IPX_SKB_CB(skb)->ipx_dest_net = ipx->ipx_dest.net; net 1666 net/ipx/af_ipx.c IPX_SKB_CB(skb)->ipx_source_net = ipx->ipx_source.net; net 1744 net/ipx/af_ipx.c usipx->sipx_network = ipxs->dest_addr.net; net 275 net/ipx/ipx_proc.c (unsigned long)ntohl(ipxs->dest_addr.net), net 38 net/ipx/ipx_route.c if (r->ir_net == net) { net 128 net/ipx/ipx_route.c if (r->ir_net == net) { net 1073 net/irda/af_irda.c if (net != &init_net) net 1087 net/irda/af_irda.c sk = sk_alloc(net, PF_IRDA, GFP_ATOMIC, &irda_proto); net 45 net/irda/irnetlink.c return dev_get_by_name(net, ifname); net 177 net/key/af_key.c if (net != &init_net) net 188 net/key/af_key.c sk = sk_alloc(net, PF_KEY, GFP_KERNEL, &key_proto); net 159 net/llc/af_llc.c if (net != &init_net) net 164 net/llc/af_llc.c sk = llc_sk_alloc(net, PF_LLC, GFP_KERNEL, &llc_proto); net 868 net/llc/llc_conn.c struct sock *sk = sk_alloc(net, family, priority, prot); net 75 net/netfilter/nf_conntrack_acct.c table[0].data = &net->ct.sysctl_acct; net 77 net/netfilter/nf_conntrack_acct.c net->ct.acct_sysctl_header = register_net_sysctl_table(net, net 79 net/netfilter/nf_conntrack_acct.c if (!net->ct.acct_sysctl_header) { net 95 net/netfilter/nf_conntrack_acct.c table = net->ct.acct_sysctl_header->ctl_table_arg; net 96 net/netfilter/nf_conntrack_acct.c unregister_net_sysctl_table(net->ct.acct_sysctl_header); net 114 net/netfilter/nf_conntrack_acct.c net->ct.sysctl_acct = nf_ct_acct; net 116 net/netfilter/nf_conntrack_acct.c if (net_eq(net, &init_net)) { net 130 net/netfilter/nf_conntrack_acct.c ret = nf_conntrack_acct_init_sysctl(net); net 137 net/netfilter/nf_conntrack_acct.c if (net_eq(net, &init_net)) net 145 net/netfilter/nf_conntrack_acct.c nf_conntrack_acct_fini_sysctl(net); net 146 net/netfilter/nf_conntrack_acct.c if (net_eq(net, &init_net)) net 170 net/netfilter/nf_conntrack_core.c struct net *net = nf_ct_net(ct); net 203 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC(net, delete); net 216 net/netfilter/nf_conntrack_core.c struct net *net = nf_ct_net(ct); net 231 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC(net, delete_list); net 248 net/netfilter/nf_conntrack_core.c hlist_for_each_entry_rcu(h, n, &net->ct.hash[hash], hnode) { net 250 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC(net, found); net 254 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC(net, searched); net 270 net/netfilter/nf_conntrack_core.c h = __nf_conntrack_find(net, tuple); net 286 net/netfilter/nf_conntrack_core.c struct net *net = nf_ct_net(ct); net 289 net/netfilter/nf_conntrack_core.c &net->ct.hash[hash]); net 291 net/netfilter/nf_conntrack_core.c &net->ct.hash[repl_hash]); net 317 net/netfilter/nf_conntrack_core.c struct net *net; net 320 net/netfilter/nf_conntrack_core.c net = nf_ct_net(ct); net 347 net/netfilter/nf_conntrack_core.c hlist_for_each_entry(h, n, &net->ct.hash[hash], hnode) net 351 net/netfilter/nf_conntrack_core.c hlist_for_each_entry(h, n, &net->ct.hash[repl_hash], hnode) net 367 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC(net, insert); net 382 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC(net, insert_failed); net 394 net/netfilter/nf_conntrack_core.c struct net *net = nf_ct_net(ignored_conntrack); net 403 net/netfilter/nf_conntrack_core.c hlist_for_each_entry_rcu(h, n, &net->ct.hash[hash], hnode) { net 406 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC(net, found); net 410 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC(net, searched); net 433 net/netfilter/nf_conntrack_core.c hlist_for_each_entry_rcu(h, n, &net->ct.hash[hash], net 455 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC_ATOMIC(net, early_drop); net 474 net/netfilter/nf_conntrack_core.c atomic_inc(&net->ct.count); net 477 net/netfilter/nf_conntrack_core.c unlikely(atomic_read(&net->ct.count) > nf_conntrack_max)) { net 479 net/netfilter/nf_conntrack_core.c if (!early_drop(net, hash)) { net 480 net/netfilter/nf_conntrack_core.c atomic_dec(&net->ct.count); net 492 net/netfilter/nf_conntrack_core.c atomic_dec(&net->ct.count); net 502 net/netfilter/nf_conntrack_core.c ct->ct_net = net; net 513 net/netfilter/nf_conntrack_core.c struct net *net = nf_ct_net(ct); net 517 net/netfilter/nf_conntrack_core.c atomic_dec(&net->ct.count); net 547 net/netfilter/nf_conntrack_core.c ct = nf_conntrack_alloc(net, tuple, &repl_tuple, GFP_ATOMIC); net 562 net/netfilter/nf_conntrack_core.c exp = nf_ct_find_expectation(net, tuple); net 582 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC(net, expect_new); net 592 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC(net, new); net 597 net/netfilter/nf_conntrack_core.c &net->ct.unconfirmed); net 634 net/netfilter/nf_conntrack_core.c h = nf_conntrack_find_get(net, &tuple); net 636 net/netfilter/nf_conntrack_core.c h = init_conntrack(net, &tuple, l3proto, l4proto, skb, dataoff); net 684 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC_ATOMIC(net, ignore); net 694 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC_ATOMIC(net, error); net 695 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC_ATOMIC(net, invalid); net 705 net/netfilter/nf_conntrack_core.c ret = l4proto->error(net, skb, dataoff, &ctinfo, pf, hooknum); net 707 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC_ATOMIC(net, error); net 708 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC_ATOMIC(net, invalid); net 713 net/netfilter/nf_conntrack_core.c ct = resolve_normal_ct(net, skb, dataoff, pf, protonum, net 717 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC_ATOMIC(net, invalid); net 723 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC_ATOMIC(net, drop); net 736 net/netfilter/nf_conntrack_core.c NF_CT_STAT_INC_ATOMIC(net, invalid); net 955 net/netfilter/nf_conntrack_core.c hlist_for_each_entry(h, n, &net->ct.hash[*bucket], hnode) { net 961 net/netfilter/nf_conntrack_core.c hlist_for_each_entry(h, n, &net->ct.unconfirmed, hnode) { net 981 net/netfilter/nf_conntrack_core.c while ((ct = get_next_corpse(net, iter, data, &bucket)) != NULL) { net 1009 net/netfilter/nf_conntrack_core.c nf_ct_iterate_cleanup(net, kill_all, NULL); net 1022 net/netfilter/nf_conntrack_core.c nf_ct_event_cache_flush(net); net 1023 net/netfilter/nf_conntrack_core.c nf_conntrack_ecache_fini(net); net 1025 net/netfilter/nf_conntrack_core.c nf_conntrack_flush(net); net 1026 net/netfilter/nf_conntrack_core.c if (atomic_read(&net->ct.count) != 0) { net 1034 net/netfilter/nf_conntrack_core.c nf_ct_free_hashtable(net->ct.hash, net->ct.hash_vmalloc, net 1036 net/netfilter/nf_conntrack_core.c nf_conntrack_acct_fini(net); net 1037 net/netfilter/nf_conntrack_core.c nf_conntrack_expect_fini(net); net 1038 net/netfilter/nf_conntrack_core.c free_percpu(net->ct.stat); net 1045 net/netfilter/nf_conntrack_core.c if (net_eq(net, &init_net)) net 1053 net/netfilter/nf_conntrack_core.c nf_conntrack_cleanup_net(net); net 1055 net/netfilter/nf_conntrack_core.c if (net_eq(net, &init_net)) { net 1202 net/netfilter/nf_conntrack_core.c atomic_set(&net->ct.count, 0); net 1203 net/netfilter/nf_conntrack_core.c INIT_HLIST_HEAD(&net->ct.unconfirmed); net 1204 net/netfilter/nf_conntrack_core.c net->ct.stat = alloc_percpu(struct ip_conntrack_stat); net 1205 net/netfilter/nf_conntrack_core.c if (!net->ct.stat) { net 1209 net/netfilter/nf_conntrack_core.c ret = nf_conntrack_ecache_init(net); net 1212 net/netfilter/nf_conntrack_core.c net->ct.hash = nf_ct_alloc_hashtable(&nf_conntrack_htable_size, net 1213 net/netfilter/nf_conntrack_core.c &net->ct.hash_vmalloc); net 1214 net/netfilter/nf_conntrack_core.c if (!net->ct.hash) { net 1219 net/netfilter/nf_conntrack_core.c ret = nf_conntrack_expect_init(net); net 1222 net/netfilter/nf_conntrack_core.c ret = nf_conntrack_acct_init(net); net 1238 net/netfilter/nf_conntrack_core.c nf_conntrack_expect_fini(net); net 1240 net/netfilter/nf_conntrack_core.c nf_ct_free_hashtable(net->ct.hash, net->ct.hash_vmalloc, net 1243 net/netfilter/nf_conntrack_core.c nf_conntrack_ecache_fini(net); net 1245 net/netfilter/nf_conntrack_core.c free_percpu(net->ct.stat); net 1254 net/netfilter/nf_conntrack_core.c if (net_eq(net, &init_net)) { net 1259 net/netfilter/nf_conntrack_core.c ret = nf_conntrack_init_net(net); net 1263 net/netfilter/nf_conntrack_core.c if (net_eq(net, &init_net)) { net 1271 net/netfilter/nf_conntrack_core.c if (net_eq(net, &init_net)) net 51 net/netfilter/nf_conntrack_ecache.c struct net *net = nf_ct_net(ct); net 55 net/netfilter/nf_conntrack_ecache.c ecache = per_cpu_ptr(net->ct.ecache, raw_smp_processor_id()); net 65 net/netfilter/nf_conntrack_ecache.c struct net *net = nf_ct_net(ct); net 69 net/netfilter/nf_conntrack_ecache.c ecache = per_cpu_ptr(net->ct.ecache, raw_smp_processor_id()); net 87 net/netfilter/nf_conntrack_ecache.c ecache = per_cpu_ptr(net->ct.ecache, cpu); net 95 net/netfilter/nf_conntrack_ecache.c net->ct.ecache = alloc_percpu(struct nf_conntrack_ecache); net 96 net/netfilter/nf_conntrack_ecache.c if (!net->ct.ecache) net 103 net/netfilter/nf_conntrack_ecache.c free_percpu(net->ct.ecache); net 44 net/netfilter/nf_conntrack_expect.c struct net *net = nf_ct_exp_net(exp); net 50 net/netfilter/nf_conntrack_expect.c net->ct.expect_count--; net 56 net/netfilter/nf_conntrack_expect.c NF_CT_STAT_INC(net, expect_delete); net 92 net/netfilter/nf_conntrack_expect.c if (!net->ct.expect_count) net 96 net/netfilter/nf_conntrack_expect.c hlist_for_each_entry_rcu(i, n, &net->ct.expect_hash[h], hnode) { net 111 net/netfilter/nf_conntrack_expect.c i = __nf_ct_expect_find(net, tuple); net 129 net/netfilter/nf_conntrack_expect.c if (!net->ct.expect_count) net 133 net/netfilter/nf_conntrack_expect.c hlist_for_each_entry(i, n, &net->ct.expect_hash[h], hnode) { net 310 net/netfilter/nf_conntrack_expect.c struct net *net = nf_ct_exp_net(exp); net 319 net/netfilter/nf_conntrack_expect.c hlist_add_head_rcu(&exp->hnode, &net->ct.expect_hash[h]); net 320 net/netfilter/nf_conntrack_expect.c net->ct.expect_count++; net 329 net/netfilter/nf_conntrack_expect.c NF_CT_STAT_INC(net, expect_create); net 371 net/netfilter/nf_conntrack_expect.c struct net *net = nf_ct_exp_net(expect); net 384 net/netfilter/nf_conntrack_expect.c hlist_for_each_entry(i, n, &net->ct.expect_hash[h], hnode) { net 407 net/netfilter/nf_conntrack_expect.c if (net->ct.expect_count >= nf_ct_expect_max) { net 432 net/netfilter/nf_conntrack_expect.c struct net *net = seq_file_net(seq); net 437 net/netfilter/nf_conntrack_expect.c n = rcu_dereference(net->ct.expect_hash[st->bucket].first); net 447 net/netfilter/nf_conntrack_expect.c struct net *net = seq_file_net(seq); net 454 net/netfilter/nf_conntrack_expect.c head = rcu_dereference(net->ct.expect_hash[st->bucket].first); net 546 net/netfilter/nf_conntrack_expect.c proc = proc_net_fops_create(net, "nf_conntrack_expect", 0440, &exp_file_ops); net 556 net/netfilter/nf_conntrack_expect.c proc_net_remove(net, "nf_conntrack_expect"); net 566 net/netfilter/nf_conntrack_expect.c if (net_eq(net, &init_net)) { net 575 net/netfilter/nf_conntrack_expect.c net->ct.expect_count = 0; net 576 net/netfilter/nf_conntrack_expect.c net->ct.expect_hash = nf_ct_alloc_hashtable(&nf_ct_expect_hsize, net 577 net/netfilter/nf_conntrack_expect.c &net->ct.expect_vmalloc); net 578 net/netfilter/nf_conntrack_expect.c if (net->ct.expect_hash == NULL) net 581 net/netfilter/nf_conntrack_expect.c if (net_eq(net, &init_net)) { net 589 net/netfilter/nf_conntrack_expect.c err = exp_proc_init(net); net 596 net/netfilter/nf_conntrack_expect.c if (net_eq(net, &init_net)) net 599 net/netfilter/nf_conntrack_expect.c nf_ct_free_hashtable(net->ct.expect_hash, net->ct.expect_vmalloc, net 607 net/netfilter/nf_conntrack_expect.c exp_proc_remove(net); net 608 net/netfilter/nf_conntrack_expect.c if (net_eq(net, &init_net)) net 610 net/netfilter/nf_conntrack_expect.c nf_ct_free_hashtable(net->ct.expect_hash, net->ct.expect_vmalloc, net 1213 net/netfilter/nf_conntrack_h323_main.c struct net *net = nf_ct_net(ct); net 1223 net/netfilter/nf_conntrack_h323_main.c exp = __nf_ct_expect_find(net, &tuple); net 137 net/netfilter/nf_conntrack_helper.c &net->ct.expect_hash[i], hnode) { net 148 net/netfilter/nf_conntrack_helper.c hlist_for_each_entry(h, n, &net->ct.unconfirmed, hnode) net 151 net/netfilter/nf_conntrack_helper.c hlist_for_each_entry(h, n, &net->ct.hash[i], hnode) net 158 net/netfilter/nf_conntrack_helper.c struct net *net; net 171 net/netfilter/nf_conntrack_helper.c for_each_net(net) net 172 net/netfilter/nf_conntrack_helper.c __nf_conntrack_helper_unregister(me, net); net 1461 net/netfilter/nf_conntrack_netlink.c struct net *net = &init_net; net 1471 net/netfilter/nf_conntrack_netlink.c hlist_for_each_entry(exp, n, &net->ct.expect_hash[cb->args[0]], net 101 net/netfilter/nf_conntrack_pptp.c struct net *net = nf_ct_net(ct); net 125 net/netfilter/nf_conntrack_pptp.c exp_other = nf_ct_expect_find_get(net, &inv_t); net 148 net/netfilter/nf_conntrack_pptp.c h = nf_conntrack_find_get(net, t); net 159 net/netfilter/nf_conntrack_pptp.c exp = nf_ct_expect_find_get(net, t); net 173 net/netfilter/nf_conntrack_pptp.c struct net *net = nf_ct_net(ct); net 184 net/netfilter/nf_conntrack_pptp.c if (!destroy_sibling_or_exp(net, &t)) net 192 net/netfilter/nf_conntrack_pptp.c if (!destroy_sibling_or_exp(net, &t)) net 602 net/netfilter/nf_conntrack_pptp.c nf_ct_gre_keymap_flush(net); net 210 net/netfilter/nf_conntrack_proto.c struct net *net; net 224 net/netfilter/nf_conntrack_proto.c for_each_net(net) net 225 net/netfilter/nf_conntrack_proto.c nf_ct_iterate_cleanup(net, kill_l3proto, proto); net 322 net/netfilter/nf_conntrack_proto.c struct net *net; net 336 net/netfilter/nf_conntrack_proto.c for_each_net(net) net 337 net/netfilter/nf_conntrack_proto.c nf_ct_iterate_cleanup(net, kill_l4proto, l4proto); net 421 net/netfilter/nf_conntrack_proto_dccp.c struct net *net = nf_ct_net(ct); net 449 net/netfilter/nf_conntrack_proto_dccp.c if (LOG_INVALID(net, IPPROTO_DCCP)) net 467 net/netfilter/nf_conntrack_proto_dccp.c struct net *net = nf_ct_net(ct); net 529 net/netfilter/nf_conntrack_proto_dccp.c if (LOG_INVALID(net, IPPROTO_DCCP)) net 535 net/netfilter/nf_conntrack_proto_dccp.c if (LOG_INVALID(net, IPPROTO_DCCP)) net 580 net/netfilter/nf_conntrack_proto_dccp.c if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && net 595 net/netfilter/nf_conntrack_proto_dccp.c if (LOG_INVALID(net, IPPROTO_DCCP)) net 54 net/netfilter/nf_conntrack_proto_gre.c struct netns_proto_gre *net_gre = net_generic(net, proto_gre_net_id); net 79 net/netfilter/nf_conntrack_proto_gre.c struct netns_proto_gre *net_gre = net_generic(net, proto_gre_net_id); net 102 net/netfilter/nf_conntrack_proto_gre.c struct net *net = nf_ct_net(ct); net 103 net/netfilter/nf_conntrack_proto_gre.c struct netns_proto_gre *net_gre = net_generic(net, proto_gre_net_id); net 143 net/netfilter/nf_conntrack_proto_gre.c struct net *net = nf_ct_net(ct); net 144 net/netfilter/nf_conntrack_proto_gre.c struct netns_proto_gre *net_gre = net_generic(net, proto_gre_net_id); net 179 net/netfilter/nf_conntrack_proto_gre.c struct net *net = dev_net(skb->dev ? skb->dev : skb->dst->dev); net 206 net/netfilter/nf_conntrack_proto_gre.c srckey = gre_keymap_lookup(net, tuple); net 312 net/netfilter/nf_conntrack_proto_gre.c rv = net_assign_generic(net, proto_gre_net_id, net_gre); net 320 net/netfilter/nf_conntrack_proto_gre.c struct netns_proto_gre *net_gre = net_generic(net, proto_gre_net_id); net 322 net/netfilter/nf_conntrack_proto_gre.c nf_ct_gre_keymap_flush(net); net 491 net/netfilter/nf_conntrack_proto_tcp.c struct net *net = nf_ct_net(ct); net 672 net/netfilter/nf_conntrack_proto_tcp.c if (!res && LOG_INVALID(net, IPPROTO_TCP)) net 765 net/netfilter/nf_conntrack_proto_tcp.c if (LOG_INVALID(net, IPPROTO_TCP)) net 773 net/netfilter/nf_conntrack_proto_tcp.c if (LOG_INVALID(net, IPPROTO_TCP)) net 784 net/netfilter/nf_conntrack_proto_tcp.c if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && net 786 net/netfilter/nf_conntrack_proto_tcp.c if (LOG_INVALID(net, IPPROTO_TCP)) net 795 net/netfilter/nf_conntrack_proto_tcp.c if (LOG_INVALID(net, IPPROTO_TCP)) net 812 net/netfilter/nf_conntrack_proto_tcp.c struct net *net = nf_ct_net(ct); net 891 net/netfilter/nf_conntrack_proto_tcp.c if (LOG_INVALID(net, IPPROTO_TCP)) net 904 net/netfilter/nf_conntrack_proto_tcp.c if (LOG_INVALID(net, IPPROTO_TCP)) net 913 net/netfilter/nf_conntrack_proto_tcp.c if (LOG_INVALID(net, IPPROTO_TCP)) net 104 net/netfilter/nf_conntrack_proto_udp.c if (LOG_INVALID(net, IPPROTO_UDP)) net 112 net/netfilter/nf_conntrack_proto_udp.c if (LOG_INVALID(net, IPPROTO_UDP)) net 126 net/netfilter/nf_conntrack_proto_udp.c if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && net 128 net/netfilter/nf_conntrack_proto_udp.c if (LOG_INVALID(net, IPPROTO_UDP)) net 107 net/netfilter/nf_conntrack_proto_udplite.c if (LOG_INVALID(net, IPPROTO_UDPLITE)) net 117 net/netfilter/nf_conntrack_proto_udplite.c if (LOG_INVALID(net, IPPROTO_UDPLITE)) net 125 net/netfilter/nf_conntrack_proto_udplite.c if (LOG_INVALID(net, IPPROTO_UDPLITE)) net 132 net/netfilter/nf_conntrack_proto_udplite.c if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && net 135 net/netfilter/nf_conntrack_proto_udplite.c if (LOG_INVALID(net, IPPROTO_UDPLITE)) net 739 net/netfilter/nf_conntrack_sip.c struct net *net = nf_ct_net(ct); net 779 net/netfilter/nf_conntrack_sip.c exp = __nf_ct_expect_find(net, &tuple); net 49 net/netfilter/nf_conntrack_standalone.c struct net *net = seq_file_net(seq); net 56 net/netfilter/nf_conntrack_standalone.c n = rcu_dereference(net->ct.hash[st->bucket].first); net 66 net/netfilter/nf_conntrack_standalone.c struct net *net = seq_file_net(seq); net 73 net/netfilter/nf_conntrack_standalone.c head = rcu_dereference(net->ct.hash[st->bucket].first); net 197 net/netfilter/nf_conntrack_standalone.c struct net *net = seq_file_net(seq); net 207 net/netfilter/nf_conntrack_standalone.c return per_cpu_ptr(net->ct.stat, cpu); net 215 net/netfilter/nf_conntrack_standalone.c struct net *net = seq_file_net(seq); net 222 net/netfilter/nf_conntrack_standalone.c return per_cpu_ptr(net->ct.stat, cpu); net 234 net/netfilter/nf_conntrack_standalone.c struct net *net = seq_file_net(seq); net 235 net/netfilter/nf_conntrack_standalone.c unsigned int nr_conntracks = atomic_read(&net->ct.count); net 291 net/netfilter/nf_conntrack_standalone.c pde = proc_net_fops_create(net, "nf_conntrack", 0440, &ct_file_ops); net 295 net/netfilter/nf_conntrack_standalone.c pde = proc_create("nf_conntrack", S_IRUGO, net->proc_net_stat, net 302 net/netfilter/nf_conntrack_standalone.c proc_net_remove(net, "nf_conntrack"); net 309 net/netfilter/nf_conntrack_standalone.c remove_proc_entry("nf_conntrack", net->proc_net_stat); net 310 net/netfilter/nf_conntrack_standalone.c proc_net_remove(net, "nf_conntrack"); net 410 net/netfilter/nf_conntrack_standalone.c if (net_eq(net, &init_net)) { net 422 net/netfilter/nf_conntrack_standalone.c table[1].data = &net->ct.count; net 423 net/netfilter/nf_conntrack_standalone.c table[3].data = &net->ct.sysctl_checksum; net 424 net/netfilter/nf_conntrack_standalone.c table[4].data = &net->ct.sysctl_log_invalid; net 426 net/netfilter/nf_conntrack_standalone.c net->ct.sysctl_header = register_net_sysctl_table(net, net 428 net/netfilter/nf_conntrack_standalone.c if (!net->ct.sysctl_header) net 436 net/netfilter/nf_conntrack_standalone.c if (net_eq(net, &init_net)) net 447 net/netfilter/nf_conntrack_standalone.c if (net_eq(net, &init_net)) net 449 net/netfilter/nf_conntrack_standalone.c table = net->ct.sysctl_header->ctl_table_arg; net 450 net/netfilter/nf_conntrack_standalone.c unregister_net_sysctl_table(net->ct.sysctl_header); net 468 net/netfilter/nf_conntrack_standalone.c ret = nf_conntrack_init(net); net 471 net/netfilter/nf_conntrack_standalone.c ret = nf_conntrack_standalone_init_proc(net); net 474 net/netfilter/nf_conntrack_standalone.c net->ct.sysctl_checksum = 1; net 475 net/netfilter/nf_conntrack_standalone.c net->ct.sysctl_log_invalid = 0; net 476 net/netfilter/nf_conntrack_standalone.c ret = nf_conntrack_standalone_init_sysctl(net); net 482 net/netfilter/nf_conntrack_standalone.c nf_conntrack_standalone_fini_proc(net); net 484 net/netfilter/nf_conntrack_standalone.c nf_conntrack_cleanup(net); net 491 net/netfilter/nf_conntrack_standalone.c nf_conntrack_standalone_fini_sysctl(net); net 492 net/netfilter/nf_conntrack_standalone.c nf_conntrack_standalone_fini_proc(net); net 493 net/netfilter/nf_conntrack_standalone.c nf_conntrack_cleanup(net); net 33 net/netfilter/nf_tproxy_core.c sk = __inet_lookup_listener(net, &tcp_hashinfo, net 37 net/netfilter/nf_tproxy_core.c sk = __inet_lookup(net, &tcp_hashinfo, net 42 net/netfilter/nf_tproxy_core.c sk = udp4_lib_lookup(net, saddr, sport, daddr, dport, net 670 net/netfilter/nfnetlink_log.c if ((n->net == &init_net) && net 589 net/netfilter/nfnetlink_queue.c if ((n->net == &init_net) && net 629 net/netfilter/x_tables.c list_for_each_entry(t, &net->xt.tables[af], list) net 705 net/netfilter/x_tables.c list_for_each_entry(t, &net->xt.tables[table->af], list) { net 724 net/netfilter/x_tables.c list_add(&table->list, &net->xt.tables[table->af]); net 759 net/netfilter/x_tables.c struct net *net = seq_file_net(seq); net 763 net/netfilter/x_tables.c return seq_list_start(&net->xt.tables[af], *pos); net 769 net/netfilter/x_tables.c struct net *net = seq_file_net(seq); net 772 net/netfilter/x_tables.c return seq_list_next(v, &net->xt.tables[af], pos); net 968 net/netfilter/x_tables.c proc = proc_create_data(buf, 0440, net->proc_net, &xt_table_ops, net 975 net/netfilter/x_tables.c proc = proc_create_data(buf, 0440, net->proc_net, &xt_match_ops, net 982 net/netfilter/x_tables.c proc = proc_create_data(buf, 0440, net->proc_net, &xt_target_ops, net 994 net/netfilter/x_tables.c proc_net_remove(net, buf); net 999 net/netfilter/x_tables.c proc_net_remove(net, buf); net 1013 net/netfilter/x_tables.c proc_net_remove(net, buf); net 1017 net/netfilter/x_tables.c proc_net_remove(net, buf); net 1021 net/netfilter/x_tables.c proc_net_remove(net, buf); net 1031 net/netfilter/x_tables.c INIT_LIST_HEAD(&net->xt.tables[i]); net 475 net/netlabel/netlabel_unlabeled.c dev = dev_get_by_name(net, dev_name); net 584 net/netlabel/netlabel_unlabeled.c dev = dev_get_by_index(net, iface->ifindex); net 644 net/netlabel/netlabel_unlabeled.c dev = dev_get_by_index(net, iface->ifindex); net 736 net/netlabel/netlabel_unlabeled.c dev = dev_get_by_name(net, dev_name); net 751 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_unlhsh_remove_addr4(net, net 757 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_unlhsh_remove_addr6(net, net 231 net/netlink/af_netlink.c if (net_eq(sock_net(sk), net) && (nlk_sk(sk)->pid == pid)) { net 351 net/netlink/af_netlink.c if (net_eq(sock_net(osk), net) && (nlk_sk(osk)->pid == pid)) net 402 net/netlink/af_netlink.c sk = sk_alloc(net, PF_NETLINK, GFP_KERNEL, &netlink_proto); net 451 net/netlink/af_netlink.c err = __netlink_create(net, sock, cb_mutex, protocol); net 489 net/netlink/af_netlink.c .net = sock_net(sk), net 521 net/netlink/af_netlink.c struct net *net = sock_net(sk); net 535 net/netlink/af_netlink.c if (!net_eq(sock_net(osk), net)) net 548 net/netlink/af_netlink.c err = netlink_insert(sk, net, pid); net 614 net/netlink/af_netlink.c struct net *net = sock_net(sk); net 636 net/netlink/af_netlink.c netlink_insert(sk, net, nladdr->nl_pid) : net 942 net/netlink/af_netlink.c struct net *net; net 965 net/netlink/af_netlink.c if (!net_eq(sock_net(sk), p->net)) net 1009 net/netlink/af_netlink.c struct net *net = sock_net(ssk); net 1017 net/netlink/af_netlink.c info.net = net; net 1386 net/netlink/af_netlink.c sk_change_net(sk, net); net 1399 net/netlink/af_netlink.c if (netlink_insert(sk, net, 0)) net 1923 net/netlink/af_netlink.c if (!proc_net_fops_create(net, "netlink", 0, &netlink_seq_fops)) net 1932 net/netlink/af_netlink.c proc_net_remove(net, "netlink"); net 434 net/netrom/af_netrom.c if (net != &init_net) net 440 net/netrom/af_netrom.c sk = sk_alloc(net, PF_NETROM, GFP_ATOMIC, &nr_proto); net 865 net/packet/af_packet.c struct net *net; net 870 net/packet/af_packet.c net = sock_net(sk); net 873 net/packet/af_packet.c write_lock_bh(&net->packet.sklist_lock); net 875 net/packet/af_packet.c write_unlock_bh(&net->packet.sklist_lock); net 1049 net/packet/af_packet.c sk = sk_alloc(net, PF_PACKET, GFP_KERNEL, &packet_proto); net 1085 net/packet/af_packet.c write_lock_bh(&net->packet.sklist_lock); net 1086 net/packet/af_packet.c sk_add_node(sk, &net->packet.sklist); net 1087 net/packet/af_packet.c write_unlock_bh(&net->packet.sklist_lock); net 1590 net/packet/af_packet.c struct net *net = dev_net(dev); net 1592 net/packet/af_packet.c read_lock(&net->packet.sklist_lock); net 1593 net/packet/af_packet.c sk_for_each(sk, node, &net->packet.sklist) { net 1632 net/packet/af_packet.c read_unlock(&net->packet.sklist_lock); net 2006 net/packet/af_packet.c sk_for_each(s, node, &net->packet.sklist) { net 2016 net/packet/af_packet.c struct net *net = seq_file_net(seq); net 2017 net/packet/af_packet.c read_lock(&net->packet.sklist_lock); net 2018 net/packet/af_packet.c return *pos ? packet_seq_idx(net, *pos - 1) : SEQ_START_TOKEN; net 2023 net/packet/af_packet.c struct net *net = seq_file_net(seq); net 2026 net/packet/af_packet.c ? sk_head(&net->packet.sklist) net 2033 net/packet/af_packet.c struct net *net = seq_file_net(seq); net 2034 net/packet/af_packet.c read_unlock(&net->packet.sklist_lock); net 2086 net/packet/af_packet.c rwlock_init(&net->packet.sklist_lock); net 2087 net/packet/af_packet.c INIT_HLIST_HEAD(&net->packet.sklist); net 2089 net/packet/af_packet.c if (!proc_net_fops_create(net, "packet", 0, &packet_seq_fops)) net 2097 net/packet/af_packet.c proc_net_remove(net, "packet"); net 49 net/phonet/af_phonet.c if (net != &init_net) net 82 net/phonet/af_phonet.c sk = sk_alloc(net, PF_PHONET, GFP_KERNEL, pnp->prot); net 43 net/phonet/pep-gprs.c struct net_device *net; net 79 net/phonet/pep-gprs.c netif_stop_queue(dev->net); net 80 net/phonet/pep-gprs.c netif_carrier_off(dev->net); net 102 net/phonet/pep-gprs.c rskb = netdev_alloc_skb(dev->net, 0); net 126 net/phonet/pep-gprs.c skb->dev = dev->net; net 128 net/phonet/pep-gprs.c if (likely(dev->net->flags & IFF_UP)) { net 163 net/phonet/pep-gprs.c netif_wake_queue(dev->net); net 173 net/phonet/pep-gprs.c struct gprs_dev *dev = netdev_priv(net); net 190 net/phonet/pep-gprs.c netif_stop_queue(net); net 218 net/phonet/pep-gprs.c dev->net->name, err); net 235 net/phonet/pep-gprs.c net->mtu = new_mtu; net 241 net/phonet/pep-gprs.c struct gprs_dev *dev = netdev_priv(net); net 248 net/phonet/pep-gprs.c net->features = NETIF_F_FRAGLIST; net 249 net/phonet/pep-gprs.c net->type = ARPHRD_NONE; net 250 net/phonet/pep-gprs.c net->flags = IFF_POINTOPOINT | IFF_NOARP; net 251 net/phonet/pep-gprs.c net->mtu = GPRS_DEFAULT_MTU; net 252 net/phonet/pep-gprs.c net->hard_header_len = 0; net 253 net/phonet/pep-gprs.c net->addr_len = 0; net 254 net/phonet/pep-gprs.c net->tx_queue_len = 10; net 256 net/phonet/pep-gprs.c net->destructor = free_netdev; net 257 net/phonet/pep-gprs.c net->hard_start_xmit = gprs_xmit; /* mandatory */ net 258 net/phonet/pep-gprs.c net->change_mtu = gprs_set_mtu; net 259 net/phonet/pep-gprs.c net->get_stats = gprs_get_stats; net 274 net/phonet/pep-gprs.c struct net_device *net; net 281 net/phonet/pep-gprs.c net = alloc_netdev(sizeof(*dev), ifname, gprs_setup); net 282 net/phonet/pep-gprs.c if (!net) net 284 net/phonet/pep-gprs.c dev = netdev_priv(net); net 285 net/phonet/pep-gprs.c dev->net = net; net 291 net/phonet/pep-gprs.c netif_stop_queue(net); net 292 net/phonet/pep-gprs.c err = register_netdev(net); net 294 net/phonet/pep-gprs.c free_netdev(net); net 320 net/phonet/pep-gprs.c printk(KERN_DEBUG"%s: attached\n", net->name); net 322 net/phonet/pep-gprs.c return net->ifindex; net 326 net/phonet/pep-gprs.c unregister_netdev(net); net 333 net/phonet/pep-gprs.c struct net_device *net = dev->net; net 342 net/phonet/pep-gprs.c printk(KERN_DEBUG"%s: detached\n", net->name); net 343 net/phonet/pep-gprs.c unregister_netdev(net); net 79 net/phonet/pn_dev.c if (dev_net(dev) == net && net 63 net/phonet/pn_netlink.c struct net *net = sock_net(skb->sk); net 87 net/phonet/pn_netlink.c dev = __dev_get_by_index(net, ifm->ifa_index); net 523 net/rose/af_rose.c if (net != &init_net) net 529 net/rose/af_rose.c sk = sk_alloc(net, PF_ROSE, GFP_ATOMIC, &rose_proto); net 617 net/rxrpc/af_rxrpc.c if (net != &init_net) net 630 net/rxrpc/af_rxrpc.c sk = sk_alloc(net, PF_RXRPC, GFP_KERNEL, &rxrpc_proto); net 958 net/sched/act_api.c struct net *net = sock_net(skb->sk); net 963 net/sched/act_api.c if (net != &init_net) net 1036 net/sched/act_api.c struct net *net = sock_net(skb->sk); net 1046 net/sched/act_api.c if (net != &init_net) net 121 net/sched/cls_api.c struct net *net = sock_net(skb->sk); net 139 net/sched/cls_api.c if (net != &init_net) net 396 net/sched/cls_api.c struct net *net = sock_net(skb->sk); net 408 net/sched/cls_api.c if (net != &init_net) net 945 net/sched/sch_api.c struct net *net = sock_net(skb->sk); net 954 net/sched/sch_api.c if (net != &init_net) net 1010 net/sched/sch_api.c struct net *net = sock_net(skb->sk); net 1018 net/sched/sch_api.c if (net != &init_net) net 1270 net/sched/sch_api.c struct net *net = sock_net(skb->sk); net 1275 net/sched/sch_api.c if (net != &init_net) net 1322 net/sched/sch_api.c struct net *net = sock_net(skb->sk); net 1336 net/sched/sch_api.c if (net != &init_net) net 1568 net/sched/sch_api.c struct net *net = sock_net(skb->sk); net 1573 net/sched/sch_api.c if (net != &init_net) net 813 net/socket.c static int (*br_ioctl_hook) (struct net *, unsigned int cmd, void __user *arg) = NULL; net 825 net/socket.c static int (*vlan_ioctl_hook) (struct net *, void __user *arg); net 859 net/socket.c struct net *net; net 863 net/socket.c net = sock_net(sk); net 865 net/socket.c err = dev_ioctl(net, cmd, argp); net 869 net/socket.c err = dev_ioctl(net, cmd, argp); net 895 net/socket.c err = br_ioctl_hook(net, cmd, argp); net 906 net/socket.c err = vlan_ioctl_hook(net, argp); net 928 net/socket.c err = dev_ioctl(net, cmd, argp); net 1172 net/socket.c err = pf->create(net, sock, protocol); net 2327 net/socket.c struct net *net; net 2330 net/socket.c net = sock_net(sk); net 2337 net/socket.c ret = compat_wext_handle_ioctl(net, cmd, arg); net 76 net/sysctl_net.c setup_sysctl_set(&net->sysctls, net 84 net/sysctl_net.c WARN_ON(!list_empty(&net->sysctls.list)); net 112 net/sysctl_net.c namespaces.net_ns = net; net 196 net/tipc/socket.c if (net != &init_net) net 222 net/tipc/socket.c sk = sk_alloc(net, AF_TIPC, GFP_KERNEL, &tipc_proto); net 258 net/unix/af_unix.c if (!net_eq(sock_net(s), net)) net 278 net/unix/af_unix.c s = __unix_find_socket_byname(net, sunname, len, type, hash); net 295 net/unix/af_unix.c if (!net_eq(sock_net(s), net)) net 591 net/unix/af_unix.c sk = sk_alloc(net, PF_UNIX, GFP_KERNEL, &unix_proto); net 600 net/unix/af_unix.c sk->sk_max_ack_backlog = net->unx.sysctl_max_dgram_qlen; net 644 net/unix/af_unix.c return unix_create1(net, sock) ? 0 : -ENOMEM; net 662 net/unix/af_unix.c struct net *net = sock_net(sk); net 689 net/unix/af_unix.c if (__unix_find_socket_byname(net, addr->name, addr->len, sock->type, net 728 net/unix/af_unix.c u = unix_find_socket_byinode(net, nd.path.dentry->d_inode); net 744 net/unix/af_unix.c u=unix_find_socket_byname(net, sunname, len, type, hash); net 766 net/unix/af_unix.c struct net *net = sock_net(sk); net 845 net/unix/af_unix.c if (__unix_find_socket_byname(net, sunaddr, addr_len, net 911 net/unix/af_unix.c struct net *net = sock_net(sk); net 928 net/unix/af_unix.c other=unix_find_other(net, sunaddr, alen, sock->type, hash, &err); net 1007 net/unix/af_unix.c struct net *net = sock_net(sk); net 1047 net/unix/af_unix.c other = unix_find_other(net, sunaddr, addr_len, sk->sk_type, hash, &err); net 1322 net/unix/af_unix.c struct net *net = sock_net(sk); net 1386 net/unix/af_unix.c other = unix_find_other(net, sunaddr, namelen, sk->sk_type, net 2202 net/unix/af_unix.c net->unx.sysctl_max_dgram_qlen = 10; net 2203 net/unix/af_unix.c if (unix_sysctl_register(net)) net 2207 net/unix/af_unix.c if (!proc_net_fops_create(net, "unix", 0, &unix_seq_fops)) { net 2208 net/unix/af_unix.c unix_sysctl_unregister(net); net 2219 net/unix/af_unix.c unix_sysctl_unregister(net); net 2220 net/unix/af_unix.c proc_net_remove(net, "unix"); net 43 net/unix/sysctl_net_unix.c table[0].data = &net->unx.sysctl_max_dgram_qlen; net 44 net/unix/sysctl_net_unix.c net->unx.ctl = register_net_sysctl_table(net, unix_path, table); net 45 net/unix/sysctl_net_unix.c if (net->unx.ctl == NULL) net 60 net/unix/sysctl_net_unix.c table = net->unx.ctl->ctl_table_arg; net 61 net/unix/sysctl_net_unix.c unregister_sysctl_table(net->unx.ctl); net 676 net/wireless/wext.c if (!proc_net_fops_create(net, "wireless", S_IRUGO, &wireless_seq_fops)) net 684 net/wireless/wext.c proc_net_remove(net, "wireless"); net 1030 net/wireless/wext.c if ((dev = __dev_get_by_name(net, ifr->ifr_name)) == NULL) net 1086 net/wireless/wext.c dev_load(net, ifr->ifr_name); net 1088 net/wireless/wext.c ret = wireless_process_ioctl(net, ifr, cmd, info, standard, private); net 1100 net/wireless/wext.c ret = wext_ioctl_dispatch(net, ifr, cmd, &info, net 1199 net/wireless/wext.c ret = wext_ioctl_dispatch(net, (struct ifreq *) &iwr, cmd, &info, net 475 net/x25/af_x25.c struct sock *sk = sk_alloc(net, AF_X25, GFP_ATOMIC, &x25_proto); net 497 net/x25/af_x25.c if (net != &init_net) net 504 net/x25/af_x25.c if ((sk = x25_alloc_socket(net)) == NULL) net 600 security/selinux/avc.c if (a->u.net.sk) { net 601 security/selinux/avc.c struct sock *sk = a->u.net.sk; net 654 security/selinux/avc.c switch (a->u.net.family) { net 656 security/selinux/avc.c avc_print_ipv4_addr(ab, a->u.net.v4info.saddr, net 657 security/selinux/avc.c a->u.net.sport, net 659 security/selinux/avc.c avc_print_ipv4_addr(ab, a->u.net.v4info.daddr, net 660 security/selinux/avc.c a->u.net.dport, net 664 security/selinux/avc.c avc_print_ipv6_addr(ab, &a->u.net.v6info.saddr, net 665 security/selinux/avc.c a->u.net.sport, net 667 security/selinux/avc.c avc_print_ipv6_addr(ab, &a->u.net.v6info.daddr, net 668 security/selinux/avc.c a->u.net.dport, net 672 security/selinux/avc.c if (a->u.net.netif > 0) { net 677 security/selinux/avc.c a->u.net.netif); net 3413 security/selinux/hooks.c ad->u.net.v4info.saddr = ih->saddr; net 3414 security/selinux/hooks.c ad->u.net.v4info.daddr = ih->daddr; net 3432 security/selinux/hooks.c ad->u.net.sport = th->source; net 3433 security/selinux/hooks.c ad->u.net.dport = th->dest; net 3448 security/selinux/hooks.c ad->u.net.sport = uh->source; net 3449 security/selinux/hooks.c ad->u.net.dport = uh->dest; net 3464 security/selinux/hooks.c ad->u.net.sport = dh->dccph_sport; net 3465 security/selinux/hooks.c ad->u.net.dport = dh->dccph_dport; net 3491 security/selinux/hooks.c ipv6_addr_copy(&ad->u.net.v6info.saddr, &ip6->saddr); net 3492 security/selinux/hooks.c ipv6_addr_copy(&ad->u.net.v6info.daddr, &ip6->daddr); net 3512 security/selinux/hooks.c ad->u.net.sport = th->source; net 3513 security/selinux/hooks.c ad->u.net.dport = th->dest; net 3524 security/selinux/hooks.c ad->u.net.sport = uh->source; net 3525 security/selinux/hooks.c ad->u.net.dport = uh->dest; net 3536 security/selinux/hooks.c ad->u.net.sport = dh->dccph_sport; net 3537 security/selinux/hooks.c ad->u.net.dport = dh->dccph_dport; net 3557 security/selinux/hooks.c switch (ad->u.net.family) { net 3562 security/selinux/hooks.c addrp = (char *)(src ? &ad->u.net.v4info.saddr : net 3563 security/selinux/hooks.c &ad->u.net.v4info.daddr); net 3571 security/selinux/hooks.c addrp = (char *)(src ? &ad->u.net.v6info.saddr : net 3572 security/selinux/hooks.c &ad->u.net.v6info.daddr); net 3644 security/selinux/hooks.c ad.u.net.sk = sock->sk; net 3752 security/selinux/hooks.c ad.u.net.sport = htons(snum); net 3753 security/selinux/hooks.c ad.u.net.family = family; net 3785 security/selinux/hooks.c ad.u.net.sport = htons(snum); net 3786 security/selinux/hooks.c ad.u.net.family = family; net 3789 security/selinux/hooks.c ad.u.net.v4info.saddr = addr4->sin_addr.s_addr; net 3791 security/selinux/hooks.c ipv6_addr_copy(&ad.u.net.v6info.saddr, &addr6->sin6_addr); net 3844 security/selinux/hooks.c ad.u.net.dport = htons(snum); net 3845 security/selinux/hooks.c ad.u.net.family = sk->sk_family; net 3950 security/selinux/hooks.c ad.u.net.sk = other->sk; net 3982 security/selinux/hooks.c ad.u.net.sk = other->sk; net 4070 security/selinux/hooks.c ntohs(ad->u.net.sport), &port_sid); net 4092 security/selinux/hooks.c ad.u.net.netif = skb->iif; net 4093 security/selinux/hooks.c ad.u.net.family = family; net 4156 security/selinux/hooks.c ad.u.net.netif = skb->iif; net 4157 security/selinux/hooks.c ad.u.net.family = family; net 4434 security/selinux/hooks.c ad.u.net.netif = ifindex; net 4435 security/selinux/hooks.c ad.u.net.family = family; net 4569 security/selinux/hooks.c ntohs(ad->u.net.dport), &port_sid); net 4595 security/selinux/hooks.c ad.u.net.netif = ifindex; net 4596 security/selinux/hooks.c ad.u.net.family = family; net 4683 security/selinux/hooks.c ad.u.net.netif = ifindex; net 4684 security/selinux/hooks.c ad.u.net.family = family; net 68 security/selinux/include/avc.h } net;