Home
last modified time | relevance | path

Searched full:net (Results 1 – 25 of 3588) sorted by relevance

12345678910>>...144

/linux/include/net/
H A Dnet_namespace.h15 #include <net/flow.h>
16 #include <net/netns/core.h>
17 #include <net/netns/mib.h>
18 #include <net/netns/unix.h>
19 #include <net/netns/packet.h>
20 #include <net/netns/ipv4.h>
21 #include <net/netns/ipv6.h>
22 #include <net/netns/nexthop.h>
23 #include <net/netns/ieee802154_6lowpan.h>
24 #include <net/netns/sctp.h>
[all …]
H A Dip6_fib.h16 #include <net/dst.h>
17 #include <net/flow.h>
18 #include <net/ip_fib.h>
19 #include <net/netlink.h>
20 #include <net/inetpeer.h>
21 #include <net/fib_notifier.h>
91 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
96 static inline void fib6_routes_require_src_inc(struct net *net) {} in fib6_routes_require_src_inc() argument
97 static inline void fib6_routes_require_src_dec(struct net *net) {} in fib6_routes_require_src_dec() argument
101 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
[all …]
H A Dwext.h5 #include <net/iw_handler.h>
7 struct net;
10 int wext_handle_ioctl(struct net *net, unsigned int cmd,
12 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
18 static inline int wext_handle_ioctl(struct net *net, unsigned int cmd, in wext_handle_ioctl() argument
23 static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl() argument
31 int wext_proc_init(struct net *net);
32 void wext_proc_exit(struct net *net);
34 static inline int wext_proc_init(struct net *net) in wext_proc_init() argument
38 static inline void wext_proc_exit(struct net *net) in wext_proc_exit() argument
/linux/net/tipc/
H A Dbcast.h2 * net/tipc/bcast.h: Include file for TIPC broadcast code
81 int tipc_bcast_init(struct net *net);
82 void tipc_bcast_stop(struct net *net);
83 void tipc_bcast_add_peer(struct net *net, struct tipc_link *l,
85 void tipc_bcast_remove_peer(struct net *net, struct tipc_link *rcv_bcl);
86 void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id);
87 void tipc_bcast_dec_bearer_dst_cnt(struct net *net, int bearer_id);
88 int tipc_bcast_get_mtu(struct net *net);
89 void tipc_bcast_toggle_rcast(struct net *net, bool supp);
90 int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts,
[all …]
H A Dbcast.c2 * net/tipc/bcast.c: TIPC broadcast code
77 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base() argument
79 return tipc_net(net)->bcbase; in tipc_bc_base()
86 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu() argument
88 return tipc_link_mss(tipc_bc_sndlink(net)); in tipc_bcast_get_mtu()
91 void tipc_bcast_toggle_rcast(struct net *net, bool supp) in tipc_bcast_toggle_rcast() argument
93 tipc_bc_base(net)->rcast_support = supp; in tipc_bcast_toggle_rcast()
96 static void tipc_bcbase_calc_bc_threshold(struct net *net) in tipc_bcbase_calc_bc_threshold() argument
98 struct tipc_bc_base *bb = tipc_bc_base(net); in tipc_bcbase_calc_bc_threshold()
99 int cluster_size = tipc_link_bc_peers(tipc_bc_sndlink(net)); in tipc_bcbase_calc_bc_threshold()
[all …]
H A Dnode.h2 * net/tipc/node.h: Include file for TIPC node management routines
41 #include "net.h"
77 void tipc_node_stop(struct net *net);
78 bool tipc_node_get_id(struct net *net, u32 addr, u8 *id);
83 struct tipc_node *tipc_node_create(struct net *net, u32 addr, u8 *peer_id,
89 struct tipc_crypto *tipc_node_crypto_rx_by_addr(struct net *net, u32 addr);
91 u32 tipc_node_try_addr(struct net *net, u8 *id, u32 addr);
92 void tipc_node_check_dest(struct net *net, u32 onode, u8 *peer_id128,
97 void tipc_node_delete_links(struct net *net, int bearer_id);
98 void tipc_node_apply_property(struct net *net, struct tipc_bearer *b, int prop);
[all …]
H A Dmonitor.h2 * net/tipc/monitor.h
60 int tipc_mon_create(struct net *net, int bearer_id);
61 void tipc_mon_delete(struct net *net, int bearer_id);
63 void tipc_mon_peer_up(struct net *net, u32 addr, int bearer_id);
64 void tipc_mon_peer_down(struct net *net, u32 addr, int bearer_id);
65 void tipc_mon_prep(struct net *net, void *data, int *dlen,
67 void tipc_mon_rcv(struct net *net, void *data, u16 dlen, u32 addr,
69 void tipc_mon_get_state(struct net *net, u32 addr,
72 void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id);
74 int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size);
[all …]
/linux/net/core/
H A Dnet_namespace.c25 #include <net/aligned_data.h>
26 #include <net/sock.h>
27 #include <net/netlink.h>
28 #include <net/net_namespace.h>
29 #include <net/netns/generic.h>
49 struct net init_net;
56 * This is internal net namespace object. Please, don't use it
83 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic() argument
89 old_ng = rcu_dereference_protected(net->gen, in net_assign_generic()
103 * The net_generic explores the net->gen array inside rcu in net_assign_generic()
[all …]
/linux/include/linux/
H A Drtnetlink.h12 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, in rtnetlink_maybe_send() argument
17 return !skb ? 0 : rtnetlink_send(skb, net, pid, group, echo); in rtnetlink_maybe_send()
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 *net, u32 group, int error);
101 void __rtnl_net_lock(struct net *net);
102 void __rtnl_net_unlock(struct net *net);
103 void rtnl_net_lock(struct net *net);
104 void rtnl_net_unlock(struct net *net);
[all …]
H A Dnetfilter.h7 #include <linux/net.h>
18 #include <net/net_namespace.h>
84 struct net *net; member
85 int (*okfn)(struct net *, struct sock *, struct sk_buff *);
167 struct net *net, in nf_hook_state_init() argument
168 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init() argument
175 p->net = net; in nf_hook_state_init()
199 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *ops);
200 void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *ops);
201 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg,
[all …]
/linux/kernel/bpf/
H A Dnet_namespace.c6 #include <net/net_namespace.h>
15 /* We don't hold a ref to net in order to auto-detach the link
20 struct net *net; member
21 struct list_head node; /* node in list of links attached to net */
55 static void netns_bpf_run_array_detach(struct net *net, in netns_bpf_run_array_detach() argument
60 run_array = rcu_replace_pointer(net->bpf.run_array[type], NULL, in netns_bpf_run_array_detach()
65 static int link_index(struct net *net, enum netns_bpf_attach_type type, in link_index() argument
71 list_for_each_entry(pos, &net->bpf.links[type], node) { in link_index()
79 static int link_count(struct net *net, enum netns_bpf_attach_type type) in link_count() argument
84 list_for_each(pos, &net->bpf.links[type]) in link_count()
[all …]
/linux/tools/testing/selftests/net/
H A Dbig_tcp.sh31 ip -net $ROUTER_NS link add link1 type veth peer name link0 netns $CLIENT_NS
32 ip -net $ROUTER_NS link add link2 type veth peer name link3 netns $SERVER_NS
34 ip -net $CLIENT_NS link set link0 up
35 ip -net $CLIENT_NS link set link0 mtu 1442
36 ip -net $CLIENT_NS addr add $CLIENT_IP4/24 dev link0
37 ip -net $CLIENT_NS addr add $CLIENT_IP6/64 dev link0 nodad
38 ip -net $CLIENT_NS route add $SERVER_IP4 dev link0 via $CLIENT_GW4
39 ip -net $CLIENT_NS route add $SERVER_IP6 dev link0 via $CLIENT_GW6
40 ip -net $CLIENT_NS link set dev link0 \
42 ip -net $CLIENT_NS link set dev link0 \
[all …]
/linux/fs/afs/
H A Dmain.c65 static int __net_init afs_net_init(struct net *net_ns) in afs_net_init()
68 struct afs_net *net = afs_net(net_ns); in afs_net_init() local
71 net->net = net_ns; in afs_net_init()
72 net->live = true; in afs_net_init()
73 generate_random_uuid((unsigned char *)&net->uuid); in afs_net_init()
75 INIT_WORK(&net->charge_preallocation_work, afs_charge_preallocation); in afs_net_init()
76 INIT_WORK(&net->rx_oob_work, afs_process_oob_queue); in afs_net_init()
77 mutex_init(&net->socket_mutex); in afs_net_init()
79 net->cells = RB_ROOT; in afs_net_init()
80 idr_init(&net->cells_dyn_ino); in afs_net_init()
[all …]
/linux/include/net/netfilter/
H A Dnf_synproxy.h7 #include <net/ip6_checksum.h>
8 #include <net/ip6_route.h>
9 #include <net/tcp.h>
11 #include <net/netfilter/nf_conntrack_seqadj.h>
12 #include <net/netfilter/nf_conntrack_synproxy.h>
30 static inline struct synproxy_net *synproxy_pernet(struct net *net) in synproxy_pernet() argument
32 return net_generic(net, synproxy_net_id); in synproxy_pernet()
52 void synproxy_send_client_synack(struct net *net, const struct sk_buff *skb,
56 bool synproxy_recv_client_ack(struct net *net,
65 int nf_synproxy_ipv4_init(struct synproxy_net *snet, struct net *net);
[all …]
/linux/net/xfrm/
H A Dxfrm_sysctl.c4 #include <net/net_namespace.h>
5 #include <net/xfrm.h>
7 static void __net_init __xfrm_sysctl_init(struct net *net) in __xfrm_sysctl_init() argument
9 net->xfrm.sysctl_aevent_etime = XFRM_AE_ETIME; in __xfrm_sysctl_init()
10 net->xfrm.sysctl_aevent_rseqth = XFRM_AE_SEQT_SIZE; in __xfrm_sysctl_init()
11 net->xfrm.sysctl_larval_drop = 1; in __xfrm_sysctl_init()
12 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
48 __xfrm_sysctl_init(net); in xfrm_sysctl_init()
53 table[0].data = &net->xfrm.sysctl_aevent_etime; in xfrm_sysctl_init()
[all …]
H A Dxfrm_policy.c33 #include <net/dst.h>
34 #include <net/flow.h>
35 #include <net/inet_ecn.h>
36 #include <net/xfrm.h>
37 #include <net/ip.h>
38 #include <net/gre.h>
40 #include <net/mip6.h>
43 #include <net/snmp.h>
46 #include <net/espintcp.h>
48 #include <net/inet_dsc
121 possible_net_t net; global() member
298 struct net *net = xs_net(x); xfrm_dst_lookup() local
428 xfrm_policy_alloc(struct net * net,gfp_t gfp) xfrm_policy_alloc() argument
479 struct net *net = xp_net(policy); xfrm_policy_kill() local
509 idx_hash(struct net * net,u32 index) idx_hash() argument
515 __get_hash_thresh(struct net * net,unsigned short family,int dir,u8 * dbits,u8 * sbits) __get_hash_thresh() argument
536 policy_hash_bysel(struct net * net,const struct xfrm_selector * sel,unsigned short family,int dir) policy_hash_bysel() argument
555 policy_hash_direct(struct net * net,const xfrm_address_t * daddr,const xfrm_address_t * saddr,unsigned short family,int dir) policy_hash_direct() argument
572 xfrm_dst_hash_transfer(struct net * net,struct hlist_head * list,struct hlist_head * ndsttable,unsigned int nhashmask,int dir) xfrm_dst_hash_transfer() argument
629 xfrm_bydst_resize(struct net * net,int dir) xfrm_bydst_resize() argument
661 xfrm_byidx_resize(struct net * net) xfrm_byidx_resize() argument
686 xfrm_bydst_should_resize(struct net * net,int dir,int * total) xfrm_bydst_should_resize() argument
701 xfrm_byidx_should_resize(struct net * net,int total) xfrm_byidx_should_resize() argument
712 xfrm_spd_getinfo(struct net * net,struct xfrmk_spdinfo * si) xfrm_spd_getinfo() argument
728 struct net *net = container_of(work, struct net, xfrm.policy_hash_work); xfrm_hash_resize() local
758 struct net *net = xp_net(pol); xfrm_policy_inexact_alloc_bin() local
892 xfrm_policy_inexact_list_reinsert(struct net * net,struct xfrm_pol_inexact_node * n,u16 family) xfrm_policy_inexact_list_reinsert() argument
955 xfrm_policy_inexact_node_reinsert(struct net * net,struct xfrm_pol_inexact_node * n,struct rb_root * new,u16 family) xfrm_policy_inexact_node_reinsert() argument
1013 xfrm_policy_inexact_node_merge(struct net * net,struct xfrm_pol_inexact_node * v,struct xfrm_pol_inexact_node * n,u16 family) xfrm_policy_inexact_node_merge() argument
1042 xfrm_policy_inexact_insert_node(struct net * net,struct rb_root * root,xfrm_address_t * addr,u16 family,u8 prefixlen,u8 dir) xfrm_policy_inexact_insert_node() argument
1161 struct net *net = read_pnet(&b->k.net); xfrm_policy_inexact_prune_bin() local
1168 __xfrm_policy_inexact_flush(struct net * net) __xfrm_policy_inexact_flush() argument
1183 struct net *net; xfrm_policy_inexact_alloc_chain() local
1244 struct net *net; xfrm_policy_inexact_insert() local
1284 struct net *net = container_of(work, struct net, xfrm_hash_rebuild() local
1405 xfrm_policy_hash_rebuild(struct net * net) xfrm_policy_hash_rebuild() argument
1413 xfrm_gen_index(struct net * net,int dir,u32 index) xfrm_gen_index() argument
1580 struct net *net = xp_net(policy); xfrm_policy_insert() local
1651 xfrm_policy_bysel_ctx(struct net * net,const struct xfrm_mark * mark,u32 if_id,u8 type,int dir,struct xfrm_selector * sel,struct xfrm_sec_ctx * ctx,int delete,int * err) xfrm_policy_bysel_ctx() argument
1721 xfrm_policy_byid(struct net * net,const struct xfrm_mark * mark,u32 if_id,u8 type,int dir,u32 id,int delete,int * err) xfrm_policy_byid() argument
1762 xfrm_policy_flush_secctx_check(struct net * net,u8 type,bool task_valid) xfrm_policy_flush_secctx_check() argument
1782 xfrm_dev_policy_flush_secctx_check(struct net * net,struct net_device * dev,bool task_valid) xfrm_dev_policy_flush_secctx_check() argument
1805 xfrm_policy_flush_secctx_check(struct net * net,u8 type,bool task_valid) xfrm_policy_flush_secctx_check() argument
1810 xfrm_dev_policy_flush_secctx_check(struct net * net,struct net_device * dev,bool task_valid) xfrm_dev_policy_flush_secctx_check() argument
1818 xfrm_policy_flush(struct net * net,u8 type,bool task_valid) xfrm_policy_flush() argument
1857 xfrm_dev_policy_flush(struct net * net,struct net_device * dev,bool task_valid) xfrm_dev_policy_flush() argument
1897 xfrm_policy_walk(struct net * net,struct xfrm_policy_walk * walk,int (* func)(struct xfrm_policy *,int,int,void *),void * data) xfrm_policy_walk() argument
1954 xfrm_policy_walk_done(struct xfrm_policy_walk * walk,struct net * net) xfrm_policy_walk_done() argument
2062 xfrm_policy_inexact_lookup_rcu(struct net * net,u8 type,u16 family,u8 dir,u32 if_id) xfrm_policy_inexact_lookup_rcu() argument
2079 xfrm_policy_inexact_lookup(struct net * net,u8 type,u16 family,u8 dir,u32 if_id) xfrm_policy_inexact_lookup() argument
2156 xfrm_policy_lookup_bytype(struct net * net,u8 type,const struct flowi * fl,u16 family,u8 dir,u32 if_id) xfrm_policy_lookup_bytype() argument
2224 xfrm_policy_lookup(struct net * net,const struct flowi * fl,u16 family,u8 dir,u32 if_id) xfrm_policy_lookup() argument
2283 xfrm_gen_pos_slow(struct net * net) xfrm_gen_pos_slow() argument
2297 xfrm_gen_pos(struct net * net) xfrm_gen_pos() argument
2319 struct net *net = xp_net(pol); __xfrm_policy_link() local
2337 struct net *net = xp_net(pol); __xfrm_policy_unlink() local
2366 struct net *net = xp_net(pol); xfrm_policy_delete() local
2381 struct net *net = sock_net(sk); xfrm_sk_policy_insert() local
2418 struct net *net = xp_net(old); clone_policy() local
2489 struct net *net = xp_net(policy); xfrm_tmpl_resolve_one() local
2602 xfrm_alloc_dst(struct net * net,int family) xfrm_alloc_dst() argument
2675 struct net *net = xp_net(policy); xfrm_bundle_create() local
2863 struct net *net = xp_net(pols[0]); xfrm_resolve_and_create_bundle() local
2902 struct net *net = xp_net(pol); xfrm_policy_queue_process() local
2983 xdst_queue_output(struct net * net,struct sock * sk,struct sk_buff * skb) xdst_queue_output() argument
3025 xfrm_create_dummy_bundle(struct net * net,struct xfrm_flo * xflo,const struct flowi * fl,int num_xfrms,u16 family) xfrm_create_dummy_bundle() argument
3084 xfrm_bundle_lookup(struct net * net,const struct flowi * fl,u16 family,u8 dir,struct xfrm_flo * xflo,u32 if_id) xfrm_bundle_lookup() argument
3147 make_blackhole(struct net * net,u16 family,struct dst_entry * dst_orig) make_blackhole() argument
3172 xfrm_lookup_with_ifid(struct net * net,struct dst_entry * dst_orig,const struct flowi * fl,const struct sock * sk,int flags,u32 if_id) xfrm_lookup_with_ifid() argument
3332 xfrm_lookup(struct net * net,struct dst_entry * dst_orig,const struct flowi * fl,const struct sock * sk,int flags) xfrm_lookup() argument
3343 xfrm_lookup_route(struct net * net,struct dst_entry * dst_orig,const struct flowi * fl,const struct sock * sk,int flags) xfrm_lookup_route() argument
3502 __xfrm_decode_session(struct net * net,struct sk_buff * skb,struct flowi * fl,unsigned int family,int reverse) __xfrm_decode_session() argument
3633 struct net *net = dev_net(skb->dev); xfrm_in_fwd_icmp() local
3651 struct net *net = dev_net(skb->dev); xfrm_out_fwd_icmp() local
3679 struct net *net = dev_net(skb->dev); __xfrm_policy_check() local
3880 struct net *net = dev_net(skb->dev); __xfrm_route_forward() local
4190 xfrm_statistics_init(struct net * net) xfrm_statistics_init() argument
4202 xfrm_statistics_fini(struct net * net) xfrm_statistics_fini() argument
4208 xfrm_statistics_init(struct net * net) xfrm_statistics_init() argument
4213 xfrm_statistics_fini(struct net * net) xfrm_statistics_fini() argument
4218 xfrm_policy_init(struct net * net) xfrm_policy_init() argument
4279 xfrm_net_pre_exit(struct net * net) xfrm_net_pre_exit() argument
4289 xfrm_policy_fini(struct net * net) xfrm_policy_fini() argument
4316 xfrm_net_init(struct net * net) xfrm_net_init() argument
4360 xfrm_net_exit(struct net * net) xfrm_net_exit() argument
4495 xfrm_migrate_policy_find(const struct xfrm_selector * sel,u8 dir,u8 type,struct net * net,u32 if_id) xfrm_migrate_policy_find() argument
4649 xfrm_migrate(const struct xfrm_selector * sel,u8 dir,u8 type,struct xfrm_migrate * m,int num_migrate,struct xfrm_kmaddress * k,struct net * net,struct xfrm_encap_tmpl * encap,u32 if_id,struct netlink_ext_ack * extack,struct xfrm_user_offload * xuo) xfrm_migrate() argument
[all...]
/linux/net/can/
H A Dproc.c79 static void can_init_stats(struct net *net) in can_init_stats() argument
81 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_init_stats()
82 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_init_stats()
117 struct net *net = timer_container_of(net, t, can.stattimer); in can_stat_update() local
118 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_stat_update()
130 can_init_stats(net); in can_stat_update()
134 can_init_stats(net); in can_stat_update()
138 can_init_stats(net); in can_stat_update()
142 can_init_stats(net); in can_stat_update()
146 can_init_stats(net); in can_stat_update()
[all …]
/linux/drivers/net/wireless/
H A DKconfig9 depends on NET
21 source "drivers/net/wireless/admtek/Kconfig"
22 source "drivers/net/wireless/ath/Kconfig"
23 source "drivers/net/wireless/atmel/Kconfig"
24 source "drivers/net/wireless/broadcom/Kconfig"
25 source "drivers/net/wireless/intel/Kconfig"
26 source "drivers/net/wireless/intersil/Kconfig"
27 source "drivers/net/wireless/marvell/Kconfig"
28 source "drivers/net/wireless/mediatek/Kconfig"
29 source "drivers/net/wireless/microchip/Kconfig"
[all …]
/linux/fs/nfs_common/
H A Dgrace.c9 #include <net/net_namespace.h>
10 #include <net/netns/generic.h>
19 * @net: net namespace that this lock manager belongs to
30 locks_start_grace(struct net *net, struct lock_manager *lm) in locks_start_grace() argument
32 struct list_head *grace_list = net_generic(net, grace_net_id); in locks_start_grace()
38 WARN(1, "double list_add attempt detected in net %x %s\n", in locks_start_grace()
39 net->ns.inum, (net == &init_net) ? "(init_net)" : ""); in locks_start_grace()
64 __state_in_grace(struct net *net, bool open) in __state_in_grace() argument
66 struct list_head *grace_list = net_generic(net, grace_net_id); in __state_in_grace()
85 * @net: network namespace
[all …]
/linux/drivers/net/usb/
H A Dsmsc75xx.c90 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in __smsc75xx_read_reg()
122 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc75xx_write_reg()
164 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc75xx_phy_wait_not_busy()
187 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); in __smsc75xx_mdio_read()
199 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_read()
205 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc75xx_mdio_read()
211 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc75xx_mdio_read()
234 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); in __smsc75xx_mdio_write()
241 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc75xx_mdio_write()
253 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_write()
[all …]
/linux/net/ipv6/
H A Dsysctl_net_ipv6.c3 * sysctl_net_ipv6.c: sysctl interface to net IPV6 subsystem.
15 #include <net/ndisc.h>
16 #include <net/ipv6.h>
17 #include <net/addrconf.h>
18 #include <net/inet_frag.h>
19 #include <net/netevent.h>
20 #include <net/ip_fib.h>
22 #include <net/calipso.h>
36 struct net *net; in proc_rt6_multipath_hash_policy() local
39 net = container_of(table->data, struct net, in proc_rt6_multipath_hash_policy()
[all …]
/linux/tools/testing/selftests/net/packetdrill/
H A Ddefaults.sh10 sysctl -q net.ipv4.tcp_rmem="4096 540000 $((15*1024*1024))"
11 sysctl -q net.ipv4.tcp_wmem="4096 $((256*1024)) 4194304"
14 sysctl -q net.ipv4.tcp_timestamps=1
17 sysctl -q net.ipv4.tcp_syn_retries=5
18 sysctl -q net.ipv4.tcp_synack_retries=5
21 sysctl -q net.ipv4.tcp_frto=2
24 sysctl -q net.ipv4.tcp_sack=1
27 sysctl -q net.ipv4.tcp_dsack=1
30 sysctl -q net.ipv4.tcp_fack=0
33 sysctl -q net
[all...]
/linux/net/netfilter/
H A Dnf_log.c9 #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) in nf_log_set() argument
49 if (pf == NFPROTO_UNSPEC || pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_set()
53 log = nft_log_dereference(net->nf.nf_loggers[pf]); in nf_log_set()
55 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_set()
63 void nf_log_unset(struct net *net, const struct nf_logger *logger) in nf_log_unset() argument
70 log = nft_log_dereference(net->nf.nf_loggers[i]); in nf_log_unset()
72 RCU_INIT_POINTER(net->nf.nf_loggers[i], NULL); in nf_log_unset()
154 int nf_log_bind_pf(struct net *net, u_int8_t pf, in nf_log_bind_pf() argument
[all …]
/linux/net/
H A Dsysctl_net.c3 * sysctl_net.c: sysctl interface to net subsystem.
6 * Added /proc/sys/net directories for each protocol family. [MS]
20 #include <net/sock.h>
23 #include <net/ip.h>
45 struct net *net = container_of(head->set, struct net, sysctls); in net_ctl_permissions() local
48 if (ns_capable_noaudit(net->user_ns, CAP_NET_ADMIN)) { in net_ctl_permissions()
59 struct net *net = container_of(head->set, struct net, sysctls); in net_ctl_set_ownership() local
63 ns_root_uid = make_kuid(net->user_ns, 0); in net_ctl_set_ownership()
67 ns_root_gid = make_kgid(net->user_ns, 0); in net_ctl_set_ownership()
78 static int __net_init sysctl_net_init(struct net *net) in sysctl_net_init() argument
[all …]
/linux/net/ipv6/netfilter/
H A Dip6table_nat.c3 * Copyright (c) 2011 Patrick McHardy <kaber@trash.net>
14 #include <net/ipv6.h>
16 #include <net/netfilter/nf_nat.h>
61 static int ip6t_nat_register_lookups(struct net *net) in ip6t_nat_register_lookups() argument
68 table = xt_find_table(net, NFPROTO_IPV6, "nat"); in ip6t_nat_register_lookups()
72 xt_nat_net = net_generic(net, ip6table_nat_net_id); in ip6t_nat_register_lookups()
79 ret = nf_nat_ipv6_register_fn(net, &ops[i]); in ip6t_nat_register_lookups()
82 nf_nat_ipv6_unregister_fn(net, &ops[--i]); in ip6t_nat_register_lookups()
93 static void ip6t_nat_unregister_lookups(struct net *net) in ip6t_nat_unregister_lookups() argument
95 struct ip6table_nat_pernet *xt_nat_net = net_generic(net, ip6table_nat_net_id); in ip6t_nat_unregister_lookups()
[all …]

12345678910>>...144