Searched refs:family (Results 176 - 200 of 975) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/progs/
H A Dcgrp_ls_attach_cgroup.c30 if (ctx->family != AF_INET6 || ctx->user_family != AF_INET6)
59 if (ctx->family != AF_INET6 || ctx->op != BPF_SOCK_OPS_TCP_CONNECT_CB)
/linux-master/net/netfilter/
H A Dnft_xfrm.c45 switch (ctx->family) {
98 static bool xfrm_state_addr_ok(enum nft_xfrm_keys k, u8 family, u8 mode) argument
103 if (family == NFPROTO_IPV4)
108 if (family == NFPROTO_IPV6)
125 state->props.family,
238 if (ctx->family != NFPROTO_IPV4 &&
239 ctx->family != NFPROTO_IPV6 &&
240 ctx->family != NFPROTO_INET)
H A Dutils.c125 unsigned short family)
129 switch (family) {
144 u8 protocol, unsigned short family)
148 switch (family) {
164 bool strict, unsigned short family)
169 switch (family) {
123 nf_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u8 protocol, unsigned short family) argument
142 nf_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u8 protocol, unsigned short family) argument
163 nf_route(struct net *net, struct dst_entry **dst, struct flowi *fl, bool strict, unsigned short family) argument
H A Dxt_hashlimit.c119 u_int8_t family; member in struct:xt_hashlimit_htable
276 const char *name, u_int8_t family,
321 hinfo->family = family;
342 (family == NFPROTO_IPV4) ?
396 if (hinfo->family == NFPROTO_IPV4)
407 u_int8_t family)
414 hinfo->family == family) {
647 switch (hinfo->family) {
275 htable_create(struct net *net, struct hashlimit_cfg3 *cfg, const char *name, u_int8_t family, struct xt_hashlimit_htable **out_hinfo, int revision) argument
405 htable_find_get(struct net *net, const char *name, u_int8_t family) argument
1094 dl_seq_print(struct dsthash_ent *ent, u_int8_t family, struct seq_file *s) argument
1125 dl_seq_real_show_v2(struct dsthash_ent *ent, u_int8_t family, struct seq_file *s) argument
1140 dl_seq_real_show_v1(struct dsthash_ent *ent, u_int8_t family, struct seq_file *s) argument
1155 dl_seq_real_show(struct dsthash_ent *ent, u_int8_t family, struct seq_file *s) argument
[all...]
H A Dxt_TCPMSS.c45 unsigned int family)
51 if (family == PF_INET) {
62 nf_route(net, (struct dst_entry **)&rt, &fl, false, family);
73 unsigned int family,
104 unsigned int in_mtu = tcpmss_reverse_mtu(net, skb, family);
313 .family = NFPROTO_IPV4,
323 .family = NFPROTO_IPV6,
43 tcpmss_reverse_mtu(struct net *net, const struct sk_buff *skb, unsigned int family) argument
71 tcpmss_mangle_packet(struct sk_buff *skb, const struct xt_action_param *par, unsigned int family, unsigned int tcphoff, unsigned int minlen) argument
H A Dnft_ct.c434 switch (ctx->family) {
505 err = nf_ct_netns_get(ctx->net, ctx->family);
613 err = nf_ct_netns_get(ctx->net, ctx->family);
627 nf_ct_netns_put(ctx->net, ctx->family);
636 nf_ct_netns_put(ctx->net, ctx->family);
942 int l3num = ctx->family;
978 ret = nf_ct_netns_get(ctx->net, ctx->family);
998 nf_ct_netns_put(ctx->net, ctx->family);
1058 int family = ctx->family; local
1182 u16 family; local
[all...]
H A Dnfnetlink_hook.c143 ret = nla_put_u8(nlskb, NFNLA_CHAIN_FAMILY, chain->table->family);
159 int family, unsigned int seq)
171 NLM_F_MULTI, family, NFNETLINK_V0, 0);
307 int err, family = nfmsg->nfgen_family; local
315 e = nfnl_hook_entries_head(family, ctx->hook, net, ctx->devname);
330 err = nfnl_hook_dump_one(nlskb, ctx, ops[i], family,
349 u8 family = nfmsg->nfgen_family; local
358 if (family == NFPROTO_NETDEV) {
367 head = nfnl_hook_entries_head(family, hooknum, net, name);
156 nfnl_hook_dump_one(struct sk_buff *nlskb, const struct nfnl_dump_hook_data *ctx, const struct nf_hook_ops *ops, int family, unsigned int seq) argument
H A Dxt_NETMAP.c60 return nf_ct_netns_get(par->net, par->family);
65 nf_ct_netns_put(par->net, par->family);
116 return nf_ct_netns_get(par->net, par->family);
122 .family = NFPROTO_IPV6,
137 .family = NFPROTO_IPV4,
H A Dxt_nat.c24 return nf_ct_netns_get(par->net, par->family);
29 return nf_ct_netns_get(par->net, par->family);
34 nf_ct_netns_put(par->net, par->family);
158 .family = NFPROTO_IPV4,
171 .family = NFPROTO_IPV4,
/linux-master/include/linux/
H A Dnet.h162 int family; member in struct:proto_ops
232 int family; member in struct:net_proto_family
250 void sock_unregister(int family);
251 bool sock_is_registered(int family);
252 int __sock_create(struct net *net, int family, int type, int proto,
254 int sock_create(int family, int type, int proto, struct socket **res);
255 int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res);
256 int sock_create_lite(int family, int type, int proto, struct socket **res);
/linux-master/net/xfrm/
H A Dxfrm_state_bpf.c33 * @family - Protocol family to match on (AF_INET/AF_INET6)
42 u16 family; member in struct:bpf_xfrm_state_opts
93 opts->proto, opts->family);
/linux-master/tools/testing/selftests/net/
H A Dreuseaddr_conflict.c29 int family = ipv6 ? AF_INET6 : AF_INET; local
51 if ((fd = socket(family, SOCK_STREAM, IPPROTO_TCP)) < 0) {
H A Dtxtimestamp.c276 static void print_pktinfo(int family, int ifindex, void *saddr, void *daddr) argument
282 saddr ? inet_ntop(family, saddr, sa, sizeof(sa)) : "unknown",
283 daddr ? inet_ntop(family, daddr, da, sizeof(da)) : "unknown");
481 static void do_test(int family, unsigned int report_opt) argument
500 if (family == PF_INET)
516 fd = socket(cfg_use_pf_packet ? PF_PACKET : family,
543 if (family == PF_INET) {
553 if (family == AF_INET6) {
586 if (family == PF_INET)
592 fill_header_udp(buf + off, family
843 do_listen(int family, void *addr, int alen) argument
864 do_main(int family) argument
[all...]
H A Dudpgro_fwd.sh110 local family=-4
119 family=-6
135 ip netns exec $NS_SRC ./udpgso_bench_tx $family -M 1 -s 13000 -S 1300 -D $dst
168 local family=-4
176 is_ipv6 $dst && family=-6
184 ip netns exec $NS_SRC taskset 0x1 ./udpgso_bench_tx $family -l 3 -S 1300 -D $dst
195 for family in 4 6; do
203 if [ $family = 6 ]; then
213 echo "IPv$family"
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c52 static enum mlx5_traffic_types family2tt(u32 family) argument
54 if (family == AF_INET)
59 static struct mlx5e_ipsec_rx *ipsec_rx(struct mlx5e_ipsec *ipsec, u32 family, int type) argument
64 if (family == AF_INET)
496 static void handle_ipsec_rx_bringup(struct mlx5e_ipsec *ipsec, u32 family) argument
498 struct mlx5e_ipsec_rx *rx = ipsec_rx(ipsec, family, XFRM_DEV_OFFLOAD_PACKET);
503 family2tt(family));
505 mlx5_ipsec_fs_roce_rx_create(ipsec->mdev, ipsec->roce, ns, &old_dest, family,
508 new_dest.ft = mlx5_ipsec_fs_roce_ft_get(ipsec->roce, family);
514 static void handle_ipsec_rx_cleanup(struct mlx5e_ipsec *ipsec, u32 family) argument
573 ipsec_rx_ft_disconnect(struct mlx5e_ipsec *ipsec, u32 family) argument
580 rx_destroy(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, u32 family) argument
606 ipsec_rx_create_attr_set(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, u32 family, struct mlx5e_ipsec_rx_create_attr *attr) argument
666 rx_create(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, u32 family) argument
762 rx_get(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, u32 family) argument
785 rx_put(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_rx *rx, u32 family) argument
795 rx_ft_get(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, u32 family, int type) argument
811 rx_ft_get_policy(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, u32 family, u32 prio, int type) argument
840 rx_ft_put(struct mlx5e_ipsec *ipsec, u32 family, int type) argument
849 rx_ft_put_policy(struct mlx5e_ipsec *ipsec, u32 family, u32 prio, int type) argument
[all...]
/linux-master/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c51 static int init_genl_req(char *data, int family, int cmd, int version) argument
57 nh->nlmsg_type = family;
156 fprintf(stderr, ",family:%u", *(__u16 *)RTA_DATA(attrs));
345 u_int16_t family, port; local
409 family = AF_INET;
413 family = AF_INET6;
420 /* family */
424 memcpy(RTA_DATA(rta), &family, 2); local
461 u_int16_t family; local
524 family
539 memcpy(RTA_DATA(rta), &family, 2); local
644 u_int16_t family; local
683 memcpy(RTA_DATA(rta), &family, 2); local
769 u_int16_t family; local
807 memcpy(RTA_DATA(rta), &family, 2); local
899 u_int16_t family; local
951 memcpy(RTA_DATA(rta), &family, 2); local
962 uint16_t family = 0; local
1279 u_int16_t family; local
1332 u_int16_t family; local
1385 memcpy(RTA_DATA(rta), &family, 2); local
1490 memcpy(RTA_DATA(rta), &family, 2); local
[all...]
/linux-master/drivers/hwmon/
H A Dasus-ec-sensors.c298 enum board_family family; member in struct:ec_board_info
307 .family = family_amd_400_series,
314 .family = family_amd_500_series,
322 .family = family_amd_500_series,
330 .family = family_amd_500_series,
338 .family = family_amd_500_series,
346 .family = family_amd_600_series,
354 .family = family_amd_600_series,
364 .family = family_amd_500_series,
375 .family
[all...]
/linux-master/drivers/w1/
H A Dw1.c81 w1_family_put(sl->family);
111 /* Default family */
393 unsigned int family; local
410 i = sscanf(buf, "%02x-%012llx", &family, &id);
415 rn->family = family;
423 rn->family, (unsigned long long)rn->id, rn->crc);
438 if (sl->reg_num.family == rn->family &&
507 dev_info(dev, "Device %02x-%012llx doesn't exists\n", rn.family,
[all...]
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_legacy_encoders.c247 if (rdev->family == CHIP_RV410)
431 pdata->negative = (rdev->family != CHIP_RV200 &&
432 rdev->family != CHIP_RV250 &&
433 rdev->family != CHIP_RV280 &&
434 rdev->family != CHIP_RV350);
590 if (rdev->family == CHIP_R200 || ASIC_IS_R300(rdev)) {
599 if (rdev->family == CHIP_R200 || ASIC_IS_R300(rdev)) {
789 if (rdev->family == CHIP_RV280) {
808 if (ASIC_IS_R300(rdev) || (rdev->family == CHIP_RV280)) {
821 if (rdev->family
[all...]
/linux-master/fs/afs/
H A Daddr_prefs.c100 pref->family = AF_INET;
103 pref->family = AF_INET6;
106 pr_warn("Can't determine address family\n");
160 if (a->family != b->family)
163 switch (a->family) {
241 if (pref->family == AF_INET)
278 if (pref.family == AF_INET) {
352 if (pref.family == AF_INET) {
470 test.family
[all...]
/linux-master/net/netlabel/
H A Dnetlabel_mgmt.c48 /* NetLabel Generic NETLINK CIPSOv4 family */
111 entry->family =
114 entry->family = AF_UNSPEC;
124 entry->family = AF_INET;
136 entry->family = AF_INET6;
144 if ((entry->family == AF_INET && info->attrs[NLBL_MGMT_A_IPV6ADDR]) ||
145 (entry->family == AF_INET6 && info->attrs[NLBL_MGMT_A_IPV4ADDR]))
191 entry->family = AF_INET;
242 entry->family = AF_INET6;
299 ret_val = nla_put_u16(skb, NLBL_MGMT_A_FAMILY, entry->family);
602 u16 family; local
[all...]
/linux-master/net/rxrpc/
H A Dlocal_object.c66 (local->srx.transport.family - srx->transport.family));
70 switch (srx->transport.family) {
172 local, srx->transport_type, srx->transport.family);
174 udp_conf.family = srx->transport.family;
176 if (udp_conf.family == AF_INET) {
203 switch (srx->transport.family) {
260 srx->transport_type, srx->transport.family, &srx->transport);
/linux-master/net/sched/
H A Dem_ipt.c53 mtpar.family = im->match->family;
197 .family = im->match->family
211 u8 nfproto = im->match->family;
/linux-master/samples/bpf/
H A Dtest_cgrp2_sock.c169 static int show_sockopts(int family) argument
175 sd = socket(family, SOCK_DGRAM, 17);
213 int family = PF_INET; local
239 family = PF_INET6;
247 return show_sockopts(family);
/linux-master/drivers/net/vxlan/
H A Dvxlan_multicast.c135 unsigned short family = dev->default_dst.remote_ip.sa.sa_family; local
142 if (family == AF_INET && sock4 && refcount_read(&sock4->refcnt) == 1)
147 if (family == AF_INET6 && sock6 && refcount_read(&sock6->refcnt) == 1)
155 if (family == AF_INET &&
159 if (family == AF_INET6 &&

Completed in 198 milliseconds

1234567891011>>