/net/netfilter/ |
H A D | nf_conntrack_proto_udp.c | 3 * (C) 2006-2012 Patrick McHardy <kaber@trash.net> 17 #include <net/ip6_checksum.h> 18 #include <net/checksum.h> 23 #include <net/netfilter/nf_conntrack_l4proto.h> 24 #include <net/netfilter/nf_conntrack_ecache.h> 25 #include <net/netfilter/nf_log.h> 26 #include <net/netfilter/ipv4/nf_conntrack_ipv4.h> 27 #include <net/netfilter/ipv6/nf_conntrack_ipv6.h> 34 static inline struct nf_udp_net *udp_pernet(struct net *net) argument 74 udp_get_timeouts(struct net *net) argument 110 udp_error(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, unsigned int dataoff, enum ip_conntrack_info *ctinfo, u_int8_t pf, unsigned int hooknum) argument 160 udp_timeout_nlattr_to_obj(struct nlattr *tb[], struct net *net, void *data) argument 274 udp_init_net(struct net *net, u_int16_t proto) argument 301 udp_get_net_proto(struct net *net) argument [all...] |
H A D | nf_conntrack_proto_udplite.c | 3 * (C) 2007 Patrick McHardy <kaber@trash.net> 17 #include <net/ip6_checksum.h> 18 #include <net/checksum.h> 23 #include <net/netfilter/nf_conntrack_l4proto.h> 24 #include <net/netfilter/nf_conntrack_ecache.h> 25 #include <net/netfilter/nf_log.h> 44 static inline struct udplite_net *udplite_pernet(struct net *net) argument 46 return net_generic(net, udplite_net_id); 82 static unsigned int *udplite_get_timeouts(struct net *ne argument 118 udplite_error(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, unsigned int dataoff, enum ip_conntrack_info *ctinfo, u_int8_t pf, unsigned int hooknum) argument 175 udplite_timeout_nlattr_to_obj(struct nlattr *tb[], struct net *net, void *data) argument 256 udplite_init_net(struct net *net, u_int16_t proto) argument 335 udplite_net_init(struct net *net) argument 357 udplite_net_exit(struct net *net) argument [all...] |
H A D | nf_synproxy_core.c | 2 * Copyright (c) 2013 Patrick McHardy <kaber@trash.net> 12 #include <net/tcp.h> 13 #include <net/netns/generic.h> 19 #include <net/netfilter/nf_conntrack.h> 20 #include <net/netfilter/nf_conntrack_extend.h> 21 #include <net/netfilter/nf_conntrack_seqadj.h> 22 #include <net/netfilter/nf_conntrack_synproxy.h> 324 static int __net_init synproxy_proc_init(struct net *net) argument 326 if (!proc_create("synproxy", S_IRUGO, net 332 synproxy_proc_exit(struct net *net) argument 337 synproxy_proc_init(struct net *net) argument 342 synproxy_proc_exit(struct net *net) argument 348 synproxy_net_init(struct net *net) argument 388 synproxy_net_exit(struct net *net) argument [all...] |
H A D | nfnetlink_cttimeout.c | 25 #include <net/netlink.h> 26 #include <net/sock.h> 27 #include <net/netfilter/nf_conntrack.h> 28 #include <net/netfilter/nf_conntrack_core.h> 29 #include <net/netfilter/nf_conntrack_l3proto.h> 30 #include <net/netfilter/nf_conntrack_l4proto.h> 31 #include <net/netfilter/nf_conntrack_tuple.h> 32 #include <net/netfilter/nf_conntrack_timeout.h> 53 struct net *net, cons 52 ctnl_timeout_parse_policy(void *timeouts, struct nf_conntrack_l4proto *l4proto, struct net *net, const struct nlattr *attr) argument 79 struct net *net = sock_net(skb->sk); local 351 struct net *net = sock_net(skb->sk); local 385 cttimeout_default_fill_info(struct net *net, struct sk_buff *skb, u32 portid, u32 seq, u32 type, int event, struct nf_conntrack_l4proto *l4proto) argument 440 struct net *net = sock_net(skb->sk); local [all...] |
H A D | xt_TCPMSS.c | 5 * Copyright (C) 2007 Patrick McHardy <kaber@trash.net> 18 #include <net/dst.h> 19 #include <net/flow.h> 20 #include <net/ipv6.h> 21 #include <net/route.h> 22 #include <net/tcp.h> 46 static u_int32_t tcpmss_reverse_mtu(struct net *net, argument 68 ai->route(net, (struct dst_entry **)&rt, &fl, false); 111 struct net *ne local [all...] |
H A D | xt_TPROXY.c | 16 #include <net/checksum.h> 17 #include <net/udp.h> 18 #include <net/tcp.h> 19 #include <net/inet_sock.h> 20 #include <net/inet_hashtables.h> 25 #include <net/netfilter/ipv4/nf_defrag_ipv4.h> 29 #include <net/if_inet6.h> 30 #include <net/addrconf.h> 31 #include <net/inet6_hashtables.h> 33 #include <net/netfilte 102 nf_tproxy_get_sock_v4(struct net *net, const u8 protocol, const __be32 saddr, const __be32 daddr, const __be16 sport, const __be16 dport, const struct net_device *in, const enum nf_tproxy_lookup_t lookup_type) argument 166 nf_tproxy_get_sock_v6(struct net *net, const u8 protocol, const struct in6_addr *saddr, const struct in6_addr *daddr, const __be16 sport, const __be16 dport, const struct net_device *in, const enum nf_tproxy_lookup_t lookup_type) argument [all...] |
H A D | xt_osf.c | 2 * Copyright (c) 2003+ Evgeniy Polyakov <zbr@ioremap.net> 31 #include <net/ip.h> 32 #include <net/tcp.h> 36 #include <net/netfilter/nf_log.h> 203 struct net *net = dev_net(p->in ? p->in : p->out); local 328 nf_log_packet(net, p->family, p->hooknum, skb, 344 nf_log_packet(net, p->family, p->hooknum, skb, p->in, 423 MODULE_AUTHOR("Evgeniy Polyakov <zbr@ioremap.net>");
|
H A D | xt_socket.c | 17 #include <net/tcp.h> 18 #include <net/udp.h> 19 #include <net/icmp.h> 20 #include <net/sock.h> 21 #include <net/inet_sock.h> 22 #include <net/netfilter/ipv4/nf_defrag_ipv4.h> 27 #include <net/inet6_hashtables.h> 28 #include <net/netfilter/ipv6/nf_defrag_ipv6.h> 35 #include <net/netfilter/nf_conntrack.h> 115 xt_socket_get_sock_v4(struct net *ne argument 312 xt_socket_get_sock_v6(struct net *net, const u8 protocol, const struct in6_addr *saddr, const struct in6_addr *daddr, const __be16 sport, const __be16 dport, const struct net_device *in) argument [all...] |
/net/nfc/ |
H A D | rawsock.c | 24 #include <net/tcp_states.h> 337 static int rawsock_create(struct net *net, struct socket *sock, argument 352 sk = sk_alloc(net, PF_NFC, GFP_ATOMIC, nfc_proto->proto);
|
/net/openvswitch/ |
H A D | datapath.h | 69 * @net: Reference to net namespace. 89 struct net *net; member in struct:datapath 128 * struct ovs_net - Per net-namespace data for ovs. 154 static inline struct net *ovs_dp_get_net(struct datapath *dp) 156 return read_pnet(&dp->net); 159 static inline void ovs_dp_set_net(struct datapath *dp, struct net *net) argument 161 write_pnet(&dp->net, ne [all...] |
H A D | vport.c | 30 #include <net/net_namespace.h> 85 static struct hlist_head *hash_bucket(struct net *net, const char *name) argument 87 unsigned int hash = jhash(name, strlen(name), (unsigned long) net); 98 struct vport *ovs_vport_locate(struct net *net, const char *name) argument 100 struct hlist_head *bucket = hash_bucket(net, name); 105 net_eq(ovs_dp_get_net(vport->dp), net))
|
/net/packet/ |
H A D | diag.c | 3 #include <linux/net.h> 7 #include <net/net_namespace.h> 8 #include <net/sock.h> 191 struct net *net; local 195 net = sock_net(skb->sk); 199 mutex_lock(&net->packet.sklist_lock); 200 sk_for_each(sk, &net->packet.sklist) { 201 if (!net_eq(sock_net(sk), net)) 217 mutex_unlock(&net 226 struct net *net = sock_net(skb->sk); local [all...] |
/net/phonet/ |
H A D | af_phonet.c | 30 #include <net/sock.h> 34 #include <net/phonet/phonet.h> 35 #include <net/phonet/pn_dev.h> 63 static int pn_socket_create(struct net *net, struct socket *sock, int protocol, argument 90 request_module("net-pf-%d-proto-%d", PF_PHONET, protocol) == 0) 100 sk = sk_alloc(net, PF_PHONET, GFP_KERNEL, pnp->prot); 240 struct net *net = sock_net(sk); local 259 dev = dev_get_by_index(net, s 375 struct net *net = dev_net(dev); local [all...] |
H A D | pn_dev.c | 27 #include <linux/net.h> 33 #include <net/sock.h> 34 #include <net/netns/generic.h> 35 #include <net/phonet/pn_dev.h> 49 static struct phonet_net *phonet_pernet(struct net *net) argument 51 BUG_ON(!net); 53 return net_generic(net, phonet_net_id); 56 struct phonet_device_list *phonet_device_list(struct net *net) argument 124 phonet_device_get(struct net *net) argument 222 phonet_address_lookup(struct net *net, u8 addr) argument 319 phonet_init_net(struct net *net) argument 332 phonet_exit_net(struct net *net) argument 404 phonet_route_get_rcu(struct net *net, u8 daddr) argument 415 phonet_route_output(struct net *net, u8 daddr) argument [all...] |
/net/rds/ |
H A D | af_rds.c | 39 #include <net/sock.h> 435 static int rds_create(struct net *net, struct socket *sock, int protocol, argument 443 sk = sk_alloc(net, AF_RDS, GFP_ATOMIC, &rds_proto);
|
/net/sched/ |
H A D | act_police.c | 2 * net/sched/police.c Input police filter. 22 #include <net/act_api.h> 23 #include <net/netlink.h> 114 static int tcf_act_police_locate(struct net *net, struct nlattr *nla, argument
|
H A D | cls_basic.c | 2 * net/sched/cls_basic.c Basic Packet Classifier. 20 #include <net/netlink.h> 21 #include <net/act_api.h> 22 #include <net/pkt_cls.h> 135 static int basic_set_parms(struct net *net, struct tcf_proto *tp, argument 145 err = tcf_exts_validate(net, tp, tb, est, &e, ovr); 168 static int basic_change(struct net *net, struct sk_buff *in_skb, argument 217 err = basic_set_parms(net, t 255 basic_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, struct sk_buff *skb, struct tcmsg *t) argument [all...] |
H A D | cls_bpf.c | 19 #include <net/rtnetlink.h> 20 #include <net/pkt_cls.h> 21 #include <net/sock.h> 165 static int cls_bpf_modify_existing(struct net *net, struct tcf_proto *tp, argument 182 ret = tcf_exts_validate(net, tp, tb, est, &exts, ovr); 240 static int cls_bpf_change(struct net *net, struct sk_buff *in_skb, argument 280 ret = cls_bpf_modify_existing(net, tp, prog, base, tb, tca[TCA_RATE], ovr); 300 static int cls_bpf_dump(struct net *ne argument [all...] |
H A D | cls_fw.c | 2 * net/sched/cls_fw.c Classifier mapping ipchains' fwmark to traffic class. 28 #include <net/netlink.h> 29 #include <net/act_api.h> 30 #include <net/pkt_cls.h> 184 fw_change_attrs(struct net *net, struct tcf_proto *tp, struct fw_filter *f, argument 193 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &e, ovr); 205 ret = tcf_change_indev(net, tb[TCA_FW_INDEV]); 230 static int fw_change(struct net *net, struc argument 358 fw_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, struct sk_buff *skb, struct tcmsg *t) argument [all...] |
H A D | ematch.c | 2 * net/sched/ematch.c Extended Match API 91 #include <net/pkt_cls.h> 181 struct net *net = dev_net(qdisc_dev(tp->q)); local 244 err = em->ops->change(net, data, data_len, em); 275 em->net = net;
|
/net/sctp/ |
H A D | bind_addr.c | 41 #include <net/sock.h> 42 #include <net/ipv6.h> 43 #include <net/if_inet6.h> 44 #include <net/sctp/sctp.h> 45 #include <net/sctp/sm.h> 48 static int sctp_copy_one_addr(struct net *, struct sctp_bind_addr *, 58 int sctp_bind_addr_copy(struct net *net, struct sctp_bind_addr *dest, argument 71 error = sctp_copy_one_addr(net, dest, &addr->a, scope, 83 error = sctp_copy_one_addr(net, des 437 sctp_copy_one_addr(struct net *net, struct sctp_bind_addr *dest, union sctp_addr *addr, sctp_scope_t scope, gfp_t gfp, int flags) argument 483 sctp_in_scope(struct net *net, const union sctp_addr *addr, sctp_scope_t scope) argument [all...] |
H A D | endpointola.c | 46 #include <net/sock.h> 47 #include <net/ipv6.h> 48 #include <net/sctp/sctp.h> 49 #include <net/sctp/sm.h> 61 struct net *net = sock_net(sk); local 71 ep->auth_enable = net->sctp.auth_enable; 104 if (net->sctp.addip_enable) { 137 ep->sndbuf_policy = net->sctp.sndbuf_policy; 144 ep->rcvbuf_policy = net 300 sctp_endpoint_is_match(struct sctp_endpoint *ep, struct net *net, const union sctp_addr *laddr) argument 387 struct net *net = sock_net(ep->base.sk); local 411 struct net *net; local [all...] |
H A D | proc.c | 34 #include <net/sctp/sctp.h> 35 #include <net/ip.h> /* for snmp_fold_field */ 73 /* Display sctp snmp mib statistics(/proc/net/sctp/snmp). */ 76 struct net *net = seq->private; local 81 snmp_fold_field(net->sctp.sctp_statistics, 102 int __net_init sctp_snmp_proc_init(struct net *net) argument 106 p = proc_create("snmp", S_IRUGO, net->sctp.proc_net_sctp, 115 void sctp_snmp_proc_exit(struct net *ne argument 266 sctp_eps_proc_init(struct net *net) argument 279 sctp_eps_proc_exit(struct net *net) argument 392 sctp_assocs_proc_init(struct net *net) argument 405 sctp_assocs_proc_exit(struct net *net) argument 522 sctp_remaddr_proc_exit(struct net *net) argument 540 sctp_remaddr_proc_init(struct net *net) argument [all...] |
H A D | sm_statetable.c | 45 #include <net/sctp/sctp.h> 46 #include <net/sctp/sm.h> 55 static const sctp_sm_table_entry_t *sctp_chunk_event_lookup(struct net *net, 79 const sctp_sm_table_entry_t *sctp_sm_lookup_event(struct net *net, argument 86 return sctp_chunk_event_lookup(net, event_subtype.chunk, state); 904 static const sctp_sm_table_entry_t *sctp_chunk_event_lookup(struct net *net, argument 914 if (net [all...] |
H A D | sysctl.c | 39 #include <net/sctp/structs.h> 40 #include <net/sctp/sctp.h> 49 static int addr_scope_max = 3; /* check sctp_scope_policy_t in include/net/sctp/constants.h for max entries */ 323 struct net *net = current->nsproxy->net_ns; local 336 tbl.data = net->sctp.sctp_hmac_alg ? : none; 344 net->sctp.sctp_hmac_alg = "md5"; 350 net->sctp.sctp_hmac_alg = "sha1"; 355 net->sctp.sctp_hmac_alg = NULL; 369 struct net *ne local 398 struct net *net = current->nsproxy->net_ns; local 438 struct net *net = current->nsproxy->net_ns; local 464 sctp_sysctl_net_register(struct net *net) argument 484 sctp_sysctl_net_unregister(struct net *net) argument [all...] |