/linux-master/net/ipv4/ |
H A D | metrics.c | 6 #include <net/ip.h> 7 #include <net/net_namespace.h> 8 #include <net/tcp.h> 10 static int ip_metrics_convert(struct net *net, struct nlattr *fc_mx, argument 34 val = tcp_ca_get_key_by_name(net, tmp, &ecn_ca); 66 struct dst_metrics *ip_fib_metrics_init(struct net *net, struct nlattr *fc_mx, argument 80 err = ip_metrics_convert(net, fc_mx, fc_mx_len, fib_metrics->metrics,
|
H A D | ip_input.c | 15 * Jorge Cwik, <jorge@laser.satlink.net> 77 * Alan Cox : Only send ICMP_REDIRECT if src/dest are the same net. 118 #include <linux/net.h> 128 #include <net/snmp.h> 129 #include <net/ip.h> 130 #include <net/protocol.h> 131 #include <net/route.h> 133 #include <net/sock.h> 134 #include <net/arp.h> 135 #include <net/icm 154 struct net *net = dev_net(dev); local 187 ip_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int protocol) argument 227 ip_local_deliver_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument 247 struct net *net = dev_net(skb->dev); local 317 ip_rcv_finish_core(struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *dev, const struct sk_buff *hint) argument 435 ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument 456 ip_rcv_core(struct sk_buff *skb, struct net *net) argument 563 struct net *net = dev_net(dev); local 584 ip_extract_route_hint(const struct net *net, struct sk_buff *skb, int rt_type) argument 594 ip_list_rcv_finish(struct net *net, struct sock *sk, struct list_head *head) argument 634 ip_sublist_rcv(struct list_head *head, struct net_device *dev, struct net *net) argument 654 struct net *net = dev_net(dev); local [all...] |
H A D | netlink.c | 5 #include <net/net_namespace.h> 6 #include <net/netlink.h> 8 #include <net/ip.h>
|
/linux-master/net/bridge/netfilter/ |
H A D | ebtable_filter.c | 74 static int frame_filter_table_init(struct net *net) argument 76 return ebt_register_table(net, &frame_filter, ebt_ops_filter); 79 static void __net_exit frame_filter_net_pre_exit(struct net *net) argument 81 ebt_unregister_table_pre_exit(net, "filter"); 84 static void __net_exit frame_filter_net_exit(struct net *net) argument 86 ebt_unregister_table(net, "filter");
|
H A D | ebtable_nat.c | 74 static int frame_nat_table_init(struct net *net) argument 76 return ebt_register_table(net, &frame_nat, ebt_ops_nat); 79 static void __net_exit frame_nat_net_pre_exit(struct net *net) argument 81 ebt_unregister_table_pre_exit(net, "nat"); 84 static void __net_exit frame_nat_net_exit(struct net *net) argument 86 ebt_unregister_table(net, "nat");
|
/linux-master/net/ipv6/netfilter/ |
H A D | ip6table_raw.c | 36 static int ip6table_raw_table_init(struct net *net) argument 48 ret = ip6t_register_table(net, table, repl, rawtable_ops); 53 static void __net_exit ip6table_raw_net_pre_exit(struct net *net) argument 55 ip6t_unregister_table_pre_exit(net, "raw"); 58 static void __net_exit ip6table_raw_net_exit(struct net *net) argument 60 ip6t_unregister_table_exit(net, "raw");
|
/linux-master/net/netlink/ |
H A D | af_netlink.h | 8 #include <net/sock.h> 46 int (*netlink_bind)(struct net *net, int group); 47 void (*netlink_unbind)(struct net *net, int group); 72 int (*bind)(struct net *net, int group); 73 void (*unbind)(struct net *net, int group);
|
/linux-master/net/xfrm/ |
H A D | xfrm_state_bpf.c | 11 #include <net/xdp.h> 12 #include <net/xfrm.h> 68 struct net *net = dev_net(xdp->rxq->dev); local 85 net = get_net_ns_by_id(net, opts->netns_id); 86 if (unlikely(!net)) { 92 x = xfrm_state_lookup(net, opts->mark, &opts->daddr, opts->spi, 96 put_net(net);
|
/linux-master/drivers/net/usb/ |
H A D | smsc75xx.c | 96 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", 128 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", 170 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); 193 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); 205 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); 211 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); 217 netdev_warn(dev->net, "Error reading MII_DATA\n"); 240 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); 247 netdev_warn(dev->net, "Error writing MII_DATA\n"); 259 netdev_warn(dev->net, "Erro 677 smsc75xx_ethtool_get_eeprom_len(struct net_device *net) argument 706 smsc75xx_ethtool_get_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo) argument 716 smsc75xx_ethtool_set_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo) argument [all...] |
/linux-master/net/ipv6/ |
H A D | fib6_rules.c | 3 * net/ipv6/fib6_rules.c IPv6 Routing Policy Rules 18 #include <net/fib_rules.h> 19 #include <net/inet_dscp.h> 20 #include <net/ipv6.h> 21 #include <net/addrconf.h> 22 #include <net/ip6_route.h> 23 #include <net/netlink.h> 52 int fib6_rules_dump(struct net *net, struct notifier_block *nb, argument 55 return fib_rules_dump(net, n 58 fib6_rules_seq_read(struct net *net) argument 64 fib6_lookup(struct net *net, int oif, struct flowi6 *fl6, struct fib6_result *res, int flags) argument 92 fib6_rule_lookup(struct net *net, struct flowi6 *fl6, const struct sk_buff *skb, int flags, pol_lookup_t lookup) argument 133 fib6_rule_saddr(struct net *net, struct fib_rule *rule, int flags, struct flowi6 *flp6, const struct net_device *dev) argument 163 struct net *net = rule->fr_net; local 203 struct net *net = rule->fr_net; local 350 struct net *net = sock_net(skb->sk); local 392 struct net *net = rule->fr_net; local 475 fib6_rules_net_init(struct net *net) argument 504 struct net *net; local [all...] |
H A D | reassembly.c | 9 * Based on: net/ipv4/ip_fragment.c 34 #include <linux/net.h> 48 #include <net/sock.h> 49 #include <net/snmp.h> 51 #include <net/ipv6.h> 52 #include <net/ip6_route.h> 53 #include <net/protocol.h> 54 #include <net/transp_v6.h> 55 #include <net/rawv6.h> 56 #include <net/ndis 84 fq_find(struct net *net, __be32 id, const struct ipv6hdr *hdr, int iif) argument 110 struct net *net = dev_net(skb_dst(skb)->dev); local 259 struct net *net = fq->q.fqdir->net; local 332 struct net *net = dev_net(skb_dst(skb)->dev); local 455 ip6_frags_ns_sysctl_register(struct net *net) argument 488 ip6_frags_ns_sysctl_unregister(struct net *net) argument 512 ip6_frags_ns_sysctl_register(struct net *net) argument 517 ip6_frags_ns_sysctl_unregister(struct net *net) argument 531 ipv6_frags_init_net(struct net *net) argument 549 ipv6_frags_pre_exit_net(struct net *net) argument 554 ipv6_frags_exit_net(struct net *net) argument [all...] |
H A D | inet6_hashtables.c | 16 #include <net/addrconf.h> 17 #include <net/hotdata.h> 18 #include <net/inet_connection_sock.h> 19 #include <net/inet_hashtables.h> 20 #include <net/inet6_hashtables.h> 21 #include <net/secure_seq.h> 22 #include <net/ip.h> 23 #include <net/sock_reuseport.h> 25 u32 inet6_ehashfn(const struct net *net, argument 48 __inet6_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const u16 hnum, const int dif, const int sdif) argument 91 compute_score(struct sock *sk, struct net *net, const unsigned short hnum, const struct in6_addr *daddr, const int dif, const int sdif) argument 128 inet6_lookup_reuseport(struct net *net, struct sock *sk, struct sk_buff *skb, int doff, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, unsigned short hnum, inet6_ehashfn_t *ehashfn) argument 149 inet6_lhash2_lookup(struct net *net, struct inet_listen_hashbucket *ilb2, struct sk_buff *skb, int doff, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const unsigned short hnum, const int dif, const int sdif) argument 176 inet6_lookup_run_sk_lookup(struct net *net, int protocol, struct sk_buff *skb, int doff, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const u16 hnum, const int dif, inet6_ehashfn_t *ehashfn) argument 201 inet6_lookup_listener(struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const unsigned short hnum, const int dif, const int sdif) argument 245 inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const __be16 dport, const int dif) argument 271 struct net *net = sock_net(sk); local [all...] |
/linux-master/net/ieee802154/ |
H A D | core.h | 5 #include <net/cfg802154.h> 43 struct net *net);
|
/linux-master/include/net/tc_act/ |
H A D | tc_ctinfo.h | 5 #include <net/act_api.h> 9 struct net *net; member in struct:tcf_ctinfo_params
|
/linux-master/net/netlabel/ |
H A D | netlabel_user.h | 23 #include <net/netlink.h> 24 #include <net/genetlink.h> 25 #include <net/netlabel.h>
|
/linux-master/net/netfilter/ |
H A D | nf_conntrack_timeout.c | 19 #include <net/netfilter/nf_conntrack.h> 20 #include <net/netfilter/nf_conntrack_core.h> 21 #include <net/netfilter/nf_conntrack_extend.h> 22 #include <net/netfilter/nf_conntrack_l4proto.h> 23 #include <net/netfilter/nf_conntrack_timeout.h> 45 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout) argument 48 .net = net, 64 int nf_ct_set_timeout(struct net *ne argument [all...] |
H A D | xt_addrtype.c | 5 * Copyright (c) 2004 Patrick McHardy <kaber@trash.net> 14 #include <net/route.h> 17 #include <net/ipv6.h> 18 #include <net/ip6_route.h> 19 #include <net/ip6_fib.h> 27 MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>"); 33 static u32 match_lookup_rt6(struct net *net, const struct net_device *dev, argument 47 if (nf_ipv6_chk_addr(net, addr, dev, true)) 51 route_err = nf_ip6_route(net, (struc 68 match_type6(struct net *net, const struct net_device *dev, const struct in6_addr *addr, u16 mask) argument 88 addrtype_mt6(struct net *net, const struct net_device *dev, const struct sk_buff *skb, const struct xt_addrtype_info_v1 *info) argument 104 match_type(struct net *net, const struct net_device *dev, __be32 addr, u_int16_t mask) argument 113 struct net *net = xt_net(par); local 131 struct net *net = xt_net(par); local [all...] |
H A D | nf_conntrack_ecache.c | 6 * (C) 2005 Patrick McHardy <kaber@trash.net> 24 #include <net/netfilter/nf_conntrack.h> 25 #include <net/netfilter/nf_conntrack_core.h> 26 #include <net/netfilter/nf_conntrack_ecache.h> 27 #include <net/netfilter/nf_conntrack_extend.h> 41 struct nf_conntrack_net_ecache *nf_conn_pernet_ecache(const struct net *net) argument 43 struct nf_conntrack_net *cnet = nf_ct_pernet(net); 132 struct net *net local 236 struct net *net = nf_ct_exp_net(exp); local 261 nf_conntrack_register_notifier(struct net *net, const struct nf_ct_event_notifier *new) argument 275 nf_conntrack_unregister_notifier(struct net *net) argument 284 nf_conntrack_ecache_work(struct net *net, enum nf_ct_ecache_state state) argument 302 struct net *net = nf_ct_net(ct); local 340 nf_conntrack_ecache_pernet_init(struct net *net) argument 353 nf_conntrack_ecache_pernet_fini(struct net *net) argument [all...] |
H A D | xt_owner.c | 15 #include <net/sock.h> 16 #include <net/inet_sock.h> 23 struct net *net = par->net; local 32 (current_user_ns() != net->user_ns)) 37 kuid_t uid_min = make_kuid(net->user_ns, info->uid_min); 38 kuid_t uid_max = make_kuid(net->user_ns, info->uid_max); 49 kgid_t gid_min = make_kgid(net->user_ns, info->gid_min); 50 kgid_t gid_max = make_kgid(net 68 struct net *net = xt_net(par); local [all...] |
H A D | nf_log.c | 9 #include <net/protocol.h> 10 #include <net/netfilter/nf_log.h> 45 int nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger) argument 49 if (pf == NFPROTO_UNSPEC || pf >= ARRAY_SIZE(net->nf.nf_loggers)) 53 log = nft_log_dereference(net->nf.nf_loggers[pf]); 55 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); 63 void nf_log_unset(struct net *net, const struct nf_logger *logger) argument 70 log = nft_log_dereference(net 128 nf_log_bind_pf(struct net *net, u_int8_t pf, const struct nf_logger *logger) argument 144 nf_log_unbind_pf(struct net *net, u_int8_t pf) argument 211 nf_log_packet(struct net *net, u_int8_t pf, unsigned int hooknum, const struct sk_buff *skb, const struct net_device *in, const struct net_device *out, const struct nf_loginfo *loginfo, const char *fmt, ...) argument 240 nf_log_trace(struct net *net, u_int8_t pf, unsigned int hooknum, const struct sk_buff *skb, const struct net_device *in, const struct net_device *out, const struct nf_loginfo *loginfo, const char *fmt, ...) argument 324 struct net *net = seq_file_net(seq); local 336 struct net *net = seq_file_net(s); local 356 struct net *net = seq_file_net(s); local 419 struct net *net = table->extra2; local 462 netfilter_log_sysctl_init(struct net *net) argument 515 netfilter_log_sysctl_exit(struct net *net) argument 527 netfilter_log_sysctl_init(struct net *net) argument 532 netfilter_log_sysctl_exit(struct net *net) argument 537 nf_log_net_init(struct net *net) argument 559 nf_log_net_exit(struct net *net) argument [all...] |
H A D | core.c | 11 #include <net/protocol.h> 25 #include <net/net_namespace.h> 26 #include <net/netfilter/nf_queue.h> 27 #include <net/sock.h> 279 nf_hook_entry_head(struct net *net, int pf, unsigned int hooknum, argument 287 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_arp) <= hooknum)) 289 return net->nf.hooks_arp + hooknum; 293 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_bridge) <= hooknum)) 295 return net 336 nf_ingress_check(struct net *net, const struct nf_hook_ops *reg, int hooknum) argument 396 __nf_register_net_hook(struct net *net, int pf, const struct nf_hook_ops *reg) argument 488 __nf_unregister_net_hook(struct net *net, int pf, const struct nf_hook_ops *reg) argument 529 nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *reg) argument 557 nf_register_net_hook(struct net *net, const struct nf_hook_ops *reg) argument 587 nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg, unsigned int n) argument 607 nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg, unsigned int hookcount) argument 776 netfilter_net_init(struct net *net) argument 800 netfilter_net_exit(struct net *net) argument [all...] |
/linux-master/net/openvswitch/ |
H A D | vport-gre.c | 22 #include <net/route.h> 23 #include <net/xfrm.h> 25 #include <net/icmp.h> 26 #include <net/ip.h> 27 #include <net/ip_tunnels.h> 28 #include <net/gre.h> 29 #include <net/net_namespace.h> 30 #include <net/netns/generic.h> 31 #include <net/protocol.h> 41 struct net *ne local [all...] |
/linux-master/drivers/usb/gadget/function/ |
H A D | u_ether.h | 122 * gether_register_netdev - register the net device 123 * @net: net device to register 125 * Registers the net device associated with this ethernet-over-usb link 128 int gether_register_netdev(struct net_device *net); 146 * @net: device representing this link 151 void gether_set_gadget(struct net_device *net, struct usb_gadget *g); 155 * @net: device representing this link 162 int gether_set_dev_addr(struct net_device *net, const char *dev_addr); 166 * @net [all...] |
/linux-master/include/linux/ |
H A D | rtnetlink.h | 12 extern int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, u32 group, int echo); 14 static inline int rtnetlink_maybe_send(struct sk_buff *skb, struct net *net, argument 17 return !skb ? 0 : rtnetlink_send(skb, net, pid, group, echo); 20 extern int rtnl_unicast(struct sk_buff *skb, struct net *net, u32 pid); 21 extern void rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid, 23 extern void rtnl_set_sk_err(struct net *ne 153 rtnl_has_listeners(const struct net *net, u32 group) argument 170 rtnl_notify_needed(const struct net *net, u16 nlflags, u32 group) argument [all...] |
/linux-master/tools/testing/selftests/netfilter/ |
H A D | nft_fib.sh | 15 log_netns=$(sysctl -n net.netfilter.nf_log_all_netns) 23 [ $log_netns -eq 0 ] && sysctl -q net.netfilter.nf_log_all_netns=$log_netns 40 echo "SKIP: Could not create net namespace" 52 sysctl -q net.netfilter.nf_log_all_netns=1 140 ip -net ${nsrouter} link set lo up 141 ip -net ${nsrouter} link set veth0 up 142 ip -net ${nsrouter} addr add 10.0.1.1/24 dev veth0 143 ip -net ${nsrouter} addr add dead:1::1/64 dev veth0 145 ip -net ${nsrouter} link set veth1 up 146 ip -net [all...] |