/linux-4.4.14/Documentation/DocBook/ |
D | .80211.xml.cmd | 2 …net/cfg80211.h include/net/cfg80211.h include/net/cfg80211.h include/net/cfg80211.h include/net/cf…
|
D | .networking.xml.cmd | 2 …net.h include/linux/skbuff.h include/net/sock.h net/socket.c net/core/skbuff.c net/core/sock.c net…
|
/linux-4.4.14/include/net/ |
D | net_namespace.h | 47 struct net { struct 147 extern struct net init_net; argument 150 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns, 151 struct net *old_net); 156 static inline struct net *copy_net_ns(unsigned long flags, in copy_net_ns() 157 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns() 168 struct net *get_net_ns_by_pid(pid_t pid); 169 struct net *get_net_ns_by_fd(int pid); 180 void __put_net(struct net *net); 182 static inline struct net *get_net(struct net *net) in get_net() argument [all …]
|
D | ip_fib.h | 105 struct net *fib_net; 173 __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh); 175 #define FIB_RES_SADDR(net, res) \ argument 177 atomic_read(&(net)->ipv4.dev_addr_genid)) ? \ 179 fib_info_update_nh_saddr((net), &FIB_RES_NH(res))) 184 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument 185 FIB_RES_SADDR(net, res)) 212 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table() argument 218 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX] : in fib_get_table() 219 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]; in fib_get_table() [all …]
|
D | wext.h | 6 struct net; 9 int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, 11 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, 17 static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, in wext_handle_ioctl() argument 22 static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl() argument 30 int wext_proc_init(struct net *net); 31 void wext_proc_exit(struct net *net); 33 static inline int wext_proc_init(struct net *net) in wext_proc_init() argument 37 static inline void wext_proc_exit(struct net *net) in wext_proc_exit() argument
|
D | ip.h | 110 int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb); 111 int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb); 112 int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, 113 int (*output)(struct net *, struct sock *, struct sk_buff *)); 115 int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb); 116 int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb); 134 int ip_send_skb(struct net *net, struct sk_buff *skb); 188 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument 189 #define IP_INC_STATS_BH(net, field) SNMP_INC_STATS64_BH((net)->mib.ip_statistics, field) argument 190 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument [all …]
|
D | ip6_route.h | 67 struct dst_entry *ip6_route_output_flags(struct net *net, const struct sock *sk, 70 static inline struct dst_entry *ip6_route_output(struct net *net, in ip6_route_output() argument 74 return ip6_route_output_flags(net, sk, fl6, 0); in ip6_route_output() 77 struct dst_entry *ip6_route_lookup(struct net *net, struct flowi6 *fl6, 83 int ipv6_route_ioctl(struct net *net, unsigned int cmd, void __user *arg); 89 int ip6_route_get_saddr(struct net *net, struct rt6_info *rt, 93 struct rt6_info *rt6_lookup(struct net *net, const struct in6_addr *daddr, 99 void fib6_force_start_gc(struct net *net); 113 void rt6_purge_dflt_routers(struct net *net); 118 void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu, int oif, [all …]
|
D | route.h | 115 void rt_cache_flush(struct net *net); 117 struct rtable *__ip_route_output_key_hash(struct net *, struct flowi4 *flp, 120 static inline struct rtable *__ip_route_output_key(struct net *net, in __ip_route_output_key() argument 123 return __ip_route_output_key_hash(net, flp, -1); in __ip_route_output_key() 126 struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp, 128 struct dst_entry *ipv4_blackhole_route(struct net *net, 131 static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) in ip_route_output_key() argument 133 return ip_route_output_flow(net, flp, NULL); in ip_route_output_key() 136 static inline struct rtable *ip_route_output(struct net *net, __be32 daddr, in ip_route_output() argument 145 return ip_route_output_key(net, &fl4); in ip_route_output() [all …]
|
D | ipv6.h | 115 #define IP6_REPLY_MARK(net, mark) \ argument 116 ((net)->ipv6.sysctl.fwmark_reflect ? (mark) : 0) 124 #define _DEVINC(net, statname, modifier, idev, field) \ argument 129 SNMP_INC_STATS##modifier((net)->mib.statname##_statistics, (field));\ 133 #define _DEVINCATOMIC(net, statname, modifier, idev, field) \ argument 138 SNMP_INC_STATS##modifier((net)->mib.statname##_statistics, (field));\ 142 #define _DEVINC_ATOMIC_ATOMIC(net, statname, idev, field) \ argument 147 SNMP_INC_STATS_ATOMIC_LONG((net)->mib.statname##_statistics, (field));\ 150 #define _DEVADD(net, statname, modifier, idev, field, val) \ argument 155 SNMP_ADD_STATS##modifier((net)->mib.statname##_statistics, (field), (val));\ [all …]
|
D | l3mdev.h | 75 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex); 96 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() argument 106 dev = dev_get_by_index_rcu(net, ifindex); in netif_index_is_l3_master() 115 static inline int l3mdev_get_saddr(struct net *net, int ifindex, in l3mdev_get_saddr() argument 125 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_get_saddr() 147 struct dst_entry *l3mdev_rt6_dst_by_oif(struct net *net, in l3mdev_rt6_dst_by_oif() argument 153 dev = dev_get_by_index(net, fl6->flowi6_oif); in l3mdev_rt6_dst_by_oif() 190 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index() argument 201 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() argument 206 static inline int l3mdev_get_saddr(struct net *net, int ifindex, in l3mdev_get_saddr() argument [all …]
|
D | udp.h | 84 struct net *net, unsigned int num) in udp_hashslot() argument 86 return &table->hash[udp_hashfn(net, num, table->mask)]; in udp_hashslot() 199 static inline __be16 udp_flow_src_port(struct net *net, struct sk_buff *skb, in udp_flow_src_port() argument 206 inet_get_local_port_range(net, &min, &max); in udp_flow_src_port() 257 struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, 259 struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, 262 struct sock *udp6_lib_lookup(struct net *net, 266 struct sock *__udp6_lib_lookup(struct net *net, 274 #define UDP_INC_STATS_USER(net, field, is_udplite) do { \ argument 275 if (is_udplite) SNMP_INC_STATS_USER((net)->mib.udplite_statistics, field); \ [all …]
|
D | icmp.h | 32 #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument 33 #define ICMP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.icmp_statistics, field) argument 34 #define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, … argument 35 #define ICMPMSGIN_INC_STATS_BH(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics… argument 40 struct net; 46 void icmp_out_count(struct net *net, unsigned char type);
|
D | inet_hashtables.h | 88 static inline struct net *ib_net(struct inet_bind_bucket *ib) in ib_net() 175 inet_bind_bucket_create(struct kmem_cache *cachep, struct net *net, 181 static inline u32 inet_bhashfn(const struct net *net, const __u16 lport, in inet_bhashfn() argument 184 return (lport + net_hash_mix(net)) & (bhash_size - 1); in inet_bhashfn() 191 static inline u32 inet_lhashfn(const struct net *net, const unsigned short num) in inet_lhashfn() argument 193 return (num + net_hash_mix(net)) & (INET_LHTABLE_SIZE - 1); in inet_lhashfn() 214 struct sock *__inet_lookup_listener(struct net *net, 221 static inline struct sock *inet_lookup_listener(struct net *net, in inet_lookup_listener() argument 226 return __inet_lookup_listener(net, hashinfo, saddr, sport, in inet_lookup_listener() 284 struct sock *__inet_lookup_established(struct net *net, [all …]
|
D | xfrm.h | 47 #define XFRM_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.xfrm_statistics, field) argument 48 #define XFRM_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.xfrm_statistics, field) argument 49 #define XFRM_INC_STATS_USER(net, field) SNMP_INC_STATS_USER((net)-mib.xfrm_statistics, field) argument 51 #define XFRM_INC_STATS(net, field) ((void)(net)) argument 52 #define XFRM_INC_STATS_BH(net, field) ((void)(net)) argument 53 #define XFRM_INC_STATS_USER(net, field) ((void)(net)) argument 235 static inline struct net *xs_net(struct xfrm_state *x) in xs_net() 266 struct net *net; member 287 void (*garbage_collect)(struct net *net); 288 struct dst_entry *(*dst_lookup)(struct net *net, [all …]
|
D | addrconf.h | 59 int addrconf_add_ifaddr(struct net *net, void __user *arg); 60 int addrconf_del_ifaddr(struct net *net, void __user *arg); 61 int addrconf_set_dstaddr(struct net *net, void __user *arg); 63 int ipv6_chk_addr(struct net *net, const struct in6_addr *addr, 65 int ipv6_chk_addr_and_flags(struct net *net, const struct in6_addr *addr, 70 int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr); 79 struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net, 83 int ipv6_dev_get_saddr(struct net *net, const struct net_device *dev, 153 u32 ipv6_addr_label(struct net *net, const struct in6_addr *addr, 192 int (*ipv6_dst_lookup)(struct net *net, struct sock *sk, [all …]
|
D | genetlink.h | 64 int (*mcast_bind)(struct net *net, int group); 65 void (*mcast_unbind)(struct net *net, int group); 100 static inline struct net *genl_info_net(struct genl_info *info) in genl_info_net() 105 static inline void genl_info_net_set(struct genl_info *info, struct net *net) in genl_info_net_set() argument 107 write_pnet(&info->_net, net); in genl_info_net_set() 293 struct net *net, struct sk_buff *skb, in genlmsg_multicast_netns() argument 299 return nlmsg_multicast(net->genl_sock, skb, portid, group, flags); in genlmsg_multicast_netns() 337 static inline int genlmsg_unicast(struct net *net, struct sk_buff *skb, u32 portid) in genlmsg_unicast() argument 339 return nlmsg_unicast(net->genl_sock, skb, portid); in genlmsg_unicast() 412 static inline int genl_set_err(struct genl_family *family, struct net *net, in genl_set_err() argument [all …]
|
D | udp_tunnel.h | 38 int udp_sock_create4(struct net *net, struct udp_port_cfg *cfg, 42 int udp_sock_create6(struct net *net, struct udp_port_cfg *cfg, 45 static inline int udp_sock_create6(struct net *net, struct udp_port_cfg *cfg, in udp_sock_create6() argument 52 static inline int udp_sock_create(struct net *net, in udp_sock_create() argument 57 return udp_sock_create4(net, cfg, sockp); in udp_sock_create() 60 return udp_sock_create6(net, cfg, sockp); in udp_sock_create() 77 void setup_udp_tunnel_sock(struct net *net, struct socket *sock,
|
D | inet6_hashtables.h | 47 struct sock *__inet6_lookup_established(struct net *net, 54 struct sock *inet6_lookup_listener(struct net *net, 61 static inline struct sock *__inet6_lookup(struct net *net, in __inet6_lookup() argument 69 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup() 74 return inet6_lookup_listener(net, hashinfo, saddr, sport, in __inet6_lookup() 95 struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo,
|
D | af_unix.h | 79 int unix_sysctl_register(struct net *net); 80 void unix_sysctl_unregister(struct net *net); 82 static inline int unix_sysctl_register(struct net *net) { return 0; } in unix_sysctl_register() argument 83 static inline void unix_sysctl_unregister(struct net *net) {} in unix_sysctl_unregister() argument
|
/linux-4.4.14/net/tipc/ |
D | bcast.h | 47 int tipc_bcast_init(struct net *net); 48 void tipc_bcast_reinit(struct net *net); 49 void tipc_bcast_stop(struct net *net); 50 void tipc_bcast_add_peer(struct net *net, struct tipc_link *l, 52 void tipc_bcast_remove_peer(struct net *net, struct tipc_link *rcv_bcl); 53 void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id); 54 void tipc_bcast_dec_bearer_dst_cnt(struct net *net, int bearer_id); 55 int tipc_bcast_get_mtu(struct net *net); 56 int tipc_bcast_xmit(struct net *net, struct sk_buff_head *list); 57 int tipc_bcast_rcv(struct net *net, struct tipc_link *l, struct sk_buff *skb); [all …]
|
D | bcast.c | 65 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base() argument 67 return tipc_net(net)->bcbase; in tipc_bc_base() 70 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu() argument 72 return tipc_link_mtu(tipc_bc_sndlink(net)); in tipc_bcast_get_mtu() 78 static void tipc_bcbase_select_primary(struct net *net) in tipc_bcbase_select_primary() argument 80 struct tipc_bc_base *bb = tipc_bc_base(net); in tipc_bcbase_select_primary() 93 mtu = tipc_bearer_mtu(net, i); in tipc_bcbase_select_primary() 103 if ((i ^ tipc_own_addr(net)) & 1) in tipc_bcbase_select_primary() 108 void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id) in tipc_bcast_inc_bearer_dst_cnt() argument 110 struct tipc_bc_base *bb = tipc_bc_base(net); in tipc_bcast_inc_bearer_dst_cnt() [all …]
|
D | name_distr.c | 71 static struct sk_buff *named_prepare_buf(struct net *net, u32 type, u32 size, in named_prepare_buf() argument 74 struct tipc_net *tn = net_generic(net, tipc_net_id); in named_prepare_buf() 87 void named_cluster_distribute(struct net *net, struct sk_buff *skb) in named_cluster_distribute() argument 89 struct tipc_net *tn = net_generic(net, tipc_net_id); in named_cluster_distribute() 97 if (in_own_node(net, dnode)) in named_cluster_distribute() 105 tipc_node_xmit_skb(net, oskb, dnode, 0); in named_cluster_distribute() 115 struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ) in tipc_named_publish() argument 117 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_named_publish() 127 buf = named_prepare_buf(net, PUBLICATION, ITEM_SIZE, 0); in tipc_named_publish() 141 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ) in tipc_named_withdraw() argument [all …]
|
D | name_distr.h | 70 struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ); 71 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ); 72 void named_cluster_distribute(struct net *net, struct sk_buff *buf); 73 void tipc_named_node_up(struct net *net, u32 dnode); 74 void tipc_named_rcv(struct net *net, struct sk_buff_head *msg_queue); 75 void tipc_named_reinit(struct net *net); 76 void tipc_named_process_backlog(struct net *net); 77 void tipc_publ_notify(struct net *net, struct list_head *nsub_list, u32 addr);
|
D | bearer.h | 105 int (*send_msg)(struct net *net, struct sk_buff *buf, 108 int (*enable_media)(struct net *net, struct tipc_bearer *b_ptr, 179 void tipc_rcv(struct net *net, struct sk_buff *skb, struct tipc_bearer *b_ptr); 206 int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b, 209 int tipc_l2_send_msg(struct net *net, struct sk_buff *buf, 212 void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest); 213 void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest); 214 struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name); 218 void tipc_bearer_stop(struct net *net); 219 int tipc_bearer_mtu(struct net *net, u32 bearer_id); [all …]
|
D | node.h | 112 struct net *net; member 133 struct tipc_node *tipc_node_find(struct net *net, u32 addr); 135 void tipc_node_stop(struct net *net); 136 void tipc_node_check_dest(struct net *net, u32 onode, 141 void tipc_node_delete_links(struct net *net, int bearer_id); 145 int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 node, 148 int tipc_node_xmit(struct net *net, struct sk_buff_head *list, u32 dnode, 150 int tipc_node_xmit_skb(struct net *net, struct sk_buff *skb, u32 dest, 152 int tipc_node_add_conn(struct net *net, u32 dnode, u32 port, u32 peer_port); 153 void tipc_node_remove_conn(struct net *net, u32 dnode, u32 port); [all …]
|
D | net.c | 111 int tipc_net_start(struct net *net, u32 addr) in tipc_net_start() argument 113 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_net_start() 117 tipc_named_reinit(net); in tipc_net_start() 118 tipc_sk_reinit(net); in tipc_net_start() 119 tipc_bcast_reinit(net); in tipc_net_start() 121 tipc_nametbl_publish(net, TIPC_CFG_SRV, tn->own_addr, tn->own_addr, in tipc_net_start() 131 void tipc_net_stop(struct net *net) in tipc_net_stop() argument 133 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_net_stop() 138 tipc_nametbl_withdraw(net, TIPC_CFG_SRV, tn->own_addr, 0, in tipc_net_stop() 141 tipc_bearer_stop(net); in tipc_net_stop() [all …]
|
D | addr.h | 49 static inline u32 tipc_own_addr(struct net *net) in tipc_own_addr() argument 51 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_own_addr() 66 u32 tipc_own_addr(struct net *net); 67 int in_own_cluster(struct net *net, u32 addr); 68 int in_own_cluster_exact(struct net *net, u32 addr); 69 int in_own_node(struct net *net, u32 addr); 70 u32 addr_domain(struct net *net, u32 sc);
|
D | core.c | 53 static int __net_init tipc_init_net(struct net *net) in tipc_init_net() argument 55 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_init_net() 64 err = tipc_sk_rht_init(net); in tipc_init_net() 68 err = tipc_nametbl_init(net); in tipc_init_net() 72 err = tipc_topsrv_start(net); in tipc_init_net() 76 err = tipc_bcast_init(net); in tipc_init_net() 83 tipc_bcast_stop(net); in tipc_init_net() 85 tipc_nametbl_stop(net); in tipc_init_net() 87 tipc_sk_rht_destroy(net); in tipc_init_net() 92 static void __net_exit tipc_exit_net(struct net *net) in tipc_exit_net() argument [all …]
|
D | name_table.h | 100 u32 tipc_nametbl_translate(struct net *net, u32 type, u32 instance, u32 *node); 101 int tipc_nametbl_mc_translate(struct net *net, u32 type, u32 lower, u32 upper, 103 struct publication *tipc_nametbl_publish(struct net *net, u32 type, u32 lower, 106 int tipc_nametbl_withdraw(struct net *net, u32 type, u32 lower, u32 ref, 108 struct publication *tipc_nametbl_insert_publ(struct net *net, u32 type, 111 struct publication *tipc_nametbl_remove_publ(struct net *net, u32 type, 116 int tipc_nametbl_init(struct net *net); 117 void tipc_nametbl_stop(struct net *net);
|
D | socket.h | 47 void tipc_sk_rcv(struct net *net, struct sk_buff_head *inputq); 48 void tipc_sk_mcast_rcv(struct net *net, struct sk_buff_head *arrvq, 50 void tipc_sk_reinit(struct net *net); 51 int tipc_sk_rht_init(struct net *net); 52 void tipc_sk_rht_destroy(struct net *net);
|
D | bearer.c | 74 static void bearer_disable(struct net *net, struct tipc_bearer *b_ptr); 175 struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name) in tipc_bearer_find() argument 177 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_find() 189 void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_add_dest() argument 191 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_add_dest() 201 void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_remove_dest() argument 203 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_remove_dest() 216 static int tipc_enable_bearer(struct net *net, const char *name, in tipc_enable_bearer() argument 220 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_enable_bearer() 244 } else if (in_own_cluster_exact(net, disc_domain)) in tipc_enable_bearer() [all …]
|
D | discover.c | 65 struct net *net; member 80 static void tipc_disc_init_msg(struct net *net, struct sk_buff *buf, u32 type, in tipc_disc_init_msg() argument 83 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_disc_init_msg() 123 void tipc_disc_rcv(struct net *net, struct sk_buff *skb, in tipc_disc_rcv() argument 126 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_disc_rcv() 152 if (in_own_node(net, onode)) { in tipc_disc_rcv() 162 tipc_node_check_dest(net, onode, bearer, caps, signature, in tipc_disc_rcv() 172 tipc_disc_init_msg(net, rskb, DSC_RESP_MSG, bearer); in tipc_disc_rcv() 173 tipc_bearer_xmit_skb(net, bearer->identity, rskb, &maddr); in tipc_disc_rcv() 247 tipc_bearer_xmit_skb(req->net, req->bearer_id, skb, &req->dest); in disc_timeout() [all …]
|
D | node.c | 123 struct tipc_node *tipc_node_find(struct net *net, u32 addr) in tipc_node_find() argument 125 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_find() 128 if (unlikely(!in_own_cluster_exact(net, addr))) in tipc_node_find() 144 struct tipc_node *tipc_node_create(struct net *net, u32 addr, u16 capabilities) in tipc_node_create() argument 146 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_create() 150 n_ptr = tipc_node_find(net, addr); in tipc_node_create() 159 n_ptr->net = net; in tipc_node_create() 175 if (!tipc_link_bc_create(net, tipc_own_addr(net), n_ptr->addr, in tipc_node_create() 176 U16_MAX, tipc_bc_sndlink(net)->window, in tipc_node_create() 180 tipc_bc_sndlink(net), in tipc_node_create() [all …]
|
D | addr.c | 44 int in_own_cluster(struct net *net, u32 addr) in in_own_cluster() argument 46 return in_own_cluster_exact(net, addr) || !addr; in in_own_cluster() 49 int in_own_cluster_exact(struct net *net, u32 addr) in in_own_cluster_exact() argument 51 struct tipc_net *tn = net_generic(net, tipc_net_id); in in_own_cluster_exact() 59 int in_own_node(struct net *net, u32 addr) in in_own_node() argument 61 struct tipc_net *tn = net_generic(net, tipc_net_id); in in_own_node() 72 u32 addr_domain(struct net *net, u32 sc) in addr_domain() argument 74 struct tipc_net *tn = net_generic(net, tipc_net_id); in addr_domain()
|
D | name_table.c | 232 static struct publication *tipc_nameseq_insert_publ(struct net *net, in tipc_nameseq_insert_publ() argument 321 if (in_own_cluster(net, node)) { in tipc_nameseq_insert_publ() 326 if (in_own_node(net, node)) { in tipc_nameseq_insert_publ() 351 static struct publication *tipc_nameseq_remove_publ(struct net *net, in tipc_nameseq_remove_publ() argument 382 if (in_own_cluster(net, node)) { in tipc_nameseq_remove_publ() 388 if (in_own_node(net, node)) { in tipc_nameseq_remove_publ() 445 static struct name_seq *nametbl_find_seq(struct net *net, u32 type) in nametbl_find_seq() argument 447 struct tipc_net *tn = net_generic(net, tipc_net_id); in nametbl_find_seq() 460 struct publication *tipc_nametbl_insert_publ(struct net *net, u32 type, in tipc_nametbl_insert_publ() argument 464 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_insert_publ() [all …]
|
D | discover.h | 42 int tipc_disc_create(struct net *net, struct tipc_bearer *b_ptr, 45 void tipc_disc_reset(struct net *net, struct tipc_bearer *b_ptr); 48 void tipc_disc_rcv(struct net *net, struct sk_buff *buf,
|
/linux-4.4.14/net/core/ |
D | net_namespace.c | 35 struct net init_net = { 56 static int net_assign_generic(struct net *net, int id, void *data) in net_assign_generic() argument 63 old_ng = rcu_dereference_protected(net->gen, in net_assign_generic() 86 rcu_assign_pointer(net->gen, ng); in net_assign_generic() 93 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init() argument 103 err = net_assign_generic(net, *ops->id, data); in ops_init() 109 err = ops->init(net); in ops_init() 120 static void ops_free(const struct pernet_operations *ops, struct net *net) in ops_free() argument 124 kfree(net_generic(net, id)); in ops_free() 131 struct net *net; in ops_exit_list() local [all …]
|
D | dev_ioctl.c | 20 static int dev_ifname(struct net *net, struct ifreq __user *arg) in dev_ifname() argument 32 error = netdev_get_name(net, ifr.ifr_name, ifr.ifr_ifindex); in dev_ifname() 67 static int dev_ifconf(struct net *net, char __user *arg) in dev_ifconf() argument 91 for_each_netdev(net, dev) { in dev_ifconf() 121 static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cmd) in dev_ifsioc_locked() argument 124 struct net_device *dev = dev_get_by_name_rcu(net, ifr->ifr_name); in dev_ifsioc_locked() 241 static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd) in dev_ifsioc() argument 244 struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); in dev_ifsioc() 359 void dev_load(struct net *net, const char *name) in dev_load() argument 365 dev = dev_get_by_name_rcu(net, name); in dev_load() [all …]
|
D | flow.c | 34 struct net *net; member 192 flow_cache_lookup(struct net *net, const struct flowi *key, u16 family, u8 dir, in flow_cache_lookup() argument 195 struct flow_cache *fc = &net->xfrm.flow_cache_global; in flow_cache_lookup() 222 if (tfle->net == net && in flow_cache_lookup() 237 fle->net = net; in flow_cache_lookup() 245 } else if (likely(fle->genid == atomic_read(&net->xfrm.flow_cache_genid))) { in flow_cache_lookup() 264 flo = resolver(net, key, family, dir, flo, ctx); in flow_cache_lookup() 266 fle->genid = atomic_read(&net->xfrm.flow_cache_genid); in flow_cache_lookup() 340 void flow_cache_flush(struct net *net) in flow_cache_flush() argument 353 mutex_lock(&net->xfrm.flow_flush_sem); in flow_cache_flush() [all …]
|
D | net-procfs.c | 17 struct net *net = seq_file_net(seq); in dev_from_same_bucket() local 22 h = &net->dev_name_head[get_bucket(*pos)]; in dev_from_same_bucket() 315 static int __net_init dev_proc_net_init(struct net *net) in dev_proc_net_init() argument 319 if (!proc_create("dev", S_IRUGO, net->proc_net, &dev_seq_fops)) in dev_proc_net_init() 321 if (!proc_create("softnet_stat", S_IRUGO, net->proc_net, in dev_proc_net_init() 324 if (!proc_create("ptype", S_IRUGO, net->proc_net, &ptype_seq_fops)) in dev_proc_net_init() 327 if (wext_proc_init(net)) in dev_proc_net_init() 333 remove_proc_entry("ptype", net->proc_net); in dev_proc_net_init() 335 remove_proc_entry("softnet_stat", net->proc_net); in dev_proc_net_init() 337 remove_proc_entry("dev", net->proc_net); in dev_proc_net_init() [all …]
|
D | fib_rules.c | 68 static struct fib_rules_ops *lookup_rules_ops(struct net *net, int family) in lookup_rules_ops() argument 73 list_for_each_entry_rcu(ops, &net->rules_ops, list) { in lookup_rules_ops() 102 struct net *net; in __fib_rules_register() local 104 net = ops->fro_net; in __fib_rules_register() 114 spin_lock(&net->rules_mod_lock); in __fib_rules_register() 115 list_for_each_entry(o, &net->rules_ops, list) in __fib_rules_register() 119 list_add_tail_rcu(&ops->list, &net->rules_ops); in __fib_rules_register() 122 spin_unlock(&net->rules_mod_lock); in __fib_rules_register() 128 fib_rules_register(const struct fib_rules_ops *tmpl, struct net *net) in fib_rules_register() argument 138 ops->fro_net = net; in fib_rules_register() [all …]
|
/linux-4.4.14/fs/proc/ |
D | proc_net.c | 29 static inline struct net *PDE_NET(struct proc_dir_entry *pde) in PDE_NET() 34 static struct net *get_proc_net(const struct inode *inode) in get_proc_net() 42 struct net *net; in seq_open_net() local 47 net = get_proc_net(ino); in seq_open_net() 48 if (net == NULL) in seq_open_net() 53 put_net(net); in seq_open_net() 57 p->net = net; in seq_open_net() 67 struct net *net; in single_open_net() local 70 net = get_proc_net(inode); in single_open_net() 71 if (net == NULL) in single_open_net() [all …]
|
/linux-4.4.14/drivers/net/ethernet/ |
D | Kconfig | 20 source "drivers/net/ethernet/3com/Kconfig" 21 source "drivers/net/ethernet/adaptec/Kconfig" 22 source "drivers/net/ethernet/aeroflex/Kconfig" 23 source "drivers/net/ethernet/agere/Kconfig" 24 source "drivers/net/ethernet/allwinner/Kconfig" 25 source "drivers/net/ethernet/alteon/Kconfig" 26 source "drivers/net/ethernet/altera/Kconfig" 27 source "drivers/net/ethernet/amd/Kconfig" 28 source "drivers/net/ethernet/apm/Kconfig" 29 source "drivers/net/ethernet/apple/Kconfig" [all …]
|
/linux-4.4.14/net/xfrm/ |
D | xfrm_sysctl.c | 6 static void __net_init __xfrm_sysctl_init(struct net *net) in __xfrm_sysctl_init() argument 8 net->xfrm.sysctl_aevent_etime = XFRM_AE_ETIME; in __xfrm_sysctl_init() 9 net->xfrm.sysctl_aevent_rseqth = XFRM_AE_SEQT_SIZE; in __xfrm_sysctl_init() 10 net->xfrm.sysctl_larval_drop = 1; in __xfrm_sysctl_init() 11 net->xfrm.sysctl_acq_expires = 30; in __xfrm_sysctl_init() 43 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument 47 __xfrm_sysctl_init(net); in xfrm_sysctl_init() 52 table[0].data = &net->xfrm.sysctl_aevent_etime; in xfrm_sysctl_init() 53 table[1].data = &net->xfrm.sysctl_aevent_rseqth; in xfrm_sysctl_init() 54 table[2].data = &net->xfrm.sysctl_larval_drop; in xfrm_sysctl_init() [all …]
|
D | xfrm_policy.c | 118 static inline struct dst_entry *__xfrm_dst_lookup(struct net *net, in __xfrm_dst_lookup() argument 131 dst = afinfo->dst_lookup(net, tos, oif, saddr, daddr); in __xfrm_dst_lookup() 144 struct net *net = xs_net(x); in xfrm_dst_lookup() local 158 dst = __xfrm_dst_lookup(net, tos, oif, saddr, daddr, family); in xfrm_dst_lookup() 282 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc() argument 289 write_pnet(&policy->xp_net, net); in xfrm_policy_alloc() 349 static inline unsigned int idx_hash(struct net *net, u32 index) in idx_hash() argument 351 return __idx_hash(index, net->xfrm.policy_idx_hmask); in idx_hash() 355 static void __get_hash_thresh(struct net *net, in __get_hash_thresh() argument 361 *dbits = net->xfrm.policy_bydst[dir].dbits4; in __get_hash_thresh() [all …]
|
D | xfrm_state.c | 40 static inline unsigned int xfrm_dst_hash(struct net *net, in xfrm_dst_hash() argument 46 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask); in xfrm_dst_hash() 49 static inline unsigned int xfrm_src_hash(struct net *net, in xfrm_src_hash() argument 54 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); in xfrm_src_hash() 58 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, in xfrm_spi_hash() argument 61 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash() 102 struct net *net = container_of(work, struct net, xfrm.state_hash_work); in xfrm_hash_resize() local 108 nsize = xfrm_hash_new_size(net->xfrm.state_hmask); in xfrm_hash_resize() 124 spin_lock_bh(&net->xfrm.xfrm_state_lock); in xfrm_hash_resize() 127 for (i = net->xfrm.state_hmask; i >= 0; i--) in xfrm_hash_resize() [all …]
|
D | xfrm_output.c | 22 static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb); 57 struct net *net = xs_net(x); in xfrm_output_one() local 65 XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR); in xfrm_output_one() 71 XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATEMODEERROR); in xfrm_output_one() 78 XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATEINVALID); in xfrm_output_one() 85 XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATEEXPIRED); in xfrm_output_one() 91 XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATESEQERROR); in xfrm_output_one() 108 XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATEPROTOERROR); in xfrm_output_one() 114 XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR); in xfrm_output_one() 134 struct net *net = xs_net(skb_dst(skb)->xfrm); in xfrm_output_resume() local [all …]
|
D | xfrm_proc.c | 53 struct net *net = seq->private; in xfrm_statistics_seq_show() local 57 snmp_fold_field(net->mib.xfrm_statistics, in xfrm_statistics_seq_show() 75 int __net_init xfrm_proc_init(struct net *net) in xfrm_proc_init() argument 77 if (!proc_create("xfrm_stat", S_IRUGO, net->proc_net, in xfrm_proc_init() 83 void xfrm_proc_fini(struct net *net) in xfrm_proc_fini() argument 85 remove_proc_entry("xfrm_stat", net->proc_net); in xfrm_proc_fini()
|
D | xfrm_user.c | 528 static struct xfrm_state *xfrm_state_construct(struct net *net, in xfrm_state_construct() argument 533 struct xfrm_state *x = xfrm_state_alloc(net); in xfrm_state_construct() 593 x->replay_maxdiff = net->xfrm.sysctl_aevent_rseqth; in xfrm_state_construct() 595 x->replay_maxage = (net->xfrm.sysctl_aevent_etime*HZ)/XFRM_AE_ETH_M; in xfrm_state_construct() 616 struct net *net = sock_net(skb->sk); in xfrm_add_sa() local 626 x = xfrm_state_construct(net, p, attrs, &err); in xfrm_add_sa() 654 static struct xfrm_state *xfrm_user_state_lookup(struct net *net, in xfrm_user_state_lookup() argument 666 x = xfrm_state_lookup(net, mark, &p->daddr, p->spi, p->proto, p->family); in xfrm_user_state_lookup() 677 x = xfrm_state_lookup_byaddr(net, mark, in xfrm_user_state_lookup() 691 struct net *net = sock_net(skb->sk); in xfrm_del_sa() local [all …]
|
/linux-4.4.14/include/net/netfilter/ |
D | nf_conntrack_ecache.h | 37 struct net *net = nf_ct_net(ct); in nf_ct_ecache_ext_add() local 40 if (!ctmask && !expmask && net->ct.sysctl_events) { in nf_ct_ecache_ext_add() 70 int nf_conntrack_register_notifier(struct net *net, 72 void nf_conntrack_unregister_notifier(struct net *net, 80 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local 83 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event_cache() 100 struct net *net = nf_ct_net(ct); in nf_conntrack_eventmask_report() local 105 notify = rcu_dereference(net->ct.nf_conntrack_event_cb); in nf_conntrack_eventmask_report() 170 int nf_ct_expect_register_notifier(struct net *net, 172 void nf_ct_expect_unregister_notifier(struct net *net, [all …]
|
D | nf_conntrack_timestamp.h | 29 struct net *net = nf_ct_net(ct); in nf_ct_tstamp_ext_add() local 31 if (!net->ct.sysctl_tstamp) in nf_ct_tstamp_ext_add() 40 static inline bool nf_ct_tstamp_enabled(struct net *net) in nf_ct_tstamp_enabled() argument 42 return net->ct.sysctl_tstamp != 0; in nf_ct_tstamp_enabled() 45 static inline void nf_ct_set_tstamp(struct net *net, bool enable) in nf_ct_set_tstamp() argument 47 net->ct.sysctl_tstamp = enable; in nf_ct_set_tstamp() 51 int nf_conntrack_tstamp_pernet_init(struct net *net); 52 void nf_conntrack_tstamp_pernet_fini(struct net *net); 57 static inline int nf_conntrack_tstamp_pernet_init(struct net *net) in nf_conntrack_tstamp_pernet_init() argument 62 static inline void nf_conntrack_tstamp_pernet_fini(struct net *net) in nf_conntrack_tstamp_pernet_fini() argument
|
D | nf_conntrack_l4proto.h | 29 struct net *net, struct nf_conntrack_tuple *tuple); 54 int (*error)(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, 66 unsigned int *(*get_timeouts)(struct net *net); 91 struct net *net, void *data); 100 int (*init_net)(struct net *net, u_int16_t proto); 103 struct nf_proto_net *(*get_net_proto)(struct net *net); 125 int nf_ct_l4proto_pernet_register(struct net *net, 127 void nf_ct_l4proto_pernet_unregister(struct net *net, 151 #define LOG_INVALID(net, proto) \ argument 152 ((net)->ct.sysctl_log_invalid == (proto) || \ [all …]
|
D | nf_conntrack_acct.h | 35 struct net *net = nf_ct_net(ct); in nf_ct_acct_ext_add() local 38 if (!net->ct.sysctl_acct) in nf_ct_acct_ext_add() 53 static inline bool nf_ct_acct_enabled(struct net *net) in nf_ct_acct_enabled() argument 55 return net->ct.sysctl_acct != 0; in nf_ct_acct_enabled() 59 static inline void nf_ct_set_acct(struct net *net, bool enable) in nf_ct_set_acct() argument 61 net->ct.sysctl_acct = enable; in nf_ct_set_acct() 64 int nf_conntrack_acct_pernet_init(struct net *net); 65 void nf_conntrack_acct_pernet_fini(struct net *net);
|
D | nf_conntrack_core.h | 23 unsigned int nf_conntrack_in(struct net *net, u_int8_t pf, unsigned int hooknum, 26 int nf_conntrack_init_net(struct net *net); 27 void nf_conntrack_cleanup_net(struct net *net); 30 int nf_conntrack_proto_pernet_init(struct net *net); 31 void nf_conntrack_proto_pernet_fini(struct net *net); 44 struct net *net, 56 nf_conntrack_find_get(struct net *net,
|
D | nf_conntrack_labels.h | 30 struct net *net = nf_ct_net(ct); in nf_ct_labels_ext_add() local 33 words = ACCESS_ONCE(net->ct.label_words); in nf_ct_labels_ext_add() 57 int nf_connlabels_get(struct net *net, unsigned int n_bits); 58 void nf_connlabels_put(struct net *net); 62 static inline int nf_connlabels_get(struct net *net, unsigned int n_bits) { return 0; } in nf_connlabels_get() argument 63 static inline void nf_connlabels_put(struct net *net) {} in nf_connlabels_put() argument
|
D | nf_log.h | 36 typedef void nf_logfn(struct net *net, 56 void nf_log_set(struct net *net, u_int8_t pf, 58 void nf_log_unset(struct net *net, const struct nf_logger *logger); 60 int nf_log_bind_pf(struct net *net, u_int8_t pf, 62 void nf_log_unbind_pf(struct net *net, u_int8_t pf); 73 void nf_log_packet(struct net *net, 83 void nf_log_trace(struct net *net,
|
D | nf_conntrack_expect.h | 59 static inline struct net *nf_ct_exp_net(struct nf_conntrack_expect *exp) in nf_ct_exp_net() 74 int nf_conntrack_expect_pernet_init(struct net *net); 75 void nf_conntrack_expect_pernet_fini(struct net *net); 81 __nf_ct_expect_find(struct net *net, 86 nf_ct_expect_find_get(struct net *net, 91 nf_ct_find_expectation(struct net *net,
|
D | nf_conntrack.h | 143 extern struct net init_net; 145 static inline struct net *nf_ct_net(const struct nf_conn *ct) in nf_ct_net() 190 u_int16_t l3num, struct net *net, 247 void nf_ct_iterate_cleanup(struct net *net, 254 struct nf_conn *nf_conntrack_alloc(struct net *net, 295 struct nf_conn *nf_ct_tmpl_alloc(struct net *net, 300 #define NF_CT_STAT_INC(net, count) __this_cpu_inc((net)->ct.stat->count) argument 301 #define NF_CT_STAT_INC_ATOMIC(net, count) this_cpu_inc((net)->ct.stat->count) argument
|
/linux-4.4.14/drivers/net/usb/ |
D | smsc75xx.c | 102 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in __smsc75xx_read_reg() 132 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc75xx_write_reg() 174 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc75xx_phy_wait_not_busy() 197 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); in __smsc75xx_mdio_read() 209 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_read() 215 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc75xx_mdio_read() 221 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc75xx_mdio_read() 244 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); in __smsc75xx_mdio_write() 251 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc75xx_mdio_write() 263 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_write() [all …]
|
D | sr9800.c | 67 if (skb->len < dev->net->hard_header_len) in sr_rx_fixup() 79 netdev_err(dev->net, "%s : Bad Header Length\n", in sr_rx_fixup() 84 if ((size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) || in sr_rx_fixup() 86 netdev_err(dev->net, "%s : Bad RX Length %d\n", in sr_rx_fixup() 90 sr_skb = netdev_alloc_skb_ip_align(dev->net, size); in sr_rx_fixup() 102 netdev_err(dev->net, "%s : Bad SKB Length %d\n", __func__, in sr_rx_fixup() 161 if (netif_carrier_ok(dev->net) != link) { in sr_status() 163 netdev_dbg(dev->net, "Link Status is: %d\n", link); in sr_status() 175 netdev_err(dev->net, "Failed to enable software MII access\n"); in sr_set_sw_mii() 185 netdev_err(dev->net, "Failed to enable hardware MII access\n"); in sr_set_hw_mii() [all …]
|
D | ax88172a.c | 43 return asix_mdio_read(((struct usbnet *)bus->priv)->net, phy_id, in asix_mdio_bus_read() 50 asix_mdio_write(((struct usbnet *)bus->priv)->net, phy_id, regnum, val); in asix_mdio_bus_write() 54 static int ax88172a_ioctl(struct net_device *net, struct ifreq *rq, int cmd) in ax88172a_ioctl() argument 56 if (!netif_running(net)) in ax88172a_ioctl() 59 if (!net->phydev) in ax88172a_ioctl() 62 return phy_mii_ioctl(net->phydev, rq, cmd); in ax88172a_ioctl() 105 netdev_err(dev->net, "Could not allocate MDIO bus\n"); in ax88172a_init_mdio() 127 netdev_err(dev->net, "Could not register MDIO bus\n"); in ax88172a_init_mdio() 131 netdev_info(dev->net, "registered mdio bus %s\n", priv->mdio->id); in ax88172a_init_mdio() 145 netdev_info(dev->net, "deregistering mdio bus %s\n", priv->mdio->id); in ax88172a_remove_mdio() [all …]
|
D | asix_devices.c | 56 if (netif_carrier_ok(dev->net) != link) { in asix_status() 58 netdev_dbg(dev->net, "Link Status is: %d\n", link); in asix_status() 65 memcpy(dev->net->dev_addr, addr, ETH_ALEN); in asix_set_netdev_dev_addr() 67 netdev_info(dev->net, "invalid hw address, using random\n"); in asix_set_netdev_dev_addr() 68 eth_hw_addr_random(dev->net); in asix_set_netdev_dev_addr() 81 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID1); in asix_get_phyid() 92 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID2); in asix_get_phyid() 101 static u32 asix_get_link(struct net_device *net) in asix_get_link() argument 103 struct usbnet *dev = netdev_priv(net); in asix_get_link() 108 static int asix_ioctl (struct net_device *net, struct ifreq *rq, int cmd) in asix_ioctl() argument [all …]
|
D | smsc95xx.c | 95 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in __smsc95xx_read_reg() 125 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc95xx_write_reg() 167 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc95xx_phy_wait_not_busy() 190 netdev_warn(dev->net, "MII is busy in smsc95xx_mdio_read\n"); in __smsc95xx_mdio_read() 200 netdev_warn(dev->net, "Error writing MII_ADDR\n"); in __smsc95xx_mdio_read() 206 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc95xx_mdio_read() 212 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc95xx_mdio_read() 235 netdev_warn(dev->net, "MII is busy in smsc95xx_mdio_write\n"); in __smsc95xx_mdio_write() 242 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc95xx_mdio_write() 252 netdev_warn(dev->net, "Error writing MII_ADDR\n"); in __smsc95xx_mdio_write() [all …]
|
D | dm9601.c | 133 netdev_err(dev->net, "%s read timed out!\n", phy ? "phy" : "eeprom"); in dm_read_shared_word() 141 netdev_dbg(dev->net, "read shared %d 0x%02x returned 0x%04x, %d\n", in dm_read_shared_word() 176 netdev_err(dev->net, "%s write timed out!\n", phy ? "phy" : "eeprom"); in dm_write_shared_word() 200 static int dm9601_get_eeprom(struct net_device *net, in dm9601_get_eeprom() argument 203 struct usbnet *dev = netdev_priv(net); in dm9601_get_eeprom() 226 netdev_dbg(dev->net, "Only internal phy supported\n"); in dm9601_mdio_read() 232 netdev_dbg(dev->net, in dm9601_mdio_read() 246 netdev_dbg(dev->net, "Only internal phy supported\n"); in dm9601_mdio_write() 250 netdev_dbg(dev->net, "dm9601_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n", in dm9601_mdio_write() 256 static void dm9601_get_drvinfo(struct net_device *net, in dm9601_get_drvinfo() argument [all …]
|
D | asix_common.c | 75 netdev_err(dev->net, "asix_rx_fixup() Data Header synchronisation was lost, remaining %d\n", in asix_rx_fixup_internal() 116 netdev_err(dev->net, "asix_rx_fixup() Bad Header Length 0x%x, offset %d\n", in asix_rx_fixup_internal() 120 if (size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) { in asix_rx_fixup_internal() 121 netdev_err(dev->net, "asix_rx_fixup() Bad RX Length %d\n", in asix_rx_fixup_internal() 131 rx->ax_skb = netdev_alloc_skb_ip_align(dev->net, size); in asix_rx_fixup_internal() 155 netdev_err(dev->net, "asix_rx_fixup() Bad SKB Length %d, %d\n", in asix_rx_fixup_internal() 233 netdev_err(dev->net, "Failed to enable software MII access\n"); in asix_set_sw_mii() 242 netdev_err(dev->net, "Failed to enable hardware MII access\n"); in asix_set_hw_mii() 252 netdev_dbg(dev->net, "asix_get_phy_addr()\n"); in asix_read_phy_addr() 255 netdev_err(dev->net, "Error reading PHYID register: %02x\n", ret); in asix_read_phy_addr() [all …]
|
D | usbnet.c | 169 tmp = hex2bin(dev->net->dev_addr, buf, 6); in usbnet_get_ethernet_addr() 195 netif_dbg(dev, ifdown, dev->net, in intr_complete() 203 netdev_dbg(dev->net, "intr status %d\n", status); in intr_complete() 209 netif_err(dev, timer, dev->net, in intr_complete() 327 skb->protocol = eth_type_trans (skb, dev->net); in usbnet_skb_return() 328 dev->net->stats.rx_packets++; in usbnet_skb_return() 329 dev->net->stats.rx_bytes += skb->len; in usbnet_skb_return() 331 netif_dbg(dev, rx_status, dev->net, "< rx, len %zu, type 0x%x\n", in usbnet_skb_return() 340 netif_dbg(dev, rx_err, dev->net, in usbnet_skb_return() 377 int usbnet_change_mtu (struct net_device *net, int new_mtu) in usbnet_change_mtu() argument [all …]
|
D | pegasus.c | 135 netif_dbg(pegasus, drv, pegasus->net, in get_registers() 148 netif_dbg(pegasus, drv, pegasus->net, in set_registers() 161 netif_dbg(pegasus, drv, pegasus->net, in set_register() 194 netif_device_detach(pegasus->net); in update_eth_regs_async() 195 netif_err(pegasus, drv, pegasus->net, in update_eth_regs_async() 231 netif_dbg(p, drv, p->net, "%s failed\n", __func__); in __mii_op() 290 netif_warn(pegasus, drv, pegasus->net, "%s failed\n", __func__); in read_eprom_word() 339 netif_warn(pegasus, drv, pegasus->net, "%s failed\n", __func__); in write_eprom_word() 365 memcpy(pegasus->net->dev_addr, node_id, sizeof(node_id)); in set_ethernet_addr() 442 struct net_device *net; in read_bulk_callback() local [all …]
|
D | net1080.c | 153 netdev_dbg(dev->net, "registers:\n"); 165 netdev_dbg(dev->net, "reg [0x%x] ==> error %d\n", 168 netdev_dbg(dev->net, "reg [0x%x] = 0x%x\n", reg, *vp); 196 netif_dbg(dev, link, dev->net, in nc_dump_usbctl() 239 netif_dbg(dev, link, dev->net, in nc_dump_status() 273 netif_dbg(dev, link, dev->net, "net1080 %s-%s ttl 0x%x this = %d, other = %d\n", in nc_dump_ttl() 289 netdev_dbg(dev->net, "can't read %s-%s status: %d\n", in net1080_reset() 297 netdev_dbg(dev->net, "can't read USBCTL, %d\n", retval); in net1080_reset() 307 netdev_dbg(dev->net, "can't read TTL, %d\n", retval); in net1080_reset() 315 netdev_dbg(dev->net, "assigned TTL, %d ms\n", NC_READ_TTL_MS); in net1080_reset() [all …]
|
D | mcs7830.c | 332 static int mcs7830_ioctl(struct net_device *net, struct ifreq *rq, int cmd) in mcs7830_ioctl() argument 334 struct usbnet *dev = netdev_priv(net); in mcs7830_ioctl() 359 static void mcs7830_data_set_multicast(struct net_device *net) in mcs7830_data_set_multicast() argument 361 struct usbnet *dev = netdev_priv(net); in mcs7830_data_set_multicast() 371 if (net->flags & IFF_PROMISC) { in mcs7830_data_set_multicast() 373 } else if (net->flags & IFF_ALLMULTI || in mcs7830_data_set_multicast() 374 netdev_mc_count(net) > MCS7830_MAX_MCAST) { in mcs7830_data_set_multicast() 376 } else if (netdev_mc_empty(net)) { in mcs7830_data_set_multicast() 387 netdev_for_each_mc_addr(ha, net) { in mcs7830_data_set_multicast() 399 ret = mcs7830_hif_set_mac_address(dev, dev->net->dev_addr); in mcs7830_apply_base_config() [all …]
|
D | ipheth.c | 142 struct net_device *net; member 242 dev->net->stats.rx_length_errors++; in ipheth_rcvbulk_callback() 252 dev->net->stats.rx_dropped++; in ipheth_rcvbulk_callback() 257 skb->dev = dev->net; in ipheth_rcvbulk_callback() 258 skb->protocol = eth_type_trans(skb, dev->net); in ipheth_rcvbulk_callback() 260 dev->net->stats.rx_packets++; in ipheth_rcvbulk_callback() 261 dev->net->stats.rx_bytes += len; in ipheth_rcvbulk_callback() 284 netif_wake_queue(dev->net); in ipheth_sndbulk_callback() 307 netif_carrier_on(dev->net); in ipheth_carrier_set() 309 netif_carrier_off(dev->net); in ipheth_carrier_set() [all …]
|
D | lan78xx.c | 237 struct net_device *net; member 306 netdev_warn(dev->net, in lan78xx_read_reg() 332 netdev_warn(dev->net, in lan78xx_write_reg() 372 netdev_warn(dev->net, in lan78xx_read_stats() 433 netdev_warn(dev->net, "EEPROM read operation timeout"); in lan78xx_wait_eeprom() 457 netdev_warn(dev->net, "EEPROM is busy"); in lan78xx_eeprom_confirm_not_busy() 571 netdev_warn(dev->net, in lan78xx_read_raw_otp() 592 netdev_warn(dev->net, in lan78xx_read_raw_otp() 644 netdev_warn(dev->net, "lan78xx_dataport_wait_not_busy timed out"); in lan78xx_dataport_wait_not_busy() 722 netif_dbg(dev, drv, dev->net, "deferred multicast write 0x%08x\n", in lan78xx_deferred_multicast_write() [all …]
|
D | sierra_net.c | 168 static int sierra_net_change_mtu(struct net_device *net, int new_mtu); 210 netdev_err(dev->net, "Non linear buffer-dropping\n"); in check_ethip_packet() 318 netdev_err(dev->net, "Submit %s failed %d\n", cmd_name, status); in sierra_net_send_cmd() 355 netdev_err(dev->net, "%s: Data length %d, exp %Zu\n", in sierra_net_parse_lsi() 362 netdev_err(dev->net, "%s: LSI_UMTS_STATUS_LEN %d, exp %u\n", in sierra_net_parse_lsi() 370 netdev_err(dev->net, "Protocol unsupported, 0x%02x\n", in sierra_net_parse_lsi() 377 netdev_err(dev->net, "Link type unsupported: 0x%02x\n", in sierra_net_parse_lsi() 385 netdev_err(dev->net, "No coverage, 0x%02x\n", lsi->coverage); in sierra_net_parse_lsi() 391 netdev_err(dev->net, "Session idle, 0x%02x\n", in sierra_net_parse_lsi() 409 netdev_err(dev->net, "Invalid LSI\n"); in sierra_net_handle_lsi() [all …]
|
D | kaweth.c | 228 struct net_device *net; member 268 netdev_dbg(kaweth->net, "kaweth_control()\n"); in kaweth_control() 271 netdev_dbg(kaweth->net, "in_interrupt()\n"); in kaweth_control() 303 netdev_dbg(kaweth->net, "Reading kaweth configuration\n"); in kaweth_read_configuration() 325 netdev_dbg(kaweth->net, "Setting URB size to %d\n", (unsigned)urb_size); in kaweth_set_urb_size() 347 netdev_dbg(kaweth->net, "Set SOFS wait to %d\n", (unsigned)sofs_wait); in kaweth_set_sofs_wait() 370 netdev_dbg(kaweth->net, "Set receive filter to %d\n", in kaweth_set_receive_filter() 420 netdev_dbg(kaweth->net, "High: %i, Low:%i\n", kaweth->firmware_buf[3], in kaweth_download_firmware() 423 netdev_dbg(kaweth->net, in kaweth_download_firmware() 426 netdev_dbg(kaweth->net, "Firmware length: %d\n", data_len); in kaweth_download_firmware() [all …]
|
/linux-4.4.14/net/netfilter/ |
D | nf_conntrack_ecache.c | 120 struct net *net = nf_ct_net(ct); in nf_ct_deliver_cached_events() local 128 notify = rcu_dereference(net->ct.nf_conntrack_event_cb); in nf_ct_deliver_cached_events() 170 int nf_conntrack_register_notifier(struct net *net, in nf_conntrack_register_notifier() argument 177 notify = rcu_dereference_protected(net->ct.nf_conntrack_event_cb, in nf_conntrack_register_notifier() 183 rcu_assign_pointer(net->ct.nf_conntrack_event_cb, new); in nf_conntrack_register_notifier() 192 void nf_conntrack_unregister_notifier(struct net *net, in nf_conntrack_unregister_notifier() argument 198 notify = rcu_dereference_protected(net->ct.nf_conntrack_event_cb, in nf_conntrack_unregister_notifier() 201 RCU_INIT_POINTER(net->ct.nf_conntrack_event_cb, NULL); in nf_conntrack_unregister_notifier() 206 int nf_ct_expect_register_notifier(struct net *net, in nf_ct_expect_register_notifier() argument 213 notify = rcu_dereference_protected(net->ct.nf_expect_event_cb, in nf_ct_expect_register_notifier() [all …]
|
D | nf_conntrack_timestamp.c | 43 static int nf_conntrack_tstamp_init_sysctl(struct net *net) in nf_conntrack_tstamp_init_sysctl() argument 52 table[0].data = &net->ct.sysctl_tstamp; in nf_conntrack_tstamp_init_sysctl() 55 if (net->user_ns != &init_user_ns) in nf_conntrack_tstamp_init_sysctl() 58 net->ct.tstamp_sysctl_header = register_net_sysctl(net, "net/netfilter", in nf_conntrack_tstamp_init_sysctl() 60 if (!net->ct.tstamp_sysctl_header) { in nf_conntrack_tstamp_init_sysctl() 72 static void nf_conntrack_tstamp_fini_sysctl(struct net *net) in nf_conntrack_tstamp_fini_sysctl() argument 76 table = net->ct.tstamp_sysctl_header->ctl_table_arg; in nf_conntrack_tstamp_fini_sysctl() 77 unregister_net_sysctl_table(net->ct.tstamp_sysctl_header); in nf_conntrack_tstamp_fini_sysctl() 81 static int nf_conntrack_tstamp_init_sysctl(struct net *net) in nf_conntrack_tstamp_init_sysctl() argument 86 static void nf_conntrack_tstamp_fini_sysctl(struct net *net) in nf_conntrack_tstamp_fini_sysctl() argument [all …]
|
D | nf_conntrack_acct.c | 65 static int nf_conntrack_acct_init_sysctl(struct net *net) in nf_conntrack_acct_init_sysctl() argument 74 table[0].data = &net->ct.sysctl_acct; in nf_conntrack_acct_init_sysctl() 77 if (net->user_ns != &init_user_ns) in nf_conntrack_acct_init_sysctl() 80 net->ct.acct_sysctl_header = register_net_sysctl(net, "net/netfilter", in nf_conntrack_acct_init_sysctl() 82 if (!net->ct.acct_sysctl_header) { in nf_conntrack_acct_init_sysctl() 94 static void nf_conntrack_acct_fini_sysctl(struct net *net) in nf_conntrack_acct_fini_sysctl() argument 98 table = net->ct.acct_sysctl_header->ctl_table_arg; in nf_conntrack_acct_fini_sysctl() 99 unregister_net_sysctl_table(net->ct.acct_sysctl_header); in nf_conntrack_acct_fini_sysctl() 103 static int nf_conntrack_acct_init_sysctl(struct net *net) in nf_conntrack_acct_init_sysctl() argument 108 static void nf_conntrack_acct_fini_sysctl(struct net *net) in nf_conntrack_acct_fini_sysctl() argument [all …]
|
D | nf_conntrack_core.c | 79 static bool nf_conntrack_double_lock(struct net *net, unsigned int h1, in nf_conntrack_double_lock() argument 94 if (read_seqcount_retry(&net->ct.generation, sequence)) { in nf_conntrack_double_lock() 148 static u32 hash_bucket(u32 hash, const struct net *net) in hash_bucket() argument 150 return __hash_bucket(hash, net->ct.htable_size); in hash_bucket() 159 static inline u_int32_t hash_conntrack(const struct net *net, in hash_conntrack() argument 162 return __hash_conntrack(tuple, net->ct.htable_size); in hash_conntrack() 171 struct net *net, in nf_ct_get_tuple() argument 185 return l4proto->pkt_to_tuple(skb, dataoff, net, tuple); in nf_ct_get_tuple() 191 struct net *net, struct nf_conntrack_tuple *tuple) in nf_ct_get_tuplepr() argument 210 ret = nf_ct_get_tuple(skb, nhoff, protoff, l3num, protonum, net, tuple, in nf_ct_get_tuplepr() [all …]
|
D | core.c | 65 static struct list_head *nf_find_hook_list(struct net *net, in nf_find_hook_list() argument 71 hook_list = &net->nf.hooks[reg->pf][reg->hooknum]; in nf_find_hook_list() 74 if (reg->dev && dev_net(reg->dev) == net) in nf_find_hook_list() 86 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *reg) in nf_register_net_hook() argument 99 hook_list = nf_find_hook_list(net, reg); in nf_register_net_hook() 123 void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *reg) in nf_unregister_net_hook() argument 129 hook_list = nf_find_hook_list(net, reg); in nf_unregister_net_hook() 154 nf_queue_nf_hook_drop(net, &entry->ops); in nf_unregister_net_hook() 161 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg, in nf_register_net_hooks() argument 168 err = nf_register_net_hook(net, ®[i]); in nf_register_net_hooks() [all …]
|
D | nf_log.c | 42 void nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger) in nf_log_set() argument 50 log = nft_log_dereference(net->nf.nf_loggers[pf]); in nf_log_set() 52 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_set() 58 void nf_log_unset(struct net *net, const struct nf_logger *logger) in nf_log_unset() argument 65 log = nft_log_dereference(net->nf.nf_loggers[i]); in nf_log_unset() 67 RCU_INIT_POINTER(net->nf.nf_loggers[i], NULL); in nf_log_unset() 124 int nf_log_bind_pf(struct net *net, u_int8_t pf, in nf_log_bind_pf() argument 127 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_bind_pf() 134 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_bind_pf() 140 void nf_log_unbind_pf(struct net *net, u_int8_t pf) in nf_log_unbind_pf() argument [all …]
|
D | nf_conntrack_standalone.c | 57 struct net *net = seq_file_net(seq); in ct_get_first() local 62 st->bucket < net->ct.htable_size; in ct_get_first() 64 n = rcu_dereference(hlist_nulls_first_rcu(&net->ct.hash[st->bucket])); in ct_get_first() 74 struct net *net = seq_file_net(seq); in ct_get_next() local 80 if (++st->bucket >= net->ct.htable_size) in ct_get_next() 85 &net->ct.hash[st->bucket])); in ct_get_next() 301 struct net *net = seq_file_net(seq); in ct_cpu_seq_start() local 311 return per_cpu_ptr(net->ct.stat, cpu); in ct_cpu_seq_start() 319 struct net *net = seq_file_net(seq); in ct_cpu_seq_next() local 326 return per_cpu_ptr(net->ct.stat, cpu); in ct_cpu_seq_next() [all …]
|
D | nf_conntrack_proto.c | 39 nf_ct_register_sysctl(struct net *net, in nf_ct_register_sysctl() argument 45 *header = register_net_sysctl(net, path, table); in nf_ct_register_sysctl() 162 static struct nf_ip_net *nf_ct_l3proto_net(struct net *net, in nf_ct_l3proto_net() argument 166 return &net->ct.nf_ct_proto; in nf_ct_l3proto_net() 171 static int nf_ct_l3proto_register_sysctl(struct net *net, in nf_ct_l3proto_register_sysctl() argument 175 struct nf_ip_net *in = nf_ct_l3proto_net(net, l3proto); in nf_ct_l3proto_register_sysctl() 182 err = nf_ct_register_sysctl(net, in nf_ct_l3proto_register_sysctl() 195 static void nf_ct_l3proto_unregister_sysctl(struct net *net, in nf_ct_l3proto_unregister_sysctl() argument 198 struct nf_ip_net *in = nf_ct_l3proto_net(net, l3proto); in nf_ct_l3proto_unregister_sysctl() 241 int nf_ct_l3proto_pernet_register(struct net *net, in nf_ct_l3proto_pernet_register() argument [all …]
|
D | nf_conntrack_proto_udplite.c | 44 static inline struct udplite_net *udplite_pernet(struct net *net) in udplite_pernet() argument 46 return net_generic(net, udplite_net_id); in udplite_pernet() 51 struct net *net, in udplite_pkt_to_tuple() argument 83 static unsigned int *udplite_get_timeouts(struct net *net) in udplite_get_timeouts() argument 85 return udplite_pernet(net)->timeouts; in udplite_get_timeouts() 119 static int udplite_error(struct net *net, struct nf_conn *tmpl, in udplite_error() argument 134 if (LOG_INVALID(net, IPPROTO_UDPLITE)) in udplite_error() 135 nf_log_packet(net, pf, 0, skb, NULL, NULL, NULL, in udplite_error() 144 if (LOG_INVALID(net, IPPROTO_UDPLITE)) in udplite_error() 145 nf_log_packet(net, pf, 0, skb, NULL, NULL, NULL, in udplite_error() [all …]
|
D | xt_addrtype.c | 36 static u32 match_lookup_rt6(struct net *net, const struct net_device *dev, in match_lookup_rt6() argument 58 if (v6ops && v6ops->chk_addr(net, addr, dev, true)) in match_lookup_rt6() 61 route_err = afinfo->route(net, (struct dst_entry **)&rt, in match_lookup_rt6() 83 static bool match_type6(struct net *net, const struct net_device *dev, in match_type6() argument 98 return !!(mask & match_lookup_rt6(net, dev, addr, mask)); in match_type6() 103 addrtype_mt6(struct net *net, const struct net_device *dev, in addrtype_mt6() argument 110 ret &= match_type6(net, dev, &iph->saddr, info->source) ^ in addrtype_mt6() 113 ret &= match_type6(net, dev, &iph->daddr, info->dest) ^ in addrtype_mt6() 119 static inline bool match_type(struct net *net, const struct net_device *dev, in match_type() argument 122 return !!(mask & (1 << inet_dev_addr_type(net, dev, addr))); in match_type() [all …]
|
D | nf_conntrack_helper.c | 58 static int nf_conntrack_helper_init_sysctl(struct net *net) in nf_conntrack_helper_init_sysctl() argument 67 table[0].data = &net->ct.sysctl_auto_assign_helper; in nf_conntrack_helper_init_sysctl() 70 if (net->user_ns != &init_user_ns) in nf_conntrack_helper_init_sysctl() 73 net->ct.helper_sysctl_header = in nf_conntrack_helper_init_sysctl() 74 register_net_sysctl(net, "net/netfilter", table); in nf_conntrack_helper_init_sysctl() 76 if (!net->ct.helper_sysctl_header) { in nf_conntrack_helper_init_sysctl() 88 static void nf_conntrack_helper_fini_sysctl(struct net *net) in nf_conntrack_helper_fini_sysctl() argument 92 table = net->ct.helper_sysctl_header->ctl_table_arg; in nf_conntrack_helper_fini_sysctl() 93 unregister_net_sysctl_table(net->ct.helper_sysctl_header); in nf_conntrack_helper_fini_sysctl() 97 static int nf_conntrack_helper_init_sysctl(struct net *net) in nf_conntrack_helper_init_sysctl() argument [all …]
|
D | nf_conntrack_proto_gre.c | 64 static inline struct netns_proto_gre *gre_pernet(struct net *net) in gre_pernet() argument 66 return net_generic(net, proto_gre_net_id); in gre_pernet() 69 static void nf_ct_gre_keymap_flush(struct net *net) in nf_ct_gre_keymap_flush() argument 71 struct netns_proto_gre *net_gre = gre_pernet(net); in nf_ct_gre_keymap_flush() 93 static __be16 gre_keymap_lookup(struct net *net, struct nf_conntrack_tuple *t) in gre_keymap_lookup() argument 95 struct netns_proto_gre *net_gre = gre_pernet(net); in gre_keymap_lookup() 118 struct net *net = nf_ct_net(ct); in nf_ct_gre_keymap_add() local 119 struct netns_proto_gre *net_gre = gre_pernet(net); in nf_ct_gre_keymap_add() 159 struct net *net = nf_ct_net(ct); in nf_ct_gre_keymap_destroy() local 160 struct netns_proto_gre *net_gre = gre_pernet(net); in nf_ct_gre_keymap_destroy() [all …]
|
D | nf_conntrack_expect.c | 47 struct net *net = nf_ct_exp_net(exp); in nf_ct_unlink_expect_report() local 53 net->ct.expect_count--; in nf_ct_unlink_expect_report() 61 NF_CT_STAT_INC(net, expect_delete); in nf_ct_unlink_expect_report() 91 __nf_ct_expect_find(struct net *net, in __nf_ct_expect_find() argument 98 if (!net->ct.expect_count) in __nf_ct_expect_find() 102 hlist_for_each_entry_rcu(i, &net->ct.expect_hash[h], hnode) { in __nf_ct_expect_find() 113 nf_ct_expect_find_get(struct net *net, in nf_ct_expect_find_get() argument 120 i = __nf_ct_expect_find(net, zone, tuple); in nf_ct_expect_find_get() 132 nf_ct_find_expectation(struct net *net, in nf_ct_find_expectation() argument 139 if (!net->ct.expect_count) in nf_ct_find_expectation() [all …]
|
D | nf_conntrack_proto_generic.c | 41 static inline struct nf_generic_net *generic_pernet(struct net *net) in generic_pernet() argument 43 return &net->ct.nf_ct_proto.generic; in generic_pernet() 48 struct net *net, struct nf_conntrack_tuple *tuple) in generic_pkt_to_tuple() argument 71 static unsigned int *generic_get_timeouts(struct net *net) in generic_get_timeouts() argument 73 return &(generic_pernet(net)->timeout); in generic_get_timeouts() 108 struct net *net, void *data) in generic_timeout_nlattr_to_obj() argument 111 struct nf_generic_net *gn = generic_pernet(net); in generic_timeout_nlattr_to_obj() 199 static int generic_init_net(struct net *net, u_int16_t proto) in generic_init_net() argument 202 struct nf_generic_net *gn = generic_pernet(net); in generic_init_net() 218 static struct nf_proto_net *generic_get_net_proto(struct net *net) in generic_get_net_proto() argument [all …]
|
D | nf_tables_inet.c | 41 static int __net_init nf_tables_inet_init_net(struct net *net) in nf_tables_inet_init_net() argument 43 net->nft.inet = kmalloc(sizeof(struct nft_af_info), GFP_KERNEL); in nf_tables_inet_init_net() 44 if (net->nft.inet == NULL) in nf_tables_inet_init_net() 46 memcpy(net->nft.inet, &nft_af_inet, sizeof(nft_af_inet)); in nf_tables_inet_init_net() 48 if (nft_register_afinfo(net, net->nft.inet) < 0) in nf_tables_inet_init_net() 54 kfree(net->nft.inet); in nf_tables_inet_init_net() 58 static void __net_exit nf_tables_inet_exit_net(struct net *net) in nf_tables_inet_exit_net() argument 60 nft_unregister_afinfo(net->nft.inet); in nf_tables_inet_exit_net() 61 kfree(net->nft.inet); in nf_tables_inet_exit_net()
|
D | nf_conntrack_proto_udp.c | 34 static inline struct nf_udp_net *udp_pernet(struct net *net) in udp_pernet() argument 36 return &net->ct.nf_ct_proto.udp; in udp_pernet() 41 struct net *net, in udp_pkt_to_tuple() argument 75 static unsigned int *udp_get_timeouts(struct net *net) in udp_get_timeouts() argument 77 return udp_pernet(net)->timeouts; in udp_get_timeouts() 111 static int udp_error(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, in udp_error() argument 123 if (LOG_INVALID(net, IPPROTO_UDP)) in udp_error() 124 nf_log_packet(net, pf, 0, skb, NULL, NULL, NULL, in udp_error() 131 if (LOG_INVALID(net, IPPROTO_UDP)) in udp_error() 132 nf_log_packet(net, pf, 0, skb, NULL, NULL, NULL, in udp_error() [all …]
|
D | nfnetlink.c | 119 int nfnetlink_has_listeners(struct net *net, unsigned int group) in nfnetlink_has_listeners() argument 121 return netlink_has_listeners(net->nfnl, group); in nfnetlink_has_listeners() 125 struct sk_buff *nfnetlink_alloc_skb(struct net *net, unsigned int size, in nfnetlink_alloc_skb() argument 128 return netlink_alloc_skb(net->nfnl, size, dst_portid, gfp_mask); in nfnetlink_alloc_skb() 132 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid, in nfnetlink_send() argument 135 return nlmsg_notify(net->nfnl, skb, portid, group, echo, flags); in nfnetlink_send() 139 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error) in nfnetlink_set_err() argument 141 return netlink_set_err(net->nfnl, portid, group, error); in nfnetlink_set_err() 145 int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid, in nfnetlink_unicast() argument 148 return netlink_unicast(net->nfnl, skb, portid, flags); in nfnetlink_unicast() [all …]
|
D | nf_conntrack_proto_dccp.c | 395 static inline struct dccp_net *dccp_pernet(struct net *net) in dccp_pernet() argument 397 return net_generic(net, dccp_net_id); in dccp_pernet() 401 struct net *net, struct nf_conntrack_tuple *tuple) in dccp_pkt_to_tuple() argument 425 struct net *net = nf_ct_net(ct); in dccp_new() local 437 dn = dccp_pernet(net); in dccp_new() 458 if (LOG_INVALID(net, IPPROTO_DCCP)) in dccp_new() 459 nf_log_packet(net, nf_ct_l3num(ct), 0, skb, NULL, NULL, in dccp_new() 473 static unsigned int *dccp_get_timeouts(struct net *net) in dccp_get_timeouts() argument 475 return dccp_pernet(net)->dccp_timeout; in dccp_get_timeouts() 483 struct net *net = nf_ct_net(ct); in dccp_packet() local [all …]
|
D | nf_synproxy_core.c | 327 static int __net_init synproxy_proc_init(struct net *net) in synproxy_proc_init() argument 329 if (!proc_create("synproxy", S_IRUGO, net->proc_net_stat, in synproxy_proc_init() 335 static void __net_exit synproxy_proc_exit(struct net *net) in synproxy_proc_exit() argument 337 remove_proc_entry("synproxy", net->proc_net_stat); in synproxy_proc_exit() 340 static int __net_init synproxy_proc_init(struct net *net) in synproxy_proc_init() argument 345 static void __net_exit synproxy_proc_exit(struct net *net) in synproxy_proc_exit() argument 351 static int __net_init synproxy_net_init(struct net *net) in synproxy_net_init() argument 353 struct synproxy_net *snet = synproxy_pernet(net); in synproxy_net_init() 357 ct = nf_ct_tmpl_alloc(net, &nf_ct_zone_dflt, GFP_KERNEL); in synproxy_net_init() 374 err = synproxy_proc_init(net); in synproxy_net_init() [all …]
|
/linux-4.4.14/include/linux/sunrpc/ |
D | stats.h | 41 struct net; 43 int rpc_proc_init(struct net *); 44 void rpc_proc_exit(struct net *); 46 static inline int rpc_proc_init(struct net *net) in rpc_proc_init() argument 51 static inline void rpc_proc_exit(struct net *net) in rpc_proc_exit() argument 61 struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *); 62 void rpc_proc_unregister(struct net *,const char *); 64 struct proc_dir_entry * svc_proc_register(struct net *, struct svc_stat *, 66 void svc_proc_unregister(struct net *, const char *); 72 static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { retur… in rpc_proc_register() argument [all …]
|
D | rpc_pipe_fs.h | 87 extern int rpc_pipefs_init_net(struct net *net); 88 extern void rpc_pipefs_exit_net(struct net *net); 89 extern struct super_block *rpc_get_sb_net(const struct net *net); 90 extern void rpc_put_sb_net(const struct net *net); 104 extern int rpc_add_pipe_dir_object(struct net *net, 107 extern void rpc_remove_pipe_dir_object(struct net *net, 111 struct net *net, 134 extern bool gssd_running(struct net *net);
|
/linux-4.4.14/net/sctp/ |
D | sm_statefuns.c | 62 static struct sctp_packet *sctp_abort_pkt_new(struct net *net, 71 static struct sctp_packet *sctp_ootb_pkt_new(struct net *net, 74 static void sctp_send_stale_cookie_err(struct net *net, 80 static sctp_disposition_t sctp_sf_do_5_2_6_stale(struct net *net, 86 static sctp_disposition_t sctp_sf_shut_8_4_5(struct net *net, 92 static sctp_disposition_t sctp_sf_tabort_8_4_8(struct net *net, 100 static sctp_disposition_t sctp_stop_t1_and_abort(struct net *net, 107 struct net *net, 116 struct net *net, 124 struct net *net, [all …]
|
D | protocol.c | 84 static int __net_init sctp_proc_init(struct net *net) in sctp_proc_init() argument 87 net->sctp.proc_net_sctp = proc_net_mkdir(net, "sctp", net->proc_net); in sctp_proc_init() 88 if (!net->sctp.proc_net_sctp) in sctp_proc_init() 90 if (sctp_snmp_proc_init(net)) in sctp_proc_init() 92 if (sctp_eps_proc_init(net)) in sctp_proc_init() 94 if (sctp_assocs_proc_init(net)) in sctp_proc_init() 96 if (sctp_remaddr_proc_init(net)) in sctp_proc_init() 102 sctp_assocs_proc_exit(net); in sctp_proc_init() 104 sctp_eps_proc_exit(net); in sctp_proc_init() 106 sctp_snmp_proc_exit(net); in sctp_proc_init() [all …]
|
D | input.c | 62 static struct sctp_association *__sctp_rcv_lookup(struct net *net, 67 static struct sctp_endpoint *__sctp_rcv_lookup_endpoint(struct net *net, 70 struct net *net, 79 static inline int sctp_rcv_checksum(struct net *net, struct sk_buff *skb) in sctp_rcv_checksum() argument 87 SCTP_INC_STATS_BH(net, SCTP_MIB_CHECKSUMERRORS); in sctp_rcv_checksum() 120 struct net *net = dev_net(skb->dev); in sctp_rcv() local 125 SCTP_INC_STATS_BH(net, SCTP_MIB_INSCTPPACKS); in sctp_rcv() 140 else if (!sctp_checksum_disable && sctp_rcv_checksum(net, skb) < 0) in sctp_rcv() 174 asoc = __sctp_rcv_lookup(net, skb, &src, &dest, &transport); in sctp_rcv() 177 ep = __sctp_rcv_lookup_endpoint(net, &dest); in sctp_rcv() [all …]
|
D | sysctl.c | 319 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_hmac_alg() local 332 tbl.data = net->sctp.sctp_hmac_alg ? : none; in proc_sctp_do_hmac_alg() 340 net->sctp.sctp_hmac_alg = "md5"; in proc_sctp_do_hmac_alg() 346 net->sctp.sctp_hmac_alg = "sha1"; in proc_sctp_do_hmac_alg() 351 net->sctp.sctp_hmac_alg = NULL; in proc_sctp_do_hmac_alg() 365 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_min() local 377 tbl.data = &net->sctp.rto_min; in proc_sctp_do_rto_min() 384 net->sctp.rto_min = new_value; in proc_sctp_do_rto_min() 394 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_max() local 406 tbl.data = &net->sctp.rto_max; in proc_sctp_do_rto_max() [all …]
|
D | proc.c | 76 struct net *net = seq->private; in sctp_snmp_seq_show() local 81 snmp_fold_field(net->sctp.sctp_statistics, in sctp_snmp_seq_show() 102 int __net_init sctp_snmp_proc_init(struct net *net) in sctp_snmp_proc_init() argument 106 p = proc_create("snmp", S_IRUGO, net->sctp.proc_net_sctp, in sctp_snmp_proc_init() 115 void sctp_snmp_proc_exit(struct net *net) in sctp_snmp_proc_exit() argument 117 remove_proc_entry("snmp", net->sctp.proc_net_sctp); in sctp_snmp_proc_exit() 266 int __net_init sctp_eps_proc_init(struct net *net) in sctp_eps_proc_init() argument 270 p = proc_create("eps", S_IRUGO, net->sctp.proc_net_sctp, in sctp_eps_proc_init() 279 void sctp_eps_proc_exit(struct net *net) in sctp_eps_proc_exit() argument 281 remove_proc_entry("eps", net->sctp.proc_net_sctp); in sctp_eps_proc_exit() [all …]
|
/linux-4.4.14/net/ipv4/ |
D | fib_frontend.c | 53 static int __net_init fib4_rules_init(struct net *net) in fib4_rules_init() argument 66 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]); in fib4_rules_init() 68 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]); in fib4_rules_init() 77 struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table() argument 84 tb = fib_get_table(net, id); in fib_new_table() 89 alias = fib_new_table(net, RT_TABLE_MAIN); in fib_new_table() 97 rcu_assign_pointer(net->ipv4.fib_local, tb); in fib_new_table() 100 rcu_assign_pointer(net->ipv4.fib_main, tb); in fib_new_table() 103 rcu_assign_pointer(net->ipv4.fib_default, tb); in fib_new_table() 110 hlist_add_head_rcu(&tb->tb_hlist, &net->ipv4.fib_table_hash[h]); in fib_new_table() [all …]
|
D | xfrm4_policy.c | 22 static struct dst_entry *__xfrm4_dst_lookup(struct net *net, struct flowi4 *fl4, in __xfrm4_dst_lookup() argument 38 rt = __ip_route_output_key(net, fl4); in __xfrm4_dst_lookup() 45 static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos, int oif, in xfrm4_dst_lookup() argument 51 return __xfrm4_dst_lookup(net, &fl4, tos, oif, saddr, daddr); in xfrm4_dst_lookup() 54 static int xfrm4_get_saddr(struct net *net, int oif, in xfrm4_get_saddr() argument 60 dst = __xfrm4_dst_lookup(net, &fl4, 0, oif, NULL, daddr); in xfrm4_get_saddr() 220 struct net *net = container_of(ops, struct net, xfrm.xfrm4_dst_ops); in xfrm4_garbage_collect() local 222 xfrm4_policy_afinfo.garbage_collect(net); in xfrm4_garbage_collect() 298 static int __net_init xfrm4_net_sysctl_init(struct net *net) in xfrm4_net_sysctl_init() argument 304 if (!net_eq(net, &init_net)) { in xfrm4_net_sysctl_init() [all …]
|
D | icmp.c | 207 static struct sock *icmp_sk(struct net *net) in icmp_sk() argument 209 return *this_cpu_ptr(net->ipv4.icmp_sk); in icmp_sk() 212 static inline struct sock *icmp_xmit_lock(struct net *net) in icmp_xmit_lock() argument 218 sk = icmp_sk(net); in icmp_xmit_lock() 289 static bool icmpv4_xrlim_allow(struct net *net, struct rtable *rt, in icmpv4_xrlim_allow() argument 307 if (!((1 << type) & net->ipv4.sysctl_icmp_ratemask)) in icmpv4_xrlim_allow() 315 peer = inet_getpeer_v4(net->ipv4.peers, fl4->daddr, vif, 1); in icmpv4_xrlim_allow() 317 net->ipv4.sysctl_icmp_ratelimit); in icmpv4_xrlim_allow() 328 void icmp_out_count(struct net *net, unsigned char type) in icmp_out_count() argument 330 ICMPMSGOUT_INC_STATS(net, type); in icmp_out_count() [all …]
|
D | ip_fragment.c | 93 int ip_frag_mem(struct net *net) in ip_frag_mem() argument 95 return sum_frag_mem_limit(&net->ipv4.frags); in ip_frag_mem() 140 struct netns_ipv4 *ipv4 = container_of(q->net, struct netns_ipv4, in ip4_frag_init() 142 struct net *net = container_of(ipv4, struct net, ipv4); in ip4_frag_init() local 154 inet_getpeer_v4(net->ipv4.peers, arg->iph->saddr, arg->vif, 1) : in ip4_frag_init() 198 struct net *net; in ip_expire() local 201 net = container_of(qp->q.net, struct net, ipv4.frags); in ip_expire() 209 IP_INC_STATS_BH(net, IPSTATS_MIB_REASMFAILS); in ip_expire() 216 IP_INC_STATS_BH(net, IPSTATS_MIB_REASMTIMEOUT); in ip_expire() 222 head->dev = dev_get_by_index_rcu(net, qp->iif); in ip_expire() [all …]
|
D | ip_input.c | 160 struct net *net = dev_net(dev); in ip_call_ra_chain() local 171 net_eq(sock_net(sk), net)) { in ip_call_ra_chain() 173 if (ip_defrag(net, skb, IP_DEFRAG_CALL_RA_CHAIN)) in ip_call_ra_chain() 192 static int ip_local_deliver_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_local_deliver_finish() argument 221 IP_INC_STATS_BH(net, IPSTATS_MIB_INDELIVERS); in ip_local_deliver_finish() 225 IP_INC_STATS_BH(net, IPSTATS_MIB_INUNKNOWNPROTOS); in ip_local_deliver_finish() 231 IP_INC_STATS_BH(net, IPSTATS_MIB_INDELIVERS); in ip_local_deliver_finish() 250 struct net *net = dev_net(skb->dev); in ip_local_deliver() local 253 if (ip_defrag(net, skb, IP_DEFRAG_LOCAL_DELIVER)) in ip_local_deliver() 258 net, NULL, skb, skb->dev, NULL, in ip_local_deliver() [all …]
|
D | proc.c | 54 struct net *net = seq->private; in sockstat_seq_show() local 65 sock_prot_inuse_get(net, &tcp_prot), orphans, in sockstat_seq_show() 69 sock_prot_inuse_get(net, &udp_prot), in sockstat_seq_show() 72 sock_prot_inuse_get(net, &udplite_prot)); in sockstat_seq_show() 74 sock_prot_inuse_get(net, &raw_prot)); in sockstat_seq_show() 75 frag_mem = ip_frag_mem(net); in sockstat_seq_show() 332 struct net *net = seq->private; in icmpmsg_put() local 336 val = atomic_long_read(&net->mib.icmpmsg_statistics->mibs[i]); in icmpmsg_put() 354 struct net *net = seq->private; in icmp_put() local 355 atomic_long_t *ptr = net->mib.icmpmsg_statistics->mibs; in icmp_put() [all …]
|
D | ipmr.c | 76 possible_net_t net; member 125 static struct mr_table *ipmr_new_table(struct net *net, u32 id); 128 static void ip_mr_forward(struct net *net, struct mr_table *mrt, 141 #define ipmr_for_each_table(mrt, net) \ argument 142 list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list) 144 static struct mr_table *ipmr_get_table(struct net *net, u32 id) in ipmr_get_table() argument 148 ipmr_for_each_table(mrt, net) { in ipmr_get_table() 155 static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4, in ipmr_fib_lookup() argument 165 err = fib_rules_lookup(net->ipv4.mr_rules_ops, in ipmr_fib_lookup() 242 static int __net_init ipmr_rules_init(struct net *net) in ipmr_rules_init() argument [all …]
|
D | fib_rules.c | 50 int __fib_lookup(struct net *net, struct flowi4 *flp, in __fib_lookup() argument 59 err = fib_rules_lookup(net->ipv4.rules_ops, flowi4_to_flowi(flp), 0, &arg); in __fib_lookup() 152 static struct fib_table *fib_empty_table(struct net *net) in fib_empty_table() argument 157 if (!fib_get_table(net, id)) in fib_empty_table() 158 return fib_new_table(net, id); in fib_empty_table() 171 struct net *net = sock_net(skb->sk); in fib4_rule_configure() local 179 err = fib_unmerge(net); in fib4_rule_configure() 187 table = fib_empty_table(net); in fib4_rule_configure() 207 net->ipv4.fib_num_tclassid_users++; in fib4_rule_configure() 217 net->ipv4.fib_has_custom_rules = true; in fib4_rule_configure() [all …]
|
D | devinet.c | 93 #define IPV4_DEVCONF_DFLT(net, attr) \ argument 94 IPV4_DEVCONF((*net->ipv4.devconf_dflt), attr) 110 static u32 inet_addr_hash(const struct net *net, __be32 addr) in inet_addr_hash() argument 112 u32 val = (__force u32) addr ^ net_hash_mix(net); in inet_addr_hash() 117 static void inet_hash_insert(struct net *net, struct in_ifaddr *ifa) in inet_hash_insert() argument 119 u32 hash = inet_addr_hash(net, ifa->ifa_local); in inet_hash_insert() 139 struct net_device *__ip_dev_find(struct net *net, __be32 addr, bool devref) in __ip_dev_find() argument 141 u32 hash = inet_addr_hash(net, addr); in __ip_dev_find() 150 if (!net_eq(dev_net(dev), net)) in __ip_dev_find() 164 local = fib_get_table(net, RT_TABLE_LOCAL); in __ip_dev_find() [all …]
|
D | ip_forward.c | 64 static int ip_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_forward_finish() argument 68 IP_INC_STATS_BH(net, IPSTATS_MIB_OUTFORWDATAGRAMS); in ip_forward_finish() 69 IP_ADD_STATS_BH(net, IPSTATS_MIB_OUTOCTETS, skb->len); in ip_forward_finish() 75 return dst_output(net, sk, skb); in ip_forward_finish() 84 struct net *net; in ip_forward() local 103 net = dev_net(skb->dev); in ip_forward() 124 IP_INC_STATS(net, IPSTATS_MIB_FRAGFAILS); in ip_forward() 149 net, NULL, skb, skb->dev, rt->dst.dev, in ip_forward() 161 IP_INC_STATS_BH(net, IPSTATS_MIB_INHDRERRORS); in ip_forward()
|
D | ip_output.c | 87 ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, 89 int (*output)(struct net *, struct sock *, struct sk_buff *)); 99 int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) in __ip_local_out() argument 106 net, sk, skb, NULL, skb_dst(skb)->dev, in __ip_local_out() 110 int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_local_out() argument 114 err = __ip_local_out(net, sk, skb); in ip_local_out() 116 err = dst_output(net, sk, skb); in ip_local_out() 140 struct net *net = sock_net(sk); in ip_build_and_send_pkt() local 159 __ip_select_ident(net, iph, 1); in ip_build_and_send_pkt() 171 return ip_local_out(net, skb->sk, skb); in ip_build_and_send_pkt() [all …]
|
D | inet_hashtables.c | 28 static u32 inet_ehashfn(const struct net *net, const __be32 laddr, in inet_ehashfn() argument 37 inet_ehash_secret + net_hash_mix(net)); in inet_ehashfn() 62 struct net *net, in inet_bind_bucket_create() argument 69 write_pnet(&tb->ib_net, net); in inet_bind_bucket_create() 171 static inline int compute_score(struct sock *sk, struct net *net, in compute_score() argument 178 if (net_eq(sock_net(sk), net) && inet->inet_num == hnum && in compute_score() 206 struct sock *__inet_lookup_listener(struct net *net, in __inet_lookup_listener() argument 214 unsigned int hash = inet_lhashfn(net, hnum); in __inet_lookup_listener() 224 score = compute_score(sk, net, hnum, daddr, dif); in __inet_lookup_listener() 230 phash = inet_ehashfn(net, daddr, hnum, in __inet_lookup_listener() [all …]
|
D | sysctl_net_ipv4.c | 47 static void set_local_port_range(struct net *net, int range[2]) in set_local_port_range() argument 51 write_seqlock_bh(&net->ipv4.ip_local_ports.lock); in set_local_port_range() 52 if (same_parity && !net->ipv4.ip_local_ports.warned) { in set_local_port_range() 53 net->ipv4.ip_local_ports.warned = true; in set_local_port_range() 56 net->ipv4.ip_local_ports.range[0] = range[0]; in set_local_port_range() 57 net->ipv4.ip_local_ports.range[1] = range[1]; in set_local_port_range() 58 write_sequnlock_bh(&net->ipv4.ip_local_ports.lock); in set_local_port_range() 66 struct net *net = in ipv4_local_port_range() local 67 container_of(table->data, struct net, ipv4.ip_local_ports.range); in ipv4_local_port_range() 78 inet_get_local_port_range(net, &range[0], &range[1]); in ipv4_local_port_range() [all …]
|
/linux-4.4.14/net/ipv6/ |
D | sysctl_net_ipv6.c | 112 static int __net_init ipv6_sysctl_net_init(struct net *net) in ipv6_sysctl_net_init() argument 124 ipv6_table[0].data = &net->ipv6.sysctl.bindv6only; in ipv6_sysctl_net_init() 125 ipv6_table[1].data = &net->ipv6.sysctl.anycast_src_echo_reply; in ipv6_sysctl_net_init() 126 ipv6_table[2].data = &net->ipv6.sysctl.flowlabel_consistency; in ipv6_sysctl_net_init() 127 ipv6_table[3].data = &net->ipv6.sysctl.auto_flowlabels; in ipv6_sysctl_net_init() 128 ipv6_table[4].data = &net->ipv6.sysctl.fwmark_reflect; in ipv6_sysctl_net_init() 129 ipv6_table[5].data = &net->ipv6.sysctl.idgen_retries; in ipv6_sysctl_net_init() 130 ipv6_table[6].data = &net->ipv6.sysctl.idgen_delay; in ipv6_sysctl_net_init() 131 ipv6_table[7].data = &net->ipv6.sysctl.flowlabel_state_ranges; in ipv6_sysctl_net_init() 132 ipv6_table[8].data = &net->ipv6.sysctl.ip_nonlocal_bind; in ipv6_sysctl_net_init() [all …]
|
D | proc.c | 35 struct net *net = seq->private; in sockstat6_seq_show() local 36 unsigned int frag_mem = ip6_frag_mem(net); in sockstat6_seq_show() 39 sock_prot_inuse_get(net, &tcpv6_prot)); in sockstat6_seq_show() 41 sock_prot_inuse_get(net, &udpv6_prot)); in sockstat6_seq_show() 43 sock_prot_inuse_get(net, &udplitev6_prot)); in sockstat6_seq_show() 45 sock_prot_inuse_get(net, &rawv6_prot)); in sockstat6_seq_show() 217 struct net *net = (struct net *)seq->private; in snmp6_seq_show() local 219 snmp6_seq_show_item64(seq, net->mib.ipv6_statistics, in snmp6_seq_show() 221 snmp6_seq_show_item(seq, net->mib.icmpv6_statistics, in snmp6_seq_show() 223 snmp6_seq_show_icmpv6msg(seq, net->mib.icmpv6msg_statistics->mibs); in snmp6_seq_show() [all …]
|
D | ip6_fib.c | 52 struct net *net; member 66 static void fib6_prune_clones(struct net *net, struct fib6_node *fn); 67 static struct rt6_info *fib6_find_prefix(struct net *net, struct fib6_node *fn); 68 static struct fib6_node *fib6_repair_tree(struct net *net, struct fib6_node *fn); 98 static int fib6_new_sernum(struct net *net) in fib6_new_sernum() argument 103 old = atomic_read(&net->ipv6.fib6_sernum); in fib6_new_sernum() 105 } while (atomic_cmpxchg(&net->ipv6.fib6_sernum, in fib6_new_sernum() 193 static void fib6_link_table(struct net *net, struct fib6_table *tb) in fib6_link_table() argument 209 hlist_add_head_rcu(&tb->tb6_hlist, &net->ipv6.fib_table_hash[h]); in fib6_link_table() 214 static struct fib6_table *fib6_alloc_table(struct net *net, u32 id) in fib6_alloc_table() argument [all …]
|
D | xfrm6_tunnel.c | 48 static inline struct xfrm6_tunnel_net *xfrm6_tunnel_pernet(struct net *net) in xfrm6_tunnel_pernet() argument 50 return net_generic(net, xfrm6_tunnel_net_id); in xfrm6_tunnel_pernet() 87 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *sa… in __xfrm6_tunnel_spi_lookup() argument 89 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); in __xfrm6_tunnel_spi_lookup() 102 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in xfrm6_tunnel_spi_lookup() argument 108 x6spi = __xfrm6_tunnel_spi_lookup(net, saddr); in xfrm6_tunnel_spi_lookup() 115 static int __xfrm6_tunnel_spi_check(struct net *net, u32 spi) in __xfrm6_tunnel_spi_check() argument 117 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); in __xfrm6_tunnel_spi_check() 130 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in __xfrm6_tunnel_alloc_spi() argument 132 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); in __xfrm6_tunnel_alloc_spi() [all …]
|
D | reassembly.c | 131 void ip6_expire_frag_queue(struct net *net, struct frag_queue *fq, in ip6_expire_frag_queue() argument 144 dev = dev_get_by_index_rcu(net, fq->iif); in ip6_expire_frag_queue() 148 IP6_INC_STATS_BH(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS); in ip6_expire_frag_queue() 153 IP6_INC_STATS_BH(net, __in6_dev_get(dev), IPSTATS_MIB_REASMTIMEOUT); in ip6_expire_frag_queue() 176 struct net *net; in ip6_frag_expire() local 179 net = container_of(fq->q.net, struct net, ipv6.frags); in ip6_frag_expire() 181 ip6_expire_frag_queue(net, fq, &ip6_frags); in ip6_frag_expire() 185 fq_find(struct net *net, __be32 id, const struct in6_addr *src, in fq_find() argument 201 q = inet_frag_find(&net->ipv6.frags, &ip6_frags, &arg, hash); in fq_find() 215 struct net *net = dev_net(skb_dst(skb)->dev); in ip6_frag_queue() local [all …]
|
D | route.c | 90 static int ip6_pkt_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb); 92 static int ip6_pkt_prohibit_out(struct net *net, struct sock *sk, struct sk_buff *skb); 102 static struct rt6_info *rt6_add_route_info(struct net *net, 106 static struct rt6_info *rt6_get_route_info(struct net *net, 141 static void rt6_uncached_list_flush_dev(struct net *net, struct net_device *dev) in rt6_uncached_list_flush_dev() argument 143 struct net_device *loopback_dev = net->loopback_dev; in rt6_uncached_list_flush_dev() 327 static struct rt6_info *__ip6_dst_alloc(struct net *net, in __ip6_dst_alloc() argument 331 struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev, in __ip6_dst_alloc() 340 static struct rt6_info *ip6_dst_alloc(struct net *net, in ip6_dst_alloc() argument 344 struct rt6_info *rt = __ip6_dst_alloc(net, dev, flags); in ip6_dst_alloc() [all …]
|
D | af_inet6.c | 100 static int inet6_create(struct net *net, struct socket *sock, int protocol, in inet6_create() argument 162 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create() 173 sk = sk_alloc(net, PF_INET6, GFP_KERNEL, answer_prot, kern); in inet6_create() 204 sk->sk_ipv6only = net->ipv6.sysctl.bindv6only; in inet6_create() 217 if (net->ipv4.sysctl_ip_no_pmtu_disc) in inet6_create() 262 struct net *net = sock_net(sk); in inet6_bind() local 283 if (snum && snum < PROT_SOCK && !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE)) in inet6_bind() 308 chk_addr_ret = inet_addr_type(net, v4addr); in inet6_bind() 309 if (!net->ipv4.sysctl_ip_nonlocal_bind && in inet6_bind() 337 dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if); in inet6_bind() [all …]
|
D | xfrm6_policy.c | 30 static struct dst_entry *xfrm6_dst_lookup(struct net *net, int tos, int oif, in xfrm6_dst_lookup() argument 45 dst = ip6_route_output(net, NULL, &fl6); in xfrm6_dst_lookup() 56 static int xfrm6_get_saddr(struct net *net, int oif, in xfrm6_get_saddr() argument 62 dst = xfrm6_dst_lookup(net, 0, oif, NULL, daddr); in xfrm6_get_saddr() 221 struct net *net = container_of(ops, struct net, xfrm.xfrm6_dst_ops); in xfrm6_garbage_collect() local 223 xfrm6_policy_afinfo.garbage_collect(net); in xfrm6_garbage_collect() 328 static int __net_init xfrm6_net_sysctl_init(struct net *net) in xfrm6_net_sysctl_init() argument 334 if (!net_eq(net, &init_net)) { in xfrm6_net_sysctl_init() 339 table[0].data = &net->xfrm.xfrm6_dst_ops.gc_thresh; in xfrm6_net_sysctl_init() 342 hdr = register_net_sysctl(net, "net/ipv6", table); in xfrm6_net_sysctl_init() [all …]
|
D | inet6_hashtables.c | 26 u32 inet6_ehashfn(const struct net *net, in inet6_ehashfn() argument 42 inet6_ehash_secret + net_hash_mix(net)); in inet6_ehashfn() 51 struct sock *__inet6_lookup_established(struct net *net, in __inet6_lookup_established() argument 65 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); in __inet6_lookup_established() 75 if (!INET6_MATCH(sk, net, saddr, daddr, ports, dif)) in __inet6_lookup_established() 80 if (unlikely(!INET6_MATCH(sk, net, saddr, daddr, ports, dif))) { in __inet6_lookup_established() 96 static inline int compute_score(struct sock *sk, struct net *net, in compute_score() argument 103 if (net_eq(sock_net(sk), net) && inet_sk(sk)->inet_num == hnum && in compute_score() 123 struct sock *inet6_lookup_listener(struct net *net, in inet6_lookup_listener() argument 133 unsigned int hash = inet_lhashfn(net, hnum); in inet6_lookup_listener() [all …]
|
D | ip6mr.c | 59 possible_net_t net; member 108 static struct mr6_table *ip6mr_new_table(struct net *net, u32 id); 111 static void ip6_mr_forward(struct net *net, struct mr6_table *mrt, 125 #define ip6mr_for_each_table(mrt, net) \ argument 126 list_for_each_entry_rcu(mrt, &net->ipv6.mr6_tables, list) 128 static struct mr6_table *ip6mr_get_table(struct net *net, u32 id) in ip6mr_get_table() argument 132 ip6mr_for_each_table(mrt, net) { in ip6mr_get_table() 139 static int ip6mr_fib_lookup(struct net *net, struct flowi6 *flp6, in ip6mr_fib_lookup() argument 149 err = fib_rules_lookup(net->ipv6.mr6_rules_ops, in ip6mr_fib_lookup() 226 static int __net_init ip6mr_rules_init(struct net *net) in ip6mr_rules_init() argument [all …]
|
D | addrlabel.c | 51 struct net *ip6addrlbl_net(const struct ip6addrlbl_entry *lbl) in ip6addrlbl_net() 150 static bool __ip6addrlbl_match(struct net *net, in __ip6addrlbl_match() argument 155 if (!net_eq(ip6addrlbl_net(p), net)) in __ip6addrlbl_match() 166 static struct ip6addrlbl_entry *__ipv6_addr_label(struct net *net, in __ipv6_addr_label() argument 172 if (__ip6addrlbl_match(net, p, addr, type, ifindex)) in __ipv6_addr_label() 178 u32 ipv6_addr_label(struct net *net, in ipv6_addr_label() argument 187 p = __ipv6_addr_label(net, addr, type, ifindex); in ipv6_addr_label() 198 static struct ip6addrlbl_entry *ip6addrlbl_alloc(struct net *net, in ip6addrlbl_alloc() argument 238 write_pnet(&newp->lbl_net, net); in ip6addrlbl_alloc() 283 static int ip6addrlbl_add(struct net *net, in ip6addrlbl_add() argument [all …]
|
D | output_core.c | 13 static u32 __ipv6_select_ident(struct net *net, u32 hashrnd, in __ipv6_select_ident() argument 21 hash ^= net_hash_mix(net); in __ipv6_select_ident() 42 void ipv6_proxy_select_ident(struct net *net, struct sk_buff *skb) in ipv6_proxy_select_ident() argument 59 id = __ipv6_select_ident(net, ip6_proxy_idents_hashrnd, in ipv6_proxy_select_ident() 65 __be32 ipv6_select_ident(struct net *net, in ipv6_select_ident() argument 74 id = __ipv6_select_ident(net, ip6_idents_hashrnd, daddr, saddr); in ipv6_select_ident() 141 int __ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) in __ip6_local_out() argument 152 net, sk, skb, NULL, skb_dst(skb)->dev, in __ip6_local_out() 157 int ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_local_out() argument 161 err = __ip6_local_out(net, sk, skb); in ip6_local_out() [all …]
|
D | icmp.c | 82 static inline struct sock *icmpv6_sk(struct net *net) in icmpv6_sk() argument 84 return net->ipv6.icmp_sk[smp_processor_id()]; in icmpv6_sk() 92 struct net *net = dev_net(skb->dev); in icmpv6_err() local 95 ip6_update_pmtu(skb, net, info, 0, 0); in icmpv6_err() 97 ip6_redirect(skb, net, skb->dev->ifindex, 0); in icmpv6_err() 112 static __inline__ struct sock *icmpv6_xmit_lock(struct net *net) in icmpv6_xmit_lock() argument 118 sk = icmpv6_sk(net); in icmpv6_xmit_lock() 176 struct net *net = sock_net(sk); in icmpv6_xrlim_allow() local 193 dst = ip6_route_output(net, sk, fl6); in icmpv6_xrlim_allow() 195 IP6_INC_STATS(net, ip6_dst_idev(dst), in icmpv6_xrlim_allow() [all …]
|
D | fib6_rules.c | 32 struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6, in fib6_rule_lookup() argument 41 fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_rule_lookup() 47 dst_hold(&net->ipv6.ip6_null_entry->dst); in fib6_rule_lookup() 48 return &net->ipv6.ip6_null_entry->dst; in fib6_rule_lookup() 54 rt = net->ipv6.ip6_null_entry; in fib6_rule_lookup() 67 struct net *net = rule->fr_net; in fib6_rule_action() local 76 rt = net->ipv6.ip6_null_entry; in fib6_rule_action() 81 rt = net->ipv6.ip6_blk_hole_entry; in fib6_rule_action() 85 rt = net->ipv6.ip6_prohibit_entry; in fib6_rule_action() 89 table = fib6_get_table(net, rule->table); in fib6_rule_action() [all …]
|
D | ip6_flowlabel.c | 74 static inline struct ip6_flowlabel *__fl_lookup(struct net *net, __be32 label) in __fl_lookup() argument 79 if (fl->label == label && net_eq(fl->fl_net, net)) in __fl_lookup() 85 static struct ip6_flowlabel *fl_lookup(struct net *net, __be32 label) in fl_lookup() argument 90 fl = __fl_lookup(net, label); in fl_lookup() 170 static void __net_exit ip6_fl_purge(struct net *net) in ip6_fl_purge() argument 182 if (net_eq(fl->fl_net, net) && in ip6_fl_purge() 195 static struct ip6_flowlabel *fl_intern(struct net *net, in fl_intern() argument 207 lfl = __fl_lookup(net, fl->label); in fl_intern() 221 lfl = __fl_lookup(net, fl->label); in fl_intern() 354 fl_create(struct net *net, struct sock *sk, struct in6_flowlabel_req *freq, in fl_create() argument [all …]
|
D | anycast.c | 59 struct net *net = sock_net(sk); in ipv6_sock_ac_join() local 60 int ishost = !net->ipv6.devconf_all->forwarding; in ipv6_sock_ac_join() 65 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in ipv6_sock_ac_join() 69 if (ipv6_chk_addr(net, addr, NULL, 0)) in ipv6_sock_ac_join() 81 rt = rt6_lookup(net, addr, NULL, 0, 0); in ipv6_sock_ac_join() 90 dev = __dev_get_by_flags(net, IFF_UP, in ipv6_sock_ac_join() 94 dev = __dev_get_by_index(net, ifindex); in ipv6_sock_ac_join() 147 struct net *net = sock_net(sk); in ipv6_sock_ac_drop() local 165 dev = __dev_get_by_index(net, pac->acl_ifindex); in ipv6_sock_ac_drop() 178 struct net *net = sock_net(sk); in ipv6_sock_ac_close() local [all …]
|
D | ip6_vti.c | 92 vti6_tnl_lookup(struct net *net, const struct in6_addr *remote, in vti6_tnl_lookup() argument 97 struct vti6_net *ip6n = net_generic(net, vti6_net_id); in vti6_tnl_lookup() 188 struct net *net = dev_net(dev); in vti6_tnl_create2() local 189 struct vti6_net *ip6n = net_generic(net, vti6_net_id); in vti6_tnl_create2() 208 static struct ip6_tnl *vti6_tnl_create(struct net *net, struct __ip6_tnl_parm *p) in vti6_tnl_create() argument 224 dev_net_set(dev, net); in vti6_tnl_create() 228 t->net = dev_net(dev); in vti6_tnl_create() 256 static struct ip6_tnl *vti6_locate(struct net *net, struct __ip6_tnl_parm *p, in vti6_locate() argument 263 struct vti6_net *ip6n = net_generic(net, vti6_net_id); in vti6_locate() 278 return vti6_tnl_create(net, p); in vti6_locate() [all …]
|
D | ip6_input.c | 50 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish() argument 70 struct net *net = dev_net(skb->dev); in ipv6_rcv() local 81 IP6_UPD_PO_STATS_BH(net, idev, IPSTATS_MIB_IN, skb->len); in ipv6_rcv() 85 IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INDISCARDS); in ipv6_rcv() 112 IP6_ADD_STATS_BH(net, idev, in ipv6_rcv() 162 IP6_INC_STATS_BH(net, in ipv6_rcv() 167 IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INHDRERRORS); in ipv6_rcv() 175 IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INHDRERRORS); in ipv6_rcv() 187 net, NULL, skb, dev, NULL, in ipv6_rcv() 190 IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INHDRERRORS); in ipv6_rcv() [all …]
|
D | ipcomp6.c | 59 struct net *net = dev_net(skb->dev); in ipcomp6_err() local 71 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp6_err() 77 ip6_redirect(skb, net, skb->dev->ifindex, 0); in ipcomp6_err() 79 ip6_update_pmtu(skb, net, info, 0, 0); in ipcomp6_err() 87 struct net *net = xs_net(x); in ipcomp6_tunnel_create() local 90 t = xfrm_state_alloc(net); in ipcomp6_tunnel_create() 95 t->id.spi = xfrm6_tunnel_alloc_spi(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_create() 123 struct net *net = xs_net(x); in ipcomp6_tunnel_attach() local 129 spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_attach() 131 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr, in ipcomp6_tunnel_attach()
|
/linux-4.4.14/include/linux/ |
D | netfilter.h | 57 struct net *net; member 59 int (*okfn)(struct net *, struct sock *, struct sk_buff *); 69 struct net *net, in nf_hook_state_init() argument 70 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init() argument 78 p->net = net; in nf_hook_state_init() 125 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *ops); 126 void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *ops); 127 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg, 129 void nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg, 172 struct net *net, in nf_hook_thresh() argument [all …]
|
D | netfilter_ipv6.h | 17 int (*chk_addr)(struct net *net, const struct in6_addr *addr, 20 int (*fragment)(struct net *net, struct sock *sk, struct sk_buff *skb, 21 int (*output)(struct net *, struct sock *, struct sk_buff *)); 25 int ip6_route_me_harder(struct net *net, struct sk_buff *skb);
|
D | netlink.h | 11 struct net; 51 int (*bind)(struct net *net, int group); 52 void (*unbind)(struct net *net, int group); 53 bool (*compare)(struct net *net, struct sock *sk); 56 extern struct sock *__netlink_kernel_create(struct net *net, int unit, 60 netlink_kernel_create(struct net *net, int unit, struct netlink_kernel_cfg *cfg) in netlink_kernel_create() argument 62 return __netlink_kernel_create(net, unit, THIS_MODULE, cfg); in netlink_kernel_create() 147 struct net *net; member
|
D | seq_file_net.h | 6 struct net; 7 extern struct net init_net; 11 struct net *net; member 21 static inline struct net *seq_file_net(struct seq_file *seq) in seq_file_net() 24 return ((struct seq_net_private *)seq->private)->net; in seq_file_net()
|
D | inetdevice.h | 50 #define IPV4_DEVCONF_ALL(net, attr) \ argument 51 IPV4_DEVCONF((*(net)->ipv4.devconf_all), attr) 81 #define IN_DEV_NET_ORCONF(in_dev, net, attr) \ argument 82 (IPV4_DEVCONF_ALL(net, attr) || \ 114 #define IN_DEV_NET_ROUTE_LOCALNET(in_dev, net) \ argument 115 IN_DEV_NET_ORCONF(in_dev, net, ROUTE_LOCALNET) 156 void inet_netconf_notify_devconf(struct net *net, int type, int ifindex, 159 struct net_device *__ip_dev_find(struct net *net, __be32 addr, bool devref); 160 static inline struct net_device *ip_dev_find(struct net *net, __be32 addr) in ip_dev_find() argument 162 return __ip_dev_find(net, addr, true); in ip_dev_find() [all …]
|
/linux-4.4.14/fs/nfs_common/ |
D | grace.c | 28 locks_start_grace(struct net *net, struct lock_manager *lm) in locks_start_grace() argument 30 struct list_head *grace_list = net_generic(net, grace_net_id); in locks_start_grace() 66 __state_in_grace(struct net *net, bool open) in __state_in_grace() argument 68 struct list_head *grace_list = net_generic(net, grace_net_id); in __state_in_grace() 81 int locks_in_grace(struct net *net) in locks_in_grace() argument 83 return __state_in_grace(net, 0); in locks_in_grace() 87 int opens_in_grace(struct net *net) in opens_in_grace() argument 89 return __state_in_grace(net, 1); in opens_in_grace() 94 grace_init_net(struct net *net) in grace_init_net() argument 96 struct list_head *grace_list = net_generic(net, grace_net_id); in grace_init_net() [all …]
|
/linux-4.4.14/include/net/sctp/ |
D | sctp.h | 92 int sctp_copy_local_addr_list(struct net *, struct sctp_bind_addr *, 96 void sctp_addr_wq_mgmt(struct net *, struct sctp_sockaddr_entry *, int); 117 int sctp_primitive_ASSOCIATE(struct net *, struct sctp_association *, void *arg); 118 int sctp_primitive_SHUTDOWN(struct net *, struct sctp_association *, void *arg); 119 int sctp_primitive_ABORT(struct net *, struct sctp_association *, void *arg); 120 int sctp_primitive_SEND(struct net *, struct sctp_association *, void *arg); 121 int sctp_primitive_REQUESTHEARTBEAT(struct net *, struct sctp_association *, void *arg); 122 int sctp_primitive_ASCONF(struct net *, struct sctp_association *, void *arg); 133 struct sock *sctp_err_lookup(struct net *net, int family, struct sk_buff *, 150 int sctp_snmp_proc_init(struct net *net); [all …]
|
/linux-4.4.14/drivers/usb/gadget/function/ |
D | u_ether.c | 62 struct net_device *net; member 117 printk(level "%s: " fmt , (d)->net->name , ## args) 144 static int ueth_change_mtu(struct net_device *net, int new_mtu) in ueth_change_mtu() argument 146 struct eth_dev *dev = netdev_priv(net); in ueth_change_mtu() 157 net->mtu = new_mtu; in ueth_change_mtu() 163 static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p) in eth_get_drvinfo() argument 165 struct eth_dev *dev = netdev_priv(net); in eth_get_drvinfo() 228 size += sizeof(struct ethhdr) + dev->net->mtu + RX_EXTRA; in rx_submit() 303 dev->net->stats.rx_errors++; in rx_complete() 304 dev->net->stats.rx_length_errors++; in rx_complete() [all …]
|
D | u_ether.h | 131 int gether_register_netdev(struct net_device *net); 154 void gether_set_gadget(struct net_device *net, struct usb_gadget *g); 165 int gether_set_dev_addr(struct net_device *net, const char *dev_addr); 176 int gether_get_dev_addr(struct net_device *net, char *dev_addr, int len); 187 int gether_set_host_addr(struct net_device *net, const char *host_addr); 198 int gether_get_host_addr(struct net_device *net, char *host_addr, int len); 210 int gether_get_host_addr_cdc(struct net_device *net, char *host_addr, int len); 220 void gether_get_host_addr_u8(struct net_device *net, u8 host_mac[ETH_ALEN]); 230 void gether_set_qmult(struct net_device *net, unsigned qmult); 238 unsigned gether_get_qmult(struct net_device *net); [all …]
|
/linux-4.4.14/fs/nfsd/ |
D | nfssvc.c | 176 int nfsd_nrthreads(struct net *net) in nfsd_nrthreads() argument 179 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_nrthreads() 188 static int nfsd_init_socks(struct net *net) in nfsd_init_socks() argument 191 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_init_socks() 196 error = svc_create_xprt(nn->nfsd_serv, "udp", net, PF_INET, NFS_PORT, in nfsd_init_socks() 201 error = svc_create_xprt(nn->nfsd_serv, "tcp", net, PF_INET, NFS_PORT, in nfsd_init_socks() 257 static int nfsd_startup_net(int nrservs, struct net *net) in nfsd_startup_net() argument 259 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_startup_net() 268 ret = nfsd_init_socks(net); in nfsd_startup_net() 273 ret = lockd_up(net); in nfsd_startup_net() [all …]
|
D | nfs4recover.c | 56 int (*init)(struct net *); 57 void (*exit)(struct net *); 162 nfsd4_client_tracking_exit(clp->net); in legacy_recdir_name_error() 174 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in nfsd4_create_clid_dir() 349 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in nfsd4_remove_clid_dir() 438 nfsd4_recdir_load(struct net *net) { in nfsd4_recdir_load() argument 440 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd4_recdir_load() 457 nfsd4_init_recdir(struct net *net) in nfsd4_init_recdir() argument 459 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd4_init_recdir() 491 nfsd4_shutdown_recdir(struct net *net) in nfsd4_shutdown_recdir() argument [all …]
|
D | nfsctl.c | 136 static int exports_net_open(struct net *net, struct file *file) in exports_net_open() argument 140 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in exports_net_open() 235 static inline struct net *netns(struct file *file) in netns() 260 struct net *net = netns(file); in write_unlock_ip() local 273 if (rpc_pton(net, fo_path, size, sap, salen) == 0) in write_unlock_ip() 436 struct net *net = netns(file); in write_threads() local 445 rv = nfsd_svc(newthreads, net); in write_threads() 449 rv = nfsd_nrthreads(net); in write_threads() 487 struct net *net = netns(file); in write_pool_threads() local 490 npools = nfsd_nrpools(net); in write_pool_threads() [all …]
|
D | idmap.h | 43 int nfsd_idmap_init(struct net *); 44 void nfsd_idmap_shutdown(struct net *); 46 static inline int nfsd_idmap_init(struct net *net) in nfsd_idmap_init() argument 50 static inline void nfsd_idmap_shutdown(struct net *net) in nfsd_idmap_shutdown() argument
|
/linux-4.4.14/fs/lockd/ |
D | svc.c | 101 static void set_grace_period(struct net *net) in set_grace_period() argument 104 struct lockd_net *ln = net_generic(net, lockd_net_id); in set_grace_period() 106 locks_start_grace(net, &ln->lockd_manager); in set_grace_period() 114 struct net *net = &init_net; in restart_grace() local 115 struct lockd_net *ln = net_generic(net, lockd_net_id); in restart_grace() 120 set_grace_period(net); in restart_grace() 180 struct net *net, const int family, in create_lockd_listener() argument 185 xprt = svc_find_xprt(serv, name, net, family, 0); in create_lockd_listener() 187 return svc_create_xprt(serv, name, net, family, port, in create_lockd_listener() 193 static int create_lockd_family(struct svc_serv *serv, struct net *net, in create_lockd_family() argument [all …]
|
D | host.c | 50 static void nlm_gc_hosts(struct net *net); 61 struct net *net; /* network namespace to bind */ member 119 nsm = nsm_get_handle(ni->net, ni->sap, ni->salen, in nlm_alloc_host() 163 host->net = ni->net; in nlm_alloc_host() 178 struct lockd_net *ln = net_generic(host->net, lockd_net_id); in nlm_destroy_host_locked() 216 struct net *net) in nlmclnt_lookup_host() argument 227 .net = net, in nlmclnt_lookup_host() 232 struct lockd_net *ln = net_generic(net, lockd_net_id); in nlmclnt_lookup_host() 242 if (host->net != net) in nlmclnt_lookup_host() 330 struct net *net = SVC_NET(rqstp); in nlmsvc_lookup_host() local [all …]
|
/linux-4.4.14/net/sunrpc/ |
D | sunrpc_syms.c | 30 static __net_init int sunrpc_init_net(struct net *net) in sunrpc_init_net() argument 33 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in sunrpc_init_net() 35 err = rpc_proc_init(net); in sunrpc_init_net() 39 err = ip_map_cache_create(net); in sunrpc_init_net() 43 err = unix_gid_cache_create(net); in sunrpc_init_net() 47 err = rpc_pipefs_init_net(net); in sunrpc_init_net() 57 unix_gid_cache_destroy(net); in sunrpc_init_net() 59 ip_map_cache_destroy(net); in sunrpc_init_net() 61 rpc_proc_exit(net); in sunrpc_init_net() 66 static __net_exit void sunrpc_exit_net(struct net *net) in sunrpc_exit_net() argument [all …]
|
D | stats.c | 243 do_register(struct net *net, const char *name, void *data, in do_register() argument 249 sn = net_generic(net, sunrpc_net_id); in do_register() 254 rpc_proc_register(struct net *net, struct rpc_stat *statp) in rpc_proc_register() argument 256 return do_register(net, statp->program->name, statp, &rpc_proc_fops); in rpc_proc_register() 261 rpc_proc_unregister(struct net *net, const char *name) in rpc_proc_unregister() argument 265 sn = net_generic(net, sunrpc_net_id); in rpc_proc_unregister() 271 svc_proc_register(struct net *net, struct svc_stat *statp, const struct file_operations *fops) in svc_proc_register() argument 273 return do_register(net, statp->program->pg_name, statp, fops); in svc_proc_register() 278 svc_proc_unregister(struct net *net, const char *name) in svc_proc_unregister() argument 282 sn = net_generic(net, sunrpc_net_id); in svc_proc_unregister() [all …]
|
/linux-4.4.14/net/openvswitch/ |
D | conntrack.h | 23 void ovs_ct_init(struct net *); 24 void ovs_ct_exit(struct net *); 25 bool ovs_ct_verify(struct net *, enum ovs_key_attr attr); 26 int ovs_ct_copy_action(struct net *, const struct nlattr *, 31 int ovs_ct_execute(struct net *, struct sk_buff *, struct sw_flow_key *, 44 static inline void ovs_ct_init(struct net *net) { } in ovs_ct_init() argument 46 static inline void ovs_ct_exit(struct net *net) { } in ovs_ct_exit() argument 48 static inline bool ovs_ct_verify(struct net *net, int attr) in ovs_ct_verify() argument 53 static inline int ovs_ct_copy_action(struct net *net, const struct nlattr *nla, in ovs_ct_copy_action() argument 66 static inline int ovs_ct_execute(struct net *net, struct sk_buff *skb, in ovs_ct_execute() argument
|
D | conntrack.c | 304 static int handle_fragments(struct net *net, struct sw_flow_key *key, in handle_fragments() argument 314 err = ip_defrag(net, skb, user); in handle_fragments() 325 reasm = nf_ct_frag6_gather(net, skb, user); in handle_fragments() 360 ovs_ct_expect_find(struct net *net, const struct nf_conntrack_zone *zone, in ovs_ct_expect_find() argument 365 if (!nf_ct_get_tuplepr(skb, skb_network_offset(skb), proto, net, &tuple)) in ovs_ct_expect_find() 367 return __nf_ct_expect_find(net, zone, &tuple); in ovs_ct_expect_find() 371 static bool skb_nfct_cached(const struct net *net, const struct sk_buff *skb, in skb_nfct_cached() argument 380 if (!net_eq(net, read_pnet(&ct->ct_net))) in skb_nfct_cached() 395 static int __ovs_ct_lookup(struct net *net, struct sw_flow_key *key, in __ovs_ct_lookup() argument 404 if (!skb_nfct_cached(net, skb, info)) { in __ovs_ct_lookup() [all …]
|
/linux-4.4.14/drivers/rapidio/ |
D | rio-scan.c | 62 static u16 rio_destid_alloc(struct rio_net *net) in rio_destid_alloc() argument 65 struct rio_id_table *idtab = &net->destid_table; in rio_destid_alloc() 88 static int rio_destid_reserve(struct rio_net *net, u16 destid) in rio_destid_reserve() argument 91 struct rio_id_table *idtab = &net->destid_table; in rio_destid_reserve() 107 static void rio_destid_free(struct rio_net *net, u16 destid) in rio_destid_free() argument 109 struct rio_id_table *idtab = &net->destid_table; in rio_destid_free() 121 static u16 rio_destid_first(struct rio_net *net) in rio_destid_first() argument 124 struct rio_id_table *idtab = &net->destid_table; in rio_destid_first() 141 static u16 rio_destid_next(struct rio_net *net, u16 from) in rio_destid_next() argument 144 struct rio_id_table *idtab = &net->destid_table; in rio_destid_next() [all …]
|
/linux-4.4.14/net/ |
D | sysctl_net.c | 44 struct net *net = container_of(head->set, struct net, sysctls); in net_ctl_permissions() local 45 kuid_t root_uid = make_kuid(net->user_ns, 0); in net_ctl_permissions() 46 kgid_t root_gid = make_kgid(net->user_ns, 0); in net_ctl_permissions() 49 if (ns_capable(net->user_ns, CAP_NET_ADMIN) || in net_ctl_permissions() 67 static int __net_init sysctl_net_init(struct net *net) in sysctl_net_init() argument 69 setup_sysctl_set(&net->sysctls, &net_sysctl_root, is_seen); in sysctl_net_init() 73 static void __net_exit sysctl_net_exit(struct net *net) in sysctl_net_exit() argument 75 retire_sysctl_set(&net->sysctls); in sysctl_net_exit() 107 struct ctl_table_header *register_net_sysctl(struct net *net, in register_net_sysctl() argument 110 return __register_sysctl_table(&net->sysctls, path, table); in register_net_sysctl()
|
D | Kconfig | 19 contained in the package net-tools, the location and version number 53 source "net/packet/Kconfig" 54 source "net/unix/Kconfig" 55 source "net/xfrm/Kconfig" 56 source "net/iucv/Kconfig" 77 /proc/sys/net/ipv4/*; the options are explained in the file 83 source "net/ipv4/Kconfig" 84 source "net/ipv6/Kconfig" 85 source "net/netlabel/Kconfig" 138 correct local computer. This way, the computers on your local net [all …]
|
/linux-4.4.14/fs/nfs/ |
D | dns_resolve.h | 19 static inline int nfs_dns_resolver_cache_init(struct net *net) in nfs_dns_resolver_cache_init() argument 24 static inline void nfs_dns_resolver_cache_destroy(struct net *net) in nfs_dns_resolver_cache_destroy() argument 29 extern int nfs_dns_resolver_cache_init(struct net *net); 30 extern void nfs_dns_resolver_cache_destroy(struct net *net); 33 extern ssize_t nfs_dns_resolve_name(struct net *net, char *name,
|
D | callback.c | 42 static int nfs4_callback_up_net(struct svc_serv *serv, struct net *net) in nfs4_callback_up_net() argument 45 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs4_callback_up_net() 47 ret = svc_create_xprt(serv, "tcp", net, PF_INET, in nfs4_callback_up_net() 53 nn->nfs_callback_tcpport, PF_INET, net); in nfs4_callback_up_net() 55 ret = svc_create_xprt(serv, "tcp", net, PF_INET6, in nfs4_callback_up_net() 60 nn->nfs_callback_tcpport6, PF_INET6, net); in nfs4_callback_up_net() 235 static void nfs_callback_down_net(u32 minorversion, struct svc_serv *serv, struct net *net) in nfs_callback_down_net() argument 237 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs_callback_down_net() 242 dprintk("NFS: destroy per-net callback data; net=%p\n", net); in nfs_callback_down_net() 243 svc_shutdown_net(serv, net); in nfs_callback_down_net() [all …]
|
D | dns_resolve.c | 17 ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen, in nfs_dns_resolve_name() argument 26 ret = rpc_pton(net, ip_addr, ip_len, sa, salen); in nfs_dns_resolve_name() 234 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse() 332 ssize_t nfs_dns_resolve_name(struct net *net, char *name, in nfs_dns_resolve_name() argument 341 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs_dns_resolve_name() 372 int nfs_dns_resolver_cache_init(struct net *net) in nfs_dns_resolver_cache_init() argument 375 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs_dns_resolver_cache_init() 377 nn->nfs_dns_resolve = cache_create_net(&nfs_dns_resolve_template, net); in nfs_dns_resolver_cache_init() 381 err = nfs_cache_register_net(net, nn->nfs_dns_resolve); in nfs_dns_resolver_cache_init() 387 cache_destroy_net(nn->nfs_dns_resolve, net); in nfs_dns_resolver_cache_init() [all …]
|
/linux-4.4.14/drivers/net/hyperv/ |
D | netvsc_drv.c | 85 static void netvsc_set_multicast_list(struct net_device *net) in netvsc_set_multicast_list() argument 87 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_set_multicast_list() 92 static int netvsc_open(struct net_device *net) in netvsc_open() argument 94 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_open() 100 netif_carrier_off(net); in netvsc_open() 105 netdev_err(net, "unable to open device (ret %d).\n", ret); in netvsc_open() 109 netif_tx_wake_all_queues(net); in netvsc_open() 114 netif_carrier_on(net); in netvsc_open() 119 static int netvsc_close(struct net_device *net) in netvsc_close() argument 121 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_close() [all …]
|
/linux-4.4.14/net/unix/ |
D | sysctl_net_unix.c | 29 int __net_init unix_sysctl_register(struct net *net) in unix_sysctl_register() argument 38 if (net->user_ns != &init_user_ns) in unix_sysctl_register() 41 table[0].data = &net->unx.sysctl_max_dgram_qlen; in unix_sysctl_register() 42 net->unx.ctl = register_net_sysctl(net, "net/unix", table); in unix_sysctl_register() 43 if (net->unx.ctl == NULL) in unix_sysctl_register() 54 void unix_sysctl_unregister(struct net *net) in unix_sysctl_unregister() argument 58 table = net->unx.ctl->ctl_table_arg; in unix_sysctl_unregister() 59 unregister_net_sysctl_table(net->unx.ctl); in unix_sysctl_unregister()
|
/linux-4.4.14/drivers/net/can/spi/ |
D | mcp251x.c | 245 struct net_device *net; member 285 static void mcp251x_clean(struct net_device *net) in mcp251x_clean() argument 287 struct mcp251x_priv *priv = netdev_priv(net); in mcp251x_clean() 290 net->stats.tx_errors++; in mcp251x_clean() 294 can_free_echo_skb(priv->net, 0); in mcp251x_clean() 468 skb = alloc_can_skb(priv->net, &frame); in mcp251x_hw_rx() 471 priv->net->stats.rx_dropped++; in mcp251x_hw_rx() 502 priv->net->stats.rx_packets++; in mcp251x_hw_rx() 503 priv->net->stats.rx_bytes += frame->can_dlc; in mcp251x_hw_rx() 505 can_led_event(priv->net, CAN_LED_EVENT_RX); in mcp251x_hw_rx() [all …]
|
/linux-4.4.14/drivers/tty/ipwireless/ |
D | network.h | 33 void ipwireless_network_notify_control_line_change(struct ipw_network *net, 36 void ipwireless_network_packet_received(struct ipw_network *net, 40 void ipwireless_network_free(struct ipw_network *net); 41 void ipwireless_associate_network_tty(struct ipw_network *net, 43 void ipwireless_disassociate_network_ttys(struct ipw_network *net, 46 void ipwireless_ppp_open(struct ipw_network *net); 48 void ipwireless_ppp_close(struct ipw_network *net); 49 int ipwireless_ppp_channel_index(struct ipw_network *net); 50 int ipwireless_ppp_unit_number(struct ipw_network *net); 51 int ipwireless_ppp_mru(const struct ipw_network *net);
|
/linux-4.4.14/net/ipv4/netfilter/ |
D | nf_tables_arp.c | 41 static int nf_tables_arp_init_net(struct net *net) in nf_tables_arp_init_net() argument 43 net->nft.arp = kmalloc(sizeof(struct nft_af_info), GFP_KERNEL); in nf_tables_arp_init_net() 44 if (net->nft.arp== NULL) in nf_tables_arp_init_net() 47 memcpy(net->nft.arp, &nft_af_arp, sizeof(nft_af_arp)); in nf_tables_arp_init_net() 49 if (nft_register_afinfo(net, net->nft.arp) < 0) in nf_tables_arp_init_net() 54 kfree(net->nft.arp); in nf_tables_arp_init_net() 58 static void nf_tables_arp_exit_net(struct net *net) in nf_tables_arp_exit_net() argument 60 nft_unregister_afinfo(net->nft.arp); in nf_tables_arp_exit_net() 61 kfree(net->nft.arp); in nf_tables_arp_exit_net()
|
D | nf_conntrack_l3proto_ipv4_compat.c | 34 struct net *net = seq_file_net(seq); in ct_get_first() local 39 st->bucket < net->ct.htable_size; in ct_get_first() 42 hlist_nulls_first_rcu(&net->ct.hash[st->bucket])); in ct_get_first() 52 struct net *net = seq_file_net(seq); in ct_get_next() local 58 if (++st->bucket >= net->ct.htable_size) in ct_get_next() 62 hlist_nulls_first_rcu(&net->ct.hash[st->bucket])); in ct_get_next() 223 struct net *net = seq_file_net(seq); in ct_expect_get_first() local 229 hlist_first_rcu(&net->ct.expect_hash[st->bucket])); in ct_expect_get_first() 239 struct net *net = seq_file_net(seq); in ct_expect_get_next() local 247 hlist_first_rcu(&net->ct.expect_hash[st->bucket])); in ct_expect_get_next() [all …]
|
D | nf_conntrack_proto_icmp.c | 27 static inline struct nf_icmp_net *icmp_pernet(struct net *net) in icmp_pernet() argument 29 return &net->ct.nf_ct_proto.icmp; in icmp_pernet() 33 struct net *net, struct nf_conntrack_tuple *tuple) in icmp_pkt_to_tuple() argument 84 static unsigned int *icmp_get_timeouts(struct net *net) in icmp_get_timeouts() argument 86 return &icmp_pernet(net)->timeout; in icmp_get_timeouts() 130 icmp_error_message(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, in icmp_error_message() argument 147 PF_INET, net, &origtuple)) { in icmp_error_message() 165 h = nf_conntrack_find_get(net, zone, &innertuple); in icmp_error_message() 182 icmp_error(struct net *net, struct nf_conn *tmpl, in icmp_error() argument 192 if (LOG_INVALID(net, IPPROTO_ICMP)) in icmp_error() [all …]
|
D | nf_tables_ipv4.c | 62 static int nf_tables_ipv4_init_net(struct net *net) in nf_tables_ipv4_init_net() argument 64 net->nft.ipv4 = kmalloc(sizeof(struct nft_af_info), GFP_KERNEL); in nf_tables_ipv4_init_net() 65 if (net->nft.ipv4 == NULL) in nf_tables_ipv4_init_net() 68 memcpy(net->nft.ipv4, &nft_af_ipv4, sizeof(nft_af_ipv4)); in nf_tables_ipv4_init_net() 70 if (nft_register_afinfo(net, net->nft.ipv4) < 0) in nf_tables_ipv4_init_net() 75 kfree(net->nft.ipv4); in nf_tables_ipv4_init_net() 79 static void nf_tables_ipv4_exit_net(struct net *net) in nf_tables_ipv4_exit_net() argument 81 nft_unregister_afinfo(net->nft.ipv4); in nf_tables_ipv4_exit_net() 82 kfree(net->nft.ipv4); in nf_tables_ipv4_exit_net()
|
D | iptable_mangle.c | 61 ret = ipt_do_table(skb, state, state->net->ipv4.iptable_mangle); in ipt_mangle_out() 70 err = ip_route_me_harder(state->net, skb, RTN_UNSPEC); in ipt_mangle_out() 89 state->net->ipv4.iptable_mangle); in iptable_mangle_hook() 91 return ipt_do_table(skb, state, state->net->ipv4.iptable_mangle); in iptable_mangle_hook() 96 static int __net_init iptable_mangle_net_init(struct net *net) in iptable_mangle_net_init() argument 103 net->ipv4.iptable_mangle = in iptable_mangle_net_init() 104 ipt_register_table(net, &packet_mangler, repl); in iptable_mangle_net_init() 106 return PTR_ERR_OR_ZERO(net->ipv4.iptable_mangle); in iptable_mangle_net_init() 109 static void __net_exit iptable_mangle_net_exit(struct net *net) in iptable_mangle_net_exit() argument 111 ipt_unregister_table(net, net->ipv4.iptable_mangle); in iptable_mangle_net_exit()
|
D | iptable_security.c | 49 return ipt_do_table(skb, state, state->net->ipv4.iptable_security); in iptable_security_hook() 54 static int __net_init iptable_security_net_init(struct net *net) in iptable_security_net_init() argument 61 net->ipv4.iptable_security = in iptable_security_net_init() 62 ipt_register_table(net, &security_table, repl); in iptable_security_net_init() 64 return PTR_ERR_OR_ZERO(net->ipv4.iptable_security); in iptable_security_net_init() 67 static void __net_exit iptable_security_net_exit(struct net *net) in iptable_security_net_exit() argument 69 ipt_unregister_table(net, net->ipv4.iptable_security); in iptable_security_net_exit()
|
D | iptable_raw.c | 32 return ipt_do_table(skb, state, state->net->ipv4.iptable_raw); in iptable_raw_hook() 37 static int __net_init iptable_raw_net_init(struct net *net) in iptable_raw_net_init() argument 44 net->ipv4.iptable_raw = in iptable_raw_net_init() 45 ipt_register_table(net, &packet_raw, repl); in iptable_raw_net_init() 47 return PTR_ERR_OR_ZERO(net->ipv4.iptable_raw); in iptable_raw_net_init() 50 static void __net_exit iptable_raw_net_exit(struct net *net) in iptable_raw_net_exit() argument 52 ipt_unregister_table(net, net->ipv4.iptable_raw); in iptable_raw_net_exit()
|
D | iptable_filter.c | 45 return ipt_do_table(skb, state, state->net->ipv4.iptable_filter); in iptable_filter_hook() 54 static int __net_init iptable_filter_net_init(struct net *net) in iptable_filter_net_init() argument 65 net->ipv4.iptable_filter = in iptable_filter_net_init() 66 ipt_register_table(net, &packet_filter, repl); in iptable_filter_net_init() 68 return PTR_ERR_OR_ZERO(net->ipv4.iptable_filter); in iptable_filter_net_init() 71 static void __net_exit iptable_filter_net_exit(struct net *net) in iptable_filter_net_exit() argument 73 ipt_unregister_table(net, net->ipv4.iptable_filter); in iptable_filter_net_exit()
|
D | arptable_filter.c | 33 return arpt_do_table(skb, state, state->net->ipv4.arptable_filter); in arptable_filter_hook() 38 static int __net_init arptable_filter_net_init(struct net *net) in arptable_filter_net_init() argument 45 net->ipv4.arptable_filter = in arptable_filter_net_init() 46 arpt_register_table(net, &packet_filter, repl); in arptable_filter_net_init() 48 return PTR_ERR_OR_ZERO(net->ipv4.arptable_filter); in arptable_filter_net_init() 51 static void __net_exit arptable_filter_net_exit(struct net *net) in arptable_filter_net_exit() argument 53 arpt_unregister_table(net->ipv4.arptable_filter); in arptable_filter_net_exit()
|
D | iptable_nat.c | 36 return ipt_do_table(skb, state, state->net->ipv4.nat_table); in iptable_nat_do_chain() 98 static int __net_init iptable_nat_net_init(struct net *net) in iptable_nat_net_init() argument 105 net->ipv4.nat_table = ipt_register_table(net, &nf_nat_ipv4_table, repl); in iptable_nat_net_init() 107 return PTR_ERR_OR_ZERO(net->ipv4.nat_table); in iptable_nat_net_init() 110 static void __net_exit iptable_nat_net_exit(struct net *net) in iptable_nat_net_exit() argument 112 ipt_unregister_table(net, net->ipv4.nat_table); in iptable_nat_net_exit()
|
D | nf_conntrack_l3proto_ipv4.c | 150 return nf_conntrack_in(state->net, PF_INET, state->hook, skb); in ipv4_conntrack_in() 161 return nf_conntrack_in(state->net, PF_INET, state->hook, skb); in ipv4_conntrack_local() 351 static int ipv4_init_net(struct net *net) in ipv4_init_net() argument 354 struct nf_ip_net *in = &net->ct.nf_ct_proto; in ipv4_init_net() 362 in->ctl_table[1].data = &net->ct.count; in ipv4_init_net() 363 in->ctl_table[2].data = &net->ct.htable_size; in ipv4_init_net() 364 in->ctl_table[3].data = &net->ct.sysctl_checksum; in ipv4_init_net() 365 in->ctl_table[4].data = &net->ct.sysctl_log_invalid; in ipv4_init_net() 397 static int ipv4_net_init(struct net *net) in ipv4_net_init() argument 401 ret = nf_ct_l4proto_pernet_register(net, &nf_conntrack_l4proto_tcp4); in ipv4_net_init() [all …]
|
/linux-4.4.14/security/ |
D | lsm_audit.c | 52 ad->u.net->v4info.saddr = ih->saddr; in ipv4_skb_to_auditdata() 53 ad->u.net->v4info.daddr = ih->daddr; in ipv4_skb_to_auditdata() 67 ad->u.net->sport = th->source; in ipv4_skb_to_auditdata() 68 ad->u.net->dport = th->dest; in ipv4_skb_to_auditdata() 76 ad->u.net->sport = uh->source; in ipv4_skb_to_auditdata() 77 ad->u.net->dport = uh->dest; in ipv4_skb_to_auditdata() 85 ad->u.net->sport = dh->dccph_sport; in ipv4_skb_to_auditdata() 86 ad->u.net->dport = dh->dccph_dport; in ipv4_skb_to_auditdata() 93 ad->u.net->sport = sh->source; in ipv4_skb_to_auditdata() 94 ad->u.net->dport = sh->dest; in ipv4_skb_to_auditdata() [all …]
|
/linux-4.4.14/net/ipv6/netfilter/ |
D | nf_conntrack_reasm.c | 97 static int nf_ct_frag6_sysctl_register(struct net *net) in nf_ct_frag6_sysctl_register() argument 103 if (!net_eq(net, &init_net)) { in nf_ct_frag6_sysctl_register() 109 table[0].data = &net->nf_frag.frags.timeout; in nf_ct_frag6_sysctl_register() 110 table[1].data = &net->nf_frag.frags.low_thresh; in nf_ct_frag6_sysctl_register() 111 table[1].extra2 = &net->nf_frag.frags.high_thresh; in nf_ct_frag6_sysctl_register() 112 table[2].data = &net->nf_frag.frags.high_thresh; in nf_ct_frag6_sysctl_register() 113 table[2].extra1 = &net->nf_frag.frags.low_thresh; in nf_ct_frag6_sysctl_register() 117 hdr = register_net_sysctl(net, "net/netfilter", table); in nf_ct_frag6_sysctl_register() 121 net->nf_frag.sysctl.frags_hdr = hdr; in nf_ct_frag6_sysctl_register() 125 if (!net_eq(net, &init_net)) in nf_ct_frag6_sysctl_register() [all …]
|
D | nf_conntrack_proto_icmpv6.c | 32 static inline struct nf_icmp_net *icmpv6_pernet(struct net *net) in icmpv6_pernet() argument 34 return &net->ct.nf_ct_proto.icmpv6; in icmpv6_pernet() 39 struct net *net, in icmpv6_pkt_to_tuple() argument 97 static unsigned int *icmpv6_get_timeouts(struct net *net) in icmpv6_get_timeouts() argument 99 return &icmpv6_pernet(net)->timeout; in icmpv6_get_timeouts() 145 icmpv6_error_message(struct net *net, struct nf_conn *tmpl, in icmpv6_error_message() argument 163 PF_INET6, net, &origtuple)) { in icmpv6_error_message() 181 h = nf_conntrack_find_get(net, nf_ct_zone_tmpl(tmpl, skb, &tmp), in icmpv6_error_message() 198 icmpv6_error(struct net *net, struct nf_conn *tmpl, in icmpv6_error() argument 208 if (LOG_INVALID(net, IPPROTO_ICMPV6)) in icmpv6_error() [all …]
|
D | nf_tables_ipv6.c | 61 static int nf_tables_ipv6_init_net(struct net *net) in nf_tables_ipv6_init_net() argument 63 net->nft.ipv6 = kmalloc(sizeof(struct nft_af_info), GFP_KERNEL); in nf_tables_ipv6_init_net() 64 if (net->nft.ipv6 == NULL) in nf_tables_ipv6_init_net() 67 memcpy(net->nft.ipv6, &nft_af_ipv6, sizeof(nft_af_ipv6)); in nf_tables_ipv6_init_net() 69 if (nft_register_afinfo(net, net->nft.ipv6) < 0) in nf_tables_ipv6_init_net() 74 kfree(net->nft.ipv6); in nf_tables_ipv6_init_net() 78 static void nf_tables_ipv6_exit_net(struct net *net) in nf_tables_ipv6_exit_net() argument 80 nft_unregister_afinfo(net->nft.ipv6); in nf_tables_ipv6_exit_net() 81 kfree(net->nft.ipv6); in nf_tables_ipv6_exit_net()
|
D | ip6table_raw.c | 25 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_raw); in ip6table_raw_hook() 30 static int __net_init ip6table_raw_net_init(struct net *net) in ip6table_raw_net_init() argument 37 net->ipv6.ip6table_raw = in ip6table_raw_net_init() 38 ip6t_register_table(net, &packet_raw, repl); in ip6table_raw_net_init() 40 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_raw); in ip6table_raw_net_init() 43 static void __net_exit ip6table_raw_net_exit(struct net *net) in ip6table_raw_net_exit() argument 45 ip6t_unregister_table(net, net->ipv6.ip6table_raw); in ip6table_raw_net_exit()
|
D | ip6table_security.c | 42 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_security); in ip6table_security_hook() 47 static int __net_init ip6table_security_net_init(struct net *net) in ip6table_security_net_init() argument 54 net->ipv6.ip6table_security = in ip6table_security_net_init() 55 ip6t_register_table(net, &security_table, repl); in ip6table_security_net_init() 57 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_security); in ip6table_security_net_init() 60 static void __net_exit ip6table_security_net_exit(struct net *net) in ip6table_security_net_exit() argument 62 ip6t_unregister_table(net, net->ipv6.ip6table_security); in ip6table_security_net_exit()
|
D | ip6t_REJECT.c | 42 struct net *net = par->net; in reject_tg6() local 46 nf_send_unreach6(net, skb, ICMPV6_NOROUTE, par->hooknum); in reject_tg6() 49 nf_send_unreach6(net, skb, ICMPV6_ADM_PROHIBITED, par->hooknum); in reject_tg6() 52 nf_send_unreach6(net, skb, ICMPV6_NOT_NEIGHBOUR, par->hooknum); in reject_tg6() 55 nf_send_unreach6(net, skb, ICMPV6_ADDR_UNREACH, par->hooknum); in reject_tg6() 58 nf_send_unreach6(net, skb, ICMPV6_PORT_UNREACH, par->hooknum); in reject_tg6() 64 nf_send_reset6(net, skb, par->hooknum); in reject_tg6() 67 nf_send_unreach6(net, skb, ICMPV6_POLICY_FAIL, par->hooknum); in reject_tg6() 70 nf_send_unreach6(net, skb, ICMPV6_REJECT_ROUTE, par->hooknum); in reject_tg6()
|
D | ip6table_mangle.c | 60 ret = ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle); in ip6t_mangle_out() 68 err = ip6_route_me_harder(state->net, skb); in ip6t_mangle_out() 85 state->net->ipv6.ip6table_mangle); in ip6table_mangle_hook() 87 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle); in ip6table_mangle_hook() 91 static int __net_init ip6table_mangle_net_init(struct net *net) in ip6table_mangle_net_init() argument 98 net->ipv6.ip6table_mangle = in ip6table_mangle_net_init() 99 ip6t_register_table(net, &packet_mangler, repl); in ip6table_mangle_net_init() 101 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_mangle); in ip6table_mangle_net_init() 104 static void __net_exit ip6table_mangle_net_exit(struct net *net) in ip6table_mangle_net_exit() argument 106 ip6t_unregister_table(net, net->ipv6.ip6table_mangle); in ip6table_mangle_net_exit()
|
D | ip6table_filter.c | 38 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_filter); in ip6table_filter_hook() 47 static int __net_init ip6table_filter_net_init(struct net *net) in ip6table_filter_net_init() argument 58 net->ipv6.ip6table_filter = in ip6table_filter_net_init() 59 ip6t_register_table(net, &packet_filter, repl); in ip6table_filter_net_init() 61 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_filter); in ip6table_filter_net_init() 64 static void __net_exit ip6table_filter_net_exit(struct net *net) in ip6table_filter_net_exit() argument 66 ip6t_unregister_table(net, net->ipv6.ip6table_filter); in ip6table_filter_net_exit()
|
D | ip6table_nat.c | 38 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_nat); in ip6table_nat_do_chain() 100 static int __net_init ip6table_nat_net_init(struct net *net) in ip6table_nat_net_init() argument 107 net->ipv6.ip6table_nat = ip6t_register_table(net, &nf_nat_ipv6_table, repl); in ip6table_nat_net_init() 109 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_nat); in ip6table_nat_net_init() 112 static void __net_exit ip6table_nat_net_exit(struct net *net) in ip6table_nat_net_exit() argument 114 ip6t_unregister_table(net, net->ipv6.ip6table_nat); in ip6table_nat_net_exit()
|
/linux-4.4.14/include/linux/netfilter/ |
D | nfnetlink.h | 17 int (*call_batch)(struct net *net, struct sock *nl, struct sk_buff *skb, 36 int nfnetlink_has_listeners(struct net *net, unsigned int group); 37 struct sk_buff *nfnetlink_alloc_skb(struct net *net, unsigned int size, 39 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid, 41 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error); 42 int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid,
|
D | x_tables.h | 37 struct net *net; member 60 struct net *net; member 75 struct net *net; member 91 struct net *net; member 103 struct net *net; member 254 struct xt_table *xt_register_table(struct net *net, 272 struct xt_table *xt_find_table_lock(struct net *net, u_int8_t af, 276 int xt_proto_init(struct net *net, u_int8_t af); 277 void xt_proto_fini(struct net *net, u_int8_t af);
|
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/ |
D | rtw_android.c | 88 static int rtw_android_get_rssi(struct net_device *net, char *command, in rtw_android_get_rssi() argument 91 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(net); in rtw_android_get_rssi() 105 static int rtw_android_get_link_speed(struct net_device *net, char *command, in rtw_android_get_link_speed() argument 108 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(net); in rtw_android_get_link_speed() 116 static int rtw_android_get_macaddr(struct net_device *net, char *command, in rtw_android_get_macaddr() argument 120 net->dev_addr); in rtw_android_get_macaddr() 123 static int android_set_cntry(struct net_device *net, char *command, in android_set_cntry() argument 126 struct adapter *adapter = (struct adapter *)rtw_netdev_priv(net); in android_set_cntry() 134 static int android_get_p2p_addr(struct net_device *net, char *command, in android_get_p2p_addr() argument 138 memcpy(command, net->dev_addr, ETH_ALEN); in android_get_p2p_addr() [all …]
|
/linux-4.4.14/net/bridge/netfilter/ |
D | nf_log_bridge.c | 19 static void nf_log_bridge_packet(struct net *net, u_int8_t pf, in nf_log_bridge_packet() argument 29 nf_log_packet(net, NFPROTO_IPV4, hooknum, skb, in, out, in nf_log_bridge_packet() 33 nf_log_packet(net, NFPROTO_IPV6, hooknum, skb, in, out, in nf_log_bridge_packet() 38 nf_log_packet(net, NFPROTO_ARP, hooknum, skb, in, out, in nf_log_bridge_packet() 51 static int __net_init nf_log_bridge_net_init(struct net *net) in nf_log_bridge_net_init() argument 53 nf_log_set(net, NFPROTO_BRIDGE, &nf_bridge_logger); in nf_log_bridge_net_init() 57 static void __net_exit nf_log_bridge_net_exit(struct net *net) in nf_log_bridge_net_exit() argument 59 nf_log_unset(net, &nf_bridge_logger); in nf_log_bridge_net_exit()
|
D | ebtable_broute.c | 60 ret = ebt_do_table(skb, &state, state.net->xt.broute_table); in ebt_broute() 66 static int __net_init broute_net_init(struct net *net) in broute_net_init() argument 68 net->xt.broute_table = ebt_register_table(net, &broute_table); in broute_net_init() 69 return PTR_ERR_OR_ZERO(net->xt.broute_table); in broute_net_init() 72 static void __net_exit broute_net_exit(struct net *net) in broute_net_exit() argument 74 ebt_unregister_table(net, net->xt.broute_table); in broute_net_exit()
|
D | ebtable_nat.c | 63 return ebt_do_table(skb, state, state->net->xt.frame_nat); in ebt_nat_in() 70 return ebt_do_table(skb, state, state->net->xt.frame_nat); in ebt_nat_out() 94 static int __net_init frame_nat_net_init(struct net *net) in frame_nat_net_init() argument 96 net->xt.frame_nat = ebt_register_table(net, &frame_nat); in frame_nat_net_init() 97 return PTR_ERR_OR_ZERO(net->xt.frame_nat); in frame_nat_net_init() 100 static void __net_exit frame_nat_net_exit(struct net *net) in frame_nat_net_exit() argument 102 ebt_unregister_table(net, net->xt.frame_nat); in frame_nat_net_exit()
|
D | ebtable_filter.c | 63 return ebt_do_table(skb, state, state->net->xt.frame_filter); in ebt_in_hook() 70 return ebt_do_table(skb, state, state->net->xt.frame_filter); in ebt_out_hook() 94 static int __net_init frame_filter_net_init(struct net *net) in frame_filter_net_init() argument 96 net->xt.frame_filter = ebt_register_table(net, &frame_filter); in frame_filter_net_init() 97 return PTR_ERR_OR_ZERO(net->xt.frame_filter); in frame_filter_net_init() 100 static void __net_exit frame_filter_net_exit(struct net *net) in frame_filter_net_exit() argument 102 ebt_unregister_table(net, net->xt.frame_filter); in frame_filter_net_exit()
|
D | nf_tables_bridge.c | 125 static int nf_tables_bridge_init_net(struct net *net) in nf_tables_bridge_init_net() argument 127 net->nft.bridge = kmalloc(sizeof(struct nft_af_info), GFP_KERNEL); in nf_tables_bridge_init_net() 128 if (net->nft.bridge == NULL) in nf_tables_bridge_init_net() 131 memcpy(net->nft.bridge, &nft_af_bridge, sizeof(nft_af_bridge)); in nf_tables_bridge_init_net() 133 if (nft_register_afinfo(net, net->nft.bridge) < 0) in nf_tables_bridge_init_net() 138 kfree(net->nft.bridge); in nf_tables_bridge_init_net() 142 static void nf_tables_bridge_exit_net(struct net *net) in nf_tables_bridge_exit_net() argument 144 nft_unregister_afinfo(net->nft.bridge); in nf_tables_bridge_exit_net() 145 kfree(net->nft.bridge); in nf_tables_bridge_exit_net()
|
/linux-4.4.14/include/net/phonet/ |
D | pn_dev.h | 31 struct phonet_device_list *phonet_device_list(struct net *net); 43 struct net_device *phonet_device_get(struct net *net); 48 int phonet_address_lookup(struct net *net, u8 addr); 54 struct net_device *phonet_route_get_rcu(struct net *net, u8 daddr); 55 struct net_device *phonet_route_output(struct net *net, u8 daddr);
|
/linux-4.4.14/net/8021q/ |
D | vlanproc.c | 126 void vlan_proc_cleanup(struct net *net) in vlan_proc_cleanup() argument 128 struct vlan_net *vn = net_generic(net, vlan_net_id); in vlan_proc_cleanup() 134 remove_proc_entry(name_root, net->proc_net); in vlan_proc_cleanup() 145 int __net_init vlan_proc_init(struct net *net) in vlan_proc_init() argument 147 struct vlan_net *vn = net_generic(net, vlan_net_id); in vlan_proc_init() 149 vn->proc_vlan_dir = proc_net_mkdir(net, name_root, net->proc_net); in vlan_proc_init() 161 vlan_proc_cleanup(net); in vlan_proc_init() 206 struct net *net = seq_file_net(seq); in vlan_seq_start() local 213 for_each_netdev_rcu(net, dev) { in vlan_seq_start() 227 struct net *net = seq_file_net(seq); in vlan_seq_next() local [all …]
|
D | vlanproc.h | 5 struct net; 7 int vlan_proc_init(struct net *net); 10 void vlan_proc_cleanup(struct net *net); 14 #define vlan_proc_init(net) (0) argument 15 #define vlan_proc_cleanup(net) do {} while (0) argument
|
/linux-4.4.14/fs/nfs/blocklayout/ |
D | rpc_pipefs.c | 56 struct net *net = server->nfs_client->cl_net; in bl_resolve_deviceid() local 57 struct nfs_net *nn = net_generic(net, nfs_net_id); in bl_resolve_deviceid() 169 struct net *net = sb->s_fs_info; in rpc_pipefs_event() local 170 struct nfs_net *nn = net_generic(net, nfs_net_id); in rpc_pipefs_event() 207 static struct dentry *nfs4blocklayout_register_net(struct net *net, in nfs4blocklayout_register_net() argument 213 pipefs_sb = rpc_get_sb_net(net); in nfs4blocklayout_register_net() 217 rpc_put_sb_net(net); in nfs4blocklayout_register_net() 221 static void nfs4blocklayout_unregister_net(struct net *net, in nfs4blocklayout_unregister_net() argument 226 pipefs_sb = rpc_get_sb_net(net); in nfs4blocklayout_unregister_net() 229 rpc_put_sb_net(net); in nfs4blocklayout_unregister_net() [all …]
|
/linux-4.4.14/net/mpls/ |
D | af_mpls.c | 36 struct nlmsghdr *nlh, struct net *net, u32 portid, 39 static struct mpls_route *mpls_route_input_rcu(struct net *net, unsigned index) in mpls_route_input_rcu() argument 43 if (index < net->mpls.platform_labels) { in mpls_route_input_rcu() 45 rcu_dereference(net->mpls.platform_label); in mpls_route_input_rcu() 226 struct net *net = dev_net(dev); in mpls_forward() local 263 rt = mpls_route_input_rcu(net, dec.label); in mpls_forward() 388 static void mpls_notify_route(struct net *net, unsigned index, in mpls_notify_route() argument 399 rtmsg_lfib(event, index, rt, nlh, net, portid, nlm_flags); in mpls_notify_route() 402 static void mpls_route_update(struct net *net, unsigned index, in mpls_route_update() argument 411 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_route_update() [all …]
|
/linux-4.4.14/net/netlink/ |
D | af_netlink.h | 44 int (*netlink_bind)(struct net *net, int group); 45 void (*netlink_unbind)(struct net *net, int group); 80 int (*bind)(struct net *net, int group); 81 void (*unbind)(struct net *net, int group); 82 bool (*compare)(struct net *net, struct sock *sock);
|
/linux-4.4.14/net/wireless/ |
D | wext-proc.c | 92 struct net *net = seq_file_net(seq); in wireless_dev_seq_start() local 101 for_each_netdev(net, dev) in wireless_dev_seq_start() 109 struct net *net = seq_file_net(seq); in wireless_dev_seq_next() local 114 first_net_device(net) : next_net_device(v); in wireless_dev_seq_next() 143 int __net_init wext_proc_init(struct net *net) in wext_proc_init() argument 146 if (!proc_create("wireless", S_IRUGO, net->proc_net, in wext_proc_init() 153 void __net_exit wext_proc_exit(struct net *net) in wext_proc_exit() argument 155 remove_proc_entry("wireless", net->proc_net); in wext_proc_exit()
|
/linux-4.4.14/net/phonet/ |
D | pn_dev.c | 49 static struct phonet_net *phonet_pernet(struct net *net) in phonet_pernet() argument 51 BUG_ON(!net); in phonet_pernet() 53 return net_generic(net, phonet_net_id); in phonet_pernet() 56 struct phonet_device_list *phonet_device_list(struct net *net) in phonet_device_list() argument 58 struct phonet_net *pnn = phonet_pernet(net); in phonet_device_list() 124 struct net_device *phonet_device_get(struct net *net) in phonet_device_get() argument 126 struct phonet_device_list *pndevs = phonet_device_list(net); in phonet_device_get() 222 int phonet_address_lookup(struct net *net, u8 addr) in phonet_address_lookup() argument 224 struct phonet_device_list *pndevs = phonet_device_list(net); in phonet_address_lookup() 319 static int __net_init phonet_init_net(struct net *net) in phonet_init_net() argument [all …]
|
/linux-4.4.14/net/ieee802154/6lowpan/ |
D | reassembly.c | 86 struct net *net; in lowpan_frag_expire() local 89 net = container_of(fq->q.net, struct net, ieee802154_lowpan.frags); in lowpan_frag_expire() 103 fq_find(struct net *net, const struct lowpan_802154_cb *cb, in fq_find() argument 111 net_ieee802154_lowpan(net); in fq_find() 199 add_frag_mem_limit(fq->q.net, skb->truesize); in lowpan_frag_queue() 279 add_frag_mem_limit(fq->q.net, clone->truesize); in lowpan_frag_reasm() 302 sub_frag_mem_limit(fq->q.net, sum_truesize); in lowpan_frag_reasm() 409 struct net *net = dev_net(skb->dev); in lowpan_frag_rcv() local 432 fq = fq_find(net, cb, &hdr.source, &hdr.dest); in lowpan_frag_rcv() 493 static int __net_init lowpan_frags_ns_sysctl_register(struct net *net) in lowpan_frags_ns_sysctl_register() argument [all …]
|
/linux-4.4.14/drivers/firewire/ |
D | net.c | 216 static int fwnet_header_create(struct sk_buff *skb, struct net_device *net, in fwnet_header_create() argument 225 if (net->flags & (IFF_LOOPBACK | IFF_NOARP)) { in fwnet_header_create() 226 memset(h->h_dest, 0, net->addr_len); in fwnet_header_create() 228 return net->hard_header_len; in fwnet_header_create() 232 memcpy(h->h_dest, daddr, net->addr_len); in fwnet_header_create() 234 return net->hard_header_len; in fwnet_header_create() 237 return -net->hard_header_len; in fwnet_header_create() 243 struct net_device *net; in fwnet_header_cache() local 248 net = neigh->dev; in fwnet_header_cache() 251 memcpy(h->h_dest, neigh->ha, net->addr_len); in fwnet_header_cache() [all …]
|
/linux-4.4.14/include/linux/lockd/ |
D | lockd.h | 70 struct net *net; /* host net */ member 228 struct net *net); 238 void nlm_shutdown_hosts_net(struct net *net); 239 void nlm_host_rebooted(const struct net *net, 248 struct nsm_handle *nsm_get_handle(const struct net *net, 253 struct nsm_handle *nsm_reboot_lookup(const struct net *net, 269 __be32 nlmsvc_unlock(struct net *net, struct nlm_file *, struct nlm_lock *); 273 __be32 nlmsvc_cancel_blocked(struct net *net, struct nlm_file *, struct nlm_lock *); 286 void nlmsvc_mark_resources(struct net *);
|