/net/xfrm/ |
H A D | xfrm_hash.h | 33 u32 reqid, unsigned short family, 36 unsigned int h = family ^ reqid; 37 switch (family) { 50 unsigned short family, 53 unsigned int h = family; 54 switch (family) { 67 unsigned short family, unsigned int hmask) 70 switch (family) { 87 unsigned short family, unsigned int hmask) 93 switch (family) { 31 __xfrm_dst_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, u32 reqid, unsigned short family, unsigned int hmask) argument 48 __xfrm_src_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, unsigned int hmask) argument 66 __xfrm_spi_hash(const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family, unsigned int hmask) argument 86 __sel_hash(const struct xfrm_selector *sel, unsigned short family, unsigned int hmask) argument 114 __addr_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, unsigned int hmask) argument [all...] |
H A D | xfrm_state.c | 34 2. Hash table by (daddr,family,reqid) to find what SAs exist for given 42 static struct xfrm_state_afinfo *xfrm_state_get_afinfo(unsigned int family); 49 unsigned short family) 51 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask); 57 unsigned short family) 59 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); 64 __be32 spi, u8 proto, unsigned short family) 66 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); 82 x->props.reqid, x->props.family, 87 x->props.family, 45 xfrm_dst_hash(struct net *net, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u32 reqid, unsigned short family) argument 54 xfrm_src_hash(struct net *net, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) argument 63 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) argument 172 xfrm_register_type(const struct xfrm_type *type, unsigned short family) argument 193 xfrm_unregister_type(const struct xfrm_type *type, unsigned short family) argument 214 xfrm_get_type(u8 proto, unsigned short family) argument 247 xfrm_register_mode(struct xfrm_mode *mode, int family) argument 281 xfrm_unregister_mode(struct xfrm_mode *mode, int family) argument 309 xfrm_get_mode(unsigned int encap, int family) argument 658 xfrm_init_tempstate(struct xfrm_state *x, const struct flowi *fl, const struct xfrm_tmpl *tmpl, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) argument 679 __xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) argument 703 __xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) argument 728 __xfrm_state_locate(struct xfrm_state *x, int use_spi, int family) argument 751 xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, const struct flowi *fl, unsigned short family, struct xfrm_state **best, int *acq_in_progress, int *error) argument 789 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, const struct flowi *fl, struct xfrm_tmpl *tmpl, struct xfrm_policy *pol, int *err, unsigned short family) argument 898 xfrm_stateonly_find(struct net *net, u32 mark, xfrm_address_t *daddr, xfrm_address_t *saddr, unsigned short family, u8 mode, u8 proto, u32 reqid) argument 966 unsigned short family = xnew->props.family; local 993 __find_acq_core(struct net *net, struct xfrm_mark *m, unsigned short family, u8 mode, u32 reqid, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create) argument 1073 int family; local 1375 xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) argument 1388 xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) argument 1402 xfrm_find_acq(struct net *net, struct xfrm_mark *mark, u8 mode, u32 reqid, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create, unsigned short family) argument 1418 xfrm_tmpl_sort(struct xfrm_tmpl **dst, struct xfrm_tmpl **src, int n, unsigned short family) argument 1436 xfrm_state_sort(struct xfrm_state **dst, struct xfrm_state **src, int n, unsigned short family) argument 1863 xfrm_state_get_afinfo(unsigned int family) argument 1913 int family = x->props.family; local 2087 xfrm_audit_helper_pktinfo(struct sk_buff *skb, u16 family, struct audit_buffer *audit_buf) argument 2176 xfrm_audit_state_notfound_simple(struct sk_buff *skb, u16 family) argument 2188 xfrm_audit_state_notfound(struct sk_buff *skb, u16 family, __be32 net_spi, __be32 net_seq) argument [all...] |
H A D | xfrm_input.c | 94 if (x->sel.family == AF_UNSPEC) { 114 unsigned int family; local 142 family = XFRM_SPI_SKB_CB(skb)->family; 156 x = xfrm_state_lookup(net, skb->mark, daddr, spi, nexthdr, family); 159 xfrm_audit_state_notfound(skb, family, spi, seq); 231 if (x->sel.family == AF_UNSPEC) { 252 family = x->outer_mode->afinfo->family;
|
/net/netlink/ |
H A D | genetlink.c | 109 static struct genl_ops *genl_get_cmd(u8 cmd, struct genl_family *family) argument 113 list_for_each_entry(ops, &family->ops_list, ops_list) 148 * @family: The generic netlink family the group shall be registered for. 151 int genl_register_mc_group(struct genl_family *family, argument 194 if (family->netnsok) { 225 list_add_tail(&grp->list, &family->mcast_groups); 226 grp->family = family; 235 static void __genl_unregister_mc_group(struct genl_family *family, argument 269 genl_unregister_mc_group(struct genl_family *family, struct genl_multicast_group *grp) argument 278 genl_unregister_mc_groups(struct genl_family *family) argument 301 genl_register_ops(struct genl_family *family, struct genl_ops *ops) argument 347 genl_unregister_ops(struct genl_family *family, struct genl_ops *ops) argument 377 genl_register_family(struct genl_family *family) argument 460 genl_register_family_with_ops(struct genl_family *family, struct genl_ops *ops, size_t n_ops) argument 489 genl_unregister_family(struct genl_family *family) argument 527 genlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, struct genl_family *family, int flags, u8 cmd) argument 547 genl_family_rcv_msg(struct genl_family *family, struct sk_buff *skb, struct nlmsghdr *nlh) argument 633 struct genl_family *family; local 670 ctrl_fill_info(struct genl_family *family, u32 portid, u32 seq, u32 flags, struct sk_buff *skb, u8 cmd) argument 816 ctrl_build_family_msg(struct genl_family *family, u32 portid, int seq, u8 cmd) argument 908 struct genl_family *family; local [all...] |
/net/netfilter/ |
H A D | xt_connmark.c | 81 ret = nf_ct_l3proto_try_module_get(par->family); 84 par->family); 90 nf_ct_l3proto_module_put(par->family); 111 ret = nf_ct_l3proto_try_module_get(par->family); 114 par->family); 120 nf_ct_l3proto_module_put(par->family); 126 .family = NFPROTO_UNSPEC, 137 .family = NFPROTO_UNSPEC,
|
H A D | xt_state.c | 46 ret = nf_ct_l3proto_try_module_get(par->family); 49 par->family); 55 nf_ct_l3proto_module_put(par->family); 60 .family = NFPROTO_UNSPEC,
|
H A D | xt_ipvs.c | 51 /* ipvs_mt_check ensures that family is only NFPROTO_IPV[46]. */ 52 const u_int8_t family = par->family; local 70 ip_vs_fill_iph_skb(family, skb, &iph); 88 cp = pp->conn_out_get(family, skb, &iph, 1 /* inverse */); 139 &data->vmask, family) ^ 155 if (par->family != NFPROTO_IPV4 157 && par->family != NFPROTO_IPV6 160 pr_info("protocol family %u not supported\n", par->family); [all...] |
H A D | xt_conntrack.c | 45 u_int8_t family) 48 &info->origsrc_addr, &info->origsrc_mask, family); 54 u_int8_t family) 57 &info->origdst_addr, &info->origdst_mask, family); 63 u_int8_t family) 66 &info->replsrc_addr, &info->replsrc_mask, family); 72 u_int8_t family) 75 &info->repldst_addr, &info->repldst_mask, family); 203 if (conntrack_mt_origsrc(ct, info, par->family) ^ 208 if (conntrack_mt_origdst(ct, info, par->family) 43 conntrack_mt_origsrc(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) argument 52 conntrack_mt_origdst(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) argument 61 conntrack_mt_replsrc(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) argument 70 conntrack_mt_repldst(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) argument [all...] |
H A D | xt_CONNSECMARK.c | 109 ret = nf_ct_l3proto_try_module_get(par->family); 112 par->family); 118 nf_ct_l3proto_module_put(par->family); 124 .family = NFPROTO_UNSPEC,
|
H A D | xt_connlabel.c | 55 ret = nf_ct_l3proto_try_module_get(par->family); 58 par->family); 75 nf_ct_l3proto_module_put(par->family); 80 .family = NFPROTO_UNSPEC,
|
H A D | xt_helper.c | 62 ret = nf_ct_l3proto_try_module_get(par->family); 65 par->family); 74 nf_ct_l3proto_module_put(par->family); 80 .family = NFPROTO_UNSPEC,
|
H A D | xt_pkttype.c | 33 else if (par->family == NFPROTO_IPV4 && 36 else if (par->family == NFPROTO_IPV6 && 48 .family = NFPROTO_UNSPEC,
|
H A D | xt_policy.c | 26 const union nf_inet_addr *a2, unsigned short family) 28 switch (family) { 39 unsigned short family) 42 (xt_addr_cmp(&e->x, &e->y, (const union nf_inet_addr *)(z), family) \ 56 unsigned short family) 74 if (match_xfrm_state(sp->xvec[i], e, family)) { 86 unsigned short family) 102 if (match_xfrm_state(dst->xfrm, e, family)) { 119 ret = match_policy_in(skb, info, par->family); 121 ret = match_policy_out(skb, info, par->family); 25 xt_addr_cmp(const union nf_inet_addr *a1, const union nf_inet_addr *m, const union nf_inet_addr *a2, unsigned short family) argument 38 match_xfrm_state(const struct xfrm_state *x, const struct xt_policy_elem *e, unsigned short family) argument 55 match_policy_in(const struct sk_buff *skb, const struct xt_policy_info *info, unsigned short family) argument 85 match_policy_out(const struct sk_buff *skb, const struct xt_policy_info *info, unsigned short family) argument [all...] |
H A D | xt_dscp.c | 61 if (par->family == NFPROTO_IPV4) 72 .family = NFPROTO_IPV4, 80 .family = NFPROTO_IPV6, 89 .family = NFPROTO_IPV4, 97 .family = NFPROTO_IPV6,
|
H A D | xt_connlimit.c | 78 const union nf_inet_addr *u3, u_int8_t family) 80 if (family == NFPROTO_IPV4) { 100 u_int8_t family) 110 if (family == NFPROTO_IPV6) 154 if (same_source_net(addr, mask, &conn->addr, family)) 192 par->family, &tuple)) 195 if (par->family == NFPROTO_IPV6) { 207 &info->mask, par->family); 236 ret = nf_ct_l3proto_try_module_get(par->family); 239 "address family 76 same_source_net(const union nf_inet_addr *addr, const union nf_inet_addr *mask, const union nf_inet_addr *u3, u_int8_t family) argument 95 count_them(struct net *net, struct xt_connlimit_data *data, const struct nf_conntrack_tuple *tuple, const union nf_inet_addr *addr, const union nf_inet_addr *mask, u_int8_t family) argument [all...] |
H A D | xt_TRACE.c | 23 .family = NFPROTO_UNSPEC,
|
H A D | xt_comment.c | 28 .family = NFPROTO_UNSPEC,
|
H A D | xt_set.c | 42 .family = f, \ 55 ADT_OPT(opt, par->family, info->match_set.u.compat.dim, 116 ADT_OPT(add_opt, par->family, info->add_set.u.compat.dim, 118 ADT_OPT(del_opt, par->family, info->del_set.u.compat.dim, 189 ADT_OPT(opt, par->family, info->match_set.dim, 234 ADT_OPT(add_opt, par->family, info->add_set.dim, 236 ADT_OPT(del_opt, par->family, info->del_set.dim, 303 ADT_OPT(add_opt, par->family, info->add_set.dim, 305 ADT_OPT(del_opt, par->family, info->del_set.dim, 347 ADT_OPT(opt, par->family, inf [all...] |
H A D | xt_CLASSIFY.c | 44 .family = NFPROTO_UNSPEC, 54 .family = NFPROTO_ARP,
|
H A D | xt_length.c | 45 .family = NFPROTO_IPV4, 52 .family = NFPROTO_IPV6,
|
H A D | xt_mark.c | 47 .family = NFPROTO_UNSPEC, 56 .family = NFPROTO_UNSPEC,
|
/net/ipv4/ |
H A D | tunnel4.c | 21 static inline struct xfrm_tunnel __rcu **fam_handlers(unsigned short family) argument 23 return (family == AF_INET) ? &tunnel4_handlers : &tunnel64_handlers; 26 int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family) argument 36 for (pprev = fam_handlers(family); 58 int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family) argument 66 for (pprev = fam_handlers(family);
|
/net/sched/ |
H A D | em_ipset.c | 64 acpar.family = NFPROTO_IPV4; 70 acpar.family = NFPROTO_IPV6; 82 opt.family = acpar.family;
|
/net/core/ |
H A D | sock_diag.c | 110 if (hndl->family >= AF_MAX) 114 if (sock_diag_handlers[hndl->family]) 117 sock_diag_handlers[hndl->family] = hndl; 126 int family = hnld->family; local 128 if (family >= AF_MAX) 132 BUG_ON(sock_diag_handlers[family] != hnld); 133 sock_diag_handlers[family] = NULL;
|
/net/rxrpc/ |
H A D | ar-local.c | 137 srx->transport.family, 149 local->srx.transport.family, 154 local->srx.transport.family != srx->transport.family) 157 switch (srx->transport.family) { 195 local->srx.transport.family, 210 local->srx.transport.family,
|