Home
last modified time | relevance | path

Searched refs:net (Results 201 – 225 of 3491) sorted by relevance

12345678910>>...140

/openbmc/linux/net/sctp/
H A Dendpointola.c45 struct net *net = sock_net(sk); in sctp_endpoint_init() local
52 ep->asconf_enable = net->sctp.addip_enable; in sctp_endpoint_init()
53 ep->auth_enable = net->sctp.auth_enable; in sctp_endpoint_init()
84 ep->sndbuf_policy = net->sctp.sndbuf_policy; in sctp_endpoint_init()
109 ep->ecn_enable = net->sctp.ecn_enable; in sctp_endpoint_init()
113 ep->base.net = sock_net(sk); in sctp_endpoint_init()
248 struct net *net, in sctp_endpoint_is_match() argument
255 if (net_eq(ep->base.net, net) && in sctp_endpoint_is_match()
306 struct net *net = ep->base.net; in sctp_endpoint_is_peeled_off() local
332 struct net *net; in sctp_endpoint_bh_rcv() local
[all …]
/openbmc/linux/net/openvswitch/
H A Ddatapath.h98 possible_net_t net; member
193 static inline struct net *ovs_dp_get_net(const struct datapath *dp) in ovs_dp_get_net()
195 return read_pnet(&dp->net); in ovs_dp_get_net()
198 static inline void ovs_dp_set_net(struct datapath *dp, struct net *net) in ovs_dp_set_net() argument
200 write_pnet(&dp->net, net); in ovs_dp_set_net()
224 static inline struct datapath *get_dp_rcu(struct net *net, int dp_ifindex) in get_dp_rcu() argument
226 struct net_device *dev = dev_get_by_index_rcu(net, dp_ifindex); in get_dp_rcu()
241 static inline struct datapath *get_dp(struct net *net, int dp_ifindex) in get_dp() argument
247 dp = get_dp_rcu(net, dp_ifindex); in get_dp()
265 struct sk_buff *ovs_vport_cmd_build_info(struct vport *vport, struct net *net,
/openbmc/linux/net/netfilter/
H A Dxt_owner.c23 struct net *net = par->net; in owner_check() local
32 (current_user_ns() != net->user_ns)) in owner_check()
37 kuid_t uid_min = make_kuid(net->user_ns, info->uid_min); in owner_check()
38 kuid_t uid_max = make_kuid(net->user_ns, info->uid_max); in owner_check()
49 kgid_t gid_min = make_kgid(net->user_ns, info->gid_min); in owner_check()
50 kgid_t gid_max = make_kgid(net->user_ns, info->gid_max); in owner_check()
68 struct net *net = xt_net(par); in owner_mt() local
70 if (!sk || !sk->sk_socket || !net_eq(net, sock_net(sk))) in owner_mt()
88 kuid_t uid_min = make_kuid(net->user_ns, info->uid_min); in owner_mt()
89 kuid_t uid_max = make_kuid(net->user_ns, info->uid_max); in owner_mt()
[all …]
H A Dnft_set_rbtree.c55 static bool __nft_rbtree_lookup(const struct net *net, const struct nft_set *set, in __nft_rbtree_lookup() argument
117 bool nft_rbtree_lookup(const struct net *net, const struct nft_set *set, in nft_rbtree_lookup() argument
136 static bool __nft_rbtree_get(const struct net *net, const struct nft_set *set, in __nft_rbtree_get() argument
224 static void nft_rbtree_gc_remove(struct net *net, struct nft_set *set, in nft_rbtree_gc_remove() argument
242 struct net *net = read_pnet(&set->net); in nft_rbtree_gc_elem() local
510 static void nft_rbtree_remove(const struct net *net, in nft_rbtree_remove() argument
524 static void nft_rbtree_activate(const struct net *net, in nft_rbtree_activate() argument
533 static bool nft_rbtree_flush(const struct net *net, in nft_rbtree_flush() argument
543 static void *nft_rbtree_deactivate(const struct net *net, in nft_rbtree_deactivate() argument
624 struct net *net; in nft_rbtree_gc() local
[all …]
/openbmc/linux/include/net/
H A Daddrconf.h89 int addrconf_add_ifaddr(struct net *net, void __user *arg);
90 int addrconf_del_ifaddr(struct net *net, void __user *arg);
91 int addrconf_set_dstaddr(struct net *net, void __user *arg);
93 int ipv6_chk_addr(struct net *net, const struct in6_addr *addr,
95 int ipv6_chk_addr_and_flags(struct net *net, const struct in6_addr *addr,
100 int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr);
103 int ipv6_chk_rpl_srh_loop(struct net *net, const struct in6_addr *segs,
115 struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net,
119 int ipv6_dev_get_saddr(struct net *net, const struct net_device *dev,
213 u32 ipv6_addr_label(struct net *net, const struct in6_addr *addr,
[all …]
/openbmc/linux/drivers/net/usb/
H A Dmcs7830.c367 if (net->flags & IFF_PROMISC) { in mcs7830_data_set_multicast()
372 } else if (netdev_mc_empty(net)) { in mcs7830_data_set_multicast()
383 netdev_for_each_mc_addr(ha, net) { in mcs7830_data_set_multicast()
422 mcs7830_data_set_multicast(net); in mcs7830_set_multicast()
443 usbnet_get_drvinfo(net, drvinfo); in mcs7830_get_drvinfo()
483 struct net_device *net = dev->net; in mcs7830_bind() local
496 eth_hw_addr_set(net, addr); in mcs7830_bind()
498 mcs7830_data_set_multicast(net); in mcs7830_bind()
512 dev->mii.dev = net; in mcs7830_bind()
541 dev->net->stats.rx_errors++; in mcs7830_rx_fixup()
[all …]
/openbmc/linux/net/ipv6/
H A Dseg6_iptunnel.c89 static void set_tun_src(struct net *net, struct net_device *dev, in set_tun_src() argument
110 static __be32 seg6_make_flowlabel(struct net *net, struct sk_buff *skb, in seg6_make_flowlabel() argument
131 struct net *net = dev_net(dst->dev); in seg6_do_srh_encap() local
208 struct net *net = dev_net(dst->dev); in seg6_do_srh_encap_red() local
358 struct net *net = dev_net(skb_dst(skb)->dev); in seg6_do_srh_inline() local
447 static int seg6_input_finish(struct net *net, struct sock *sk, in seg6_input_finish() argument
453 static int seg6_input_core(struct net *net, struct sock *sk, in seg6_input_core() argument
501 struct net *net = dev_net(skb->dev); in seg6_input_nf() local
523 static int seg6_output_core(struct net *net, struct sock *sk, in seg6_output_core() argument
597 static int seg6_output(struct net *net, struct sock *sk, struct sk_buff *skb) in seg6_output() argument
[all …]
H A Daddrconf.c877 struct net *net; in addrconf_fixup_forwarding() local
945 struct net *net; in addrconf_fixup_linkdown() local
1049 struct net *net = dev_net(dev); in ipv6_add_addr_hash() local
2726 struct net *net = dev_net(dev); in addrconf_prefix_rcv() local
3598 struct net *net = dev_net(dev); in addrconf_notify() local
4047 struct net *net; in addrconf_dad_begin() local
5310 struct net *net; in inet6_valid_dump_ifaddr_req() local
6334 struct net *net; in addrconf_disable_ipv6() local
6432 struct net *net = (struct net *)ctl->extra2; in addrconf_sysctl_addr_gen_mode() local
6495 struct net *net = ctl->extra2; in addrconf_sysctl_stable_secret() local
[all …]
/openbmc/linux/net/8021q/
H A Dvlanproc.h6 struct net;
8 int vlan_proc_init(struct net *net);
11 void vlan_proc_cleanup(struct net *net);
15 #define vlan_proc_init(net) (0) argument
16 #define vlan_proc_cleanup(net) do {} while (0) argument
/openbmc/linux/drivers/net/can/spi/
H A Dmcp251x.c953 close_candev(net); in mcp251x_stop()
997 struct net_device *net = priv->net; in mcp251x_tx_work_handler() local
1023 struct net_device *net = priv->net; in mcp251x_restart_work_handler() local
1062 struct net_device *net = priv->net; in mcp251x_can_ist() local
1190 net->stats.tx_bytes += can_get_echo_skb(net, 0, in mcp251x_can_ist()
1325 if (!net) in mcp251x_can_probe()
1346 priv->net = net; in mcp251x_can_probe()
1435 free_candev(net); in mcp251x_can_probe()
1444 struct net_device *net = priv->net; in mcp251x_can_remove() local
1455 free_candev(net); in mcp251x_can_remove()
[all …]
/openbmc/linux/drivers/usb/gadget/function/
H A Du_ether.h128 int gether_register_netdev(struct net_device *net);
151 void gether_set_gadget(struct net_device *net, struct usb_gadget *g);
162 int gether_set_dev_addr(struct net_device *net, const char *dev_addr);
173 int gether_get_dev_addr(struct net_device *net, char *dev_addr, int len);
184 int gether_set_host_addr(struct net_device *net, const char *host_addr);
195 int gether_get_host_addr(struct net_device *net, char *host_addr, int len);
217 void gether_get_host_addr_u8(struct net_device *net, u8 host_mac[ETH_ALEN]);
227 void gether_set_qmult(struct net_device *net, unsigned qmult);
235 unsigned gether_get_qmult(struct net_device *net);
246 int gether_get_ifname(struct net_device *net, char *name, int len);
[all …]
/openbmc/linux/include/net/netfilter/
H A Dnf_flow_table.h60 int (*action)(struct net *net,
85 possible_net_t net; member
328 int nf_flow_rule_route_ipv4(struct net *net, struct flow_offload *flow,
331 int nf_flow_rule_route_ipv6(struct net *net, struct flow_offload *flow,
364 #define NF_FLOW_TABLE_STAT_INC(net, count) __this_cpu_inc((net)->ft.stat->count) argument
365 #define NF_FLOW_TABLE_STAT_DEC(net, count) __this_cpu_dec((net)->ft.stat->count) argument
367 this_cpu_inc((net)->ft.stat->count)
372 int nf_flow_table_init_proc(struct net *net);
373 void nf_flow_table_fini_proc(struct net *net);
375 static inline int nf_flow_table_init_proc(struct net *net) in nf_flow_table_init_proc() argument
[all …]
/openbmc/linux/net/phonet/
H A Dpn_dev.c36 static struct phonet_net *phonet_pernet(struct net *net) in phonet_pernet() argument
38 return net_generic(net, phonet_net_id); in phonet_pernet()
41 struct phonet_device_list *phonet_device_list(struct net *net) in phonet_device_list() argument
43 struct phonet_net *pnn = phonet_pernet(net); in phonet_device_list()
109 struct net_device *phonet_device_get(struct net *net) in phonet_device_get() argument
206 int phonet_address_lookup(struct net *net, u8 addr) in phonet_address_lookup() argument
303 static int __net_init phonet_init_net(struct net *net) in phonet_init_net() argument
317 static void __net_exit phonet_exit_net(struct net *net) in phonet_exit_net() argument
321 remove_proc_entry("phonet", net->proc_net); in phonet_exit_net()
393 struct net_device *phonet_route_get_rcu(struct net *net, u8 daddr) in phonet_route_get_rcu() argument
[all …]
/openbmc/linux/tools/testing/selftests/netfilter/
H A Dnft_nat_zones.sh91 ip -net "$gw" link set lo up
102 ip -net "$gw" link set veth0 up
103 ip -net "$srv" link set lo up
104 ip -net "$srv" link set eth0 up
106 sysctl -q net.ipv6.neigh.default.gc_thresh1=512 2>/dev/null
107 sysctl -q net.ipv6.neigh.default.gc_thresh2=1024 2>/dev/null
108 sysctl -q net.ipv6.neigh.default.gc_thresh3=4096 2>/dev/null
155 ip -net "$gw" addr add 10.3.0.1/24 dev veth0
156 ip -net "$gw" addr add dead:3::1/64 dev veth0
158 ip -net "$srv" addr add 10.3.0.99/24 dev eth0
[all …]
H A Dbridge_brouter.sh37 ip -net ns0 link set lo up
38 ip -net ns0 link set veth0 up
39 ip -net ns0 link set veth1 up
41 ip -net ns0 link add br0 type bridge
47 ip -net ns0 link set veth0 master br0
48 ip -net ns0 link set veth1 master br0
49 ip -net ns0 link set br0 up
50 ip -net ns0 addr add 10.0.0.1/24 dev br0
54 ip -net ns$i link set lo up
55 ip -net ns$i link set eth0 up
[all …]
/openbmc/linux/include/net/netfilter/ipv6/
H A Dnf_reject.h8 void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, unsigned char code,
10 void nf_send_reset6(struct net *net, struct sock *sk, struct sk_buff *oldskb,
22 struct sk_buff *nf_reject_skb_v6_tcp_reset(struct net *net,
26 struct sk_buff *nf_reject_skb_v6_unreach(struct net *net,
/openbmc/linux/fs/nfsd/
H A Dnfs4recover.c505 nfsd4_recdir_load(struct net *net) { in nfsd4_recdir_load() argument
524 nfsd4_init_recdir(struct net *net) in nfsd4_init_recdir() argument
558 nfsd4_shutdown_recdir(struct net *net) in nfsd4_shutdown_recdir() argument
569 nfs4_legacy_state_init(struct net *net) in nfs4_legacy_state_init() argument
982 __nfsd4_init_cld_pipe(struct net *net) in __nfsd4_init_cld_pipe() argument
1027 nfsd4_init_cld_pipe(struct net *net) in nfsd4_init_cld_pipe() argument
1038 nfsd4_remove_cld_pipe(struct net *net) in nfsd4_remove_cld_pipe() argument
1475 nfs4_cld_state_init(struct net *net) in nfs4_cld_state_init() argument
1496 nfs4_cld_state_shutdown(struct net *net) in nfs4_cld_state_shutdown() argument
1853 nfsd4_umh_cltrack_init(struct net *net) in nfsd4_umh_cltrack_init() argument
[all …]
/openbmc/linux/net/ipv4/netfilter/
H A Diptable_security.c38 static int iptable_security_table_init(struct net *net) in iptable_security_table_init() argument
46 ret = ipt_register_table(net, &security_table, repl, sectbl_ops); in iptable_security_table_init()
51 static void __net_exit iptable_security_net_pre_exit(struct net *net) in iptable_security_net_pre_exit() argument
53 ipt_unregister_table_pre_exit(net, "security"); in iptable_security_net_pre_exit()
56 static void __net_exit iptable_security_net_exit(struct net *net) in iptable_security_net_exit() argument
58 ipt_unregister_table_exit(net, "security"); in iptable_security_net_exit()
H A Darptable_filter.c31 static int arptable_filter_table_init(struct net *net) in arptable_filter_table_init() argument
39 err = arpt_register_table(net, &packet_filter, repl, arpfilter_ops); in arptable_filter_table_init()
44 static void __net_exit arptable_filter_net_pre_exit(struct net *net) in arptable_filter_net_pre_exit() argument
46 arpt_unregister_table_pre_exit(net, "filter"); in arptable_filter_net_pre_exit()
49 static void __net_exit arptable_filter_net_exit(struct net *net) in arptable_filter_net_exit() argument
51 arpt_unregister_table(net, "filter"); in arptable_filter_net_exit()
H A Dipt_SYNPROXY.c16 struct net *net = xt_net(par); in synproxy_tg4() local
17 struct synproxy_net *snet = synproxy_pernet(net); in synproxy_tg4()
48 synproxy_send_client_synack(net, skb, th, &opts); in synproxy_tg4()
53 if (synproxy_recv_client_ack(net, skb, th, &opts, ntohl(th->seq))) { in synproxy_tg4()
66 struct synproxy_net *snet = synproxy_pernet(par->net); in synproxy_tg4_check()
74 err = nf_ct_netns_get(par->net, par->family); in synproxy_tg4_check()
78 err = nf_synproxy_ipv4_init(snet, par->net); in synproxy_tg4_check()
80 nf_ct_netns_put(par->net, par->family); in synproxy_tg4_check()
89 struct synproxy_net *snet = synproxy_pernet(par->net); in synproxy_tg4_destroy()
91 nf_synproxy_ipv4_fini(snet, par->net); in synproxy_tg4_destroy()
[all …]
/openbmc/linux/net/ipv6/netfilter/
H A Dip6table_security.c37 static int ip6table_security_table_init(struct net *net) in ip6table_security_table_init() argument
45 ret = ip6t_register_table(net, &security_table, repl, sectbl_ops); in ip6table_security_table_init()
50 static void __net_exit ip6table_security_net_pre_exit(struct net *net) in ip6table_security_net_pre_exit() argument
52 ip6t_unregister_table_pre_exit(net, "security"); in ip6table_security_net_pre_exit()
55 static void __net_exit ip6table_security_net_exit(struct net *net) in ip6table_security_net_exit() argument
57 ip6t_unregister_table_exit(net, "security"); in ip6table_security_net_exit()
/openbmc/linux/net/tipc/
H A Dtopsrv.c71 struct net *net; member
116 static void tipc_topsrv_kern_evt(struct net *net, struct tipc_event *evt);
314 void tipc_topsrv_queue_evt(struct net *net, int conid, in tipc_topsrv_queue_evt() argument
573 bool tipc_topsrv_kern_subscr(struct net *net, u32 port, u32 type, u32 lower, in tipc_topsrv_kern_subscr() argument
600 void tipc_topsrv_kern_unsubscr(struct net *net, int conid) in tipc_topsrv_kern_unsubscr() argument
614 static void tipc_topsrv_kern_evt(struct net *net, struct tipc_event *evt) in tipc_topsrv_kern_evt() argument
657 static int tipc_topsrv_start(struct net *net) in tipc_topsrv_start() argument
668 srv->net = net; in tipc_topsrv_start()
696 static void tipc_topsrv_stop(struct net *net) in tipc_topsrv_stop() argument
723 int __net_init tipc_topsrv_init_net(struct net *net) in tipc_topsrv_init_net() argument
[all …]
/openbmc/linux/net/ipv4/
H A Dipmr_base.c32 mr_table_alloc(struct net *net, u32 id, in mr_table_alloc() argument
36 struct net *net)) in mr_table_alloc()
45 write_pnet(&mrt->net, net); in mr_table_alloc()
131 struct net *net = seq_file_net(seq); in mr_vif_seq_next() local
147 void *mr_mfc_seq_idx(struct net *net, in mr_mfc_seq_idx() argument
176 struct net *net = seq_file_net(seq); in mr_mfc_seq_next() local
354 struct mr_table *(*iter)(struct net *net, in mr_rtm_dumproute() argument
363 struct net *net = sock_net(skb->sk); in mr_rtm_dumproute() local
377 for (mrt = iter(net, NULL); mrt; mrt = iter(net, mrt)) { in mr_rtm_dumproute()
397 int (*rules_dump)(struct net *net, in mr_dump() argument
[all …]
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-webadmin/webmin/files/
H A Dnet-lib.pl.patch7 diff -Nru webmin-1.570.orig//net/net-lib.pl webmin-1.570/net/net-lib.pl
8 --- webmin-1.570.orig//net/net-lib.pl 2011-10-03 09:01:48.000000000 +0800
9 +++ webmin-1.570/net/net-lib.pl 2011-10-28 13:52:56.138873664 +0800
/openbmc/linux/fs/nfs/
H A Ddns_resolve.c20 ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen, in nfs_dns_resolve_name() argument
31 ret = rpc_pton(net, ip_addr, ip_len, sa, salen); in nfs_dns_resolve_name()
244 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse()
342 ssize_t nfs_dns_resolve_name(struct net *net, char *name, in nfs_dns_resolve_name() argument
382 int nfs_dns_resolver_cache_init(struct net *net) in nfs_dns_resolver_cache_init() argument
401 void nfs_dns_resolver_cache_destroy(struct net *net) in nfs_dns_resolver_cache_destroy() argument
409 static int nfs4_dns_net_init(struct net *net) in nfs4_dns_net_init() argument
411 return nfs_dns_resolver_cache_init(net); in nfs4_dns_net_init()
414 static void nfs4_dns_net_exit(struct net *net) in nfs4_dns_net_exit() argument
416 nfs_dns_resolver_cache_destroy(net); in nfs4_dns_net_exit()
[all …]

12345678910>>...140