Searched refs:family (Results 26 - 50 of 975) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_listen.c33 int family, int sotype, int mapfd)
51 int family, int sotype, int mapfd)
57 s = xsocket(family, sotype, 0);
73 int family, int sotype, int mapfd)
81 init_addr_loopback(family, &addr, &len);
83 s = xsocket(family, sotype, 0);
101 int family, int sotype, int mapfd)
107 s = socket_loopback(family, sotype);
118 int family, int sotype, int mapfd)
124 s = socket_loopback(family, sotyp
32 test_insert_invalid(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
50 test_insert_opened(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
72 test_insert_bound(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
100 test_insert(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
117 test_delete_after_insert(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
135 test_delete_after_close(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
159 test_lookup_after_insert(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
188 test_lookup_after_delete(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
212 test_lookup_32_bit_value(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
243 test_update_existing(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
272 do_destroy_orphan_child(int family, int sotype, int mapfd) argument
303 test_destroy_orphan_child(struct test_sockmap_listen *skel, int family, int sotype, int mapfd) argument
333 test_clone_after_delete(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
370 test_accept_after_delete(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
425 test_accept_before_delete(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
487 int family, socktype; local
535 test_syn_recv_insert_delete(struct test_sockmap_listen *skel __always_unused, int family, int sotype, int mapfd) argument
599 test_race_insert_listen(struct test_sockmap_listen *skel __always_unused, int family, int socktype, int mapfd) argument
674 redir_to_connected(int family, int sotype, int sock_mapfd, int verd_mapfd, enum redir_mode mode) argument
727 test_skb_redir_to_connected(struct test_sockmap_listen *skel, struct bpf_map *inner_map, int family, int sotype) argument
752 test_msg_redir_to_connected(struct test_sockmap_listen *skel, struct bpf_map *inner_map, int family, int sotype) argument
770 redir_to_listening(int family, int sotype, int sock_mapfd, int verd_mapfd, enum redir_mode mode) argument
829 test_skb_redir_to_listening(struct test_sockmap_listen *skel, struct bpf_map *inner_map, int family, int sotype) argument
854 test_msg_redir_to_listening(struct test_sockmap_listen *skel, struct bpf_map *inner_map, int family, int sotype) argument
872 redir_partial(int family, int sotype, int sock_map, int parser_map) argument
918 test_skb_redir_partial(struct test_sockmap_listen *skel, struct bpf_map *inner_map, int family, int sotype) argument
943 test_reuseport_select_listening(int family, int sotype, int sock_map, int verd_map, int reuseport_prog) argument
1012 test_reuseport_select_connected(int family, int sotype, int sock_map, int verd_map, int reuseport_prog) argument
1118 test_reuseport_mixed_groups(int family, int sotype, int sock_map, int verd_map, int reuseport_prog) argument
1204 family_str(sa_family_t family) argument
1250 test_ops(struct test_sockmap_listen *skel, struct bpf_map *map, int family, int sotype) argument
1307 test_redir(struct test_sockmap_listen *skel, struct bpf_map *map, int family, int sotype) argument
1592 test_reuseport(struct test_sockmap_listen *skel, struct bpf_map *map, int family, int sotype) argument
1632 inet_socketpair(int family, int type, int *s, int *c) argument
1674 udp_redir_to_connected(int family, int sock_mapfd, int verd_mapfd, enum redir_mode mode) argument
1696 udp_skb_redir_to_connected(struct test_sockmap_listen *skel, struct bpf_map *inner_map, int family) argument
1716 test_udp_redir(struct test_sockmap_listen *skel, struct bpf_map *map, int family) argument
1730 inet_unix_redir_to_connected(int family, int type, int sock_mapfd, int verd_mapfd, enum redir_mode mode) argument
1754 inet_unix_skb_redir_to_connected(struct test_sockmap_listen *skel, struct bpf_map *inner_map, int family) argument
1780 unix_inet_redir_to_connected(int family, int type, int sock_mapfd, int nop_mapfd, int verd_mapfd, enum redir_mode mode) argument
1808 unix_inet_skb_redir_to_connected(struct test_sockmap_listen *skel, struct bpf_map *inner_map, int family) argument
1853 test_udp_unix_redir(struct test_sockmap_listen *skel, struct bpf_map *map, int family) argument
1868 run_tests(struct test_sockmap_listen *skel, struct bpf_map *map, int family) argument
[all...]
H A Dxdp.c7 struct vip key4 = {.protocol = 6, .family = AF_INET};
8 struct vip key6 = {.protocol = 6, .family = AF_INET6};
9 struct iptnl_info value4 = {.family = AF_INET};
10 struct iptnl_info value6 = {.family = AF_INET6};
H A Dbind_perm.c20 void try_bind(int family, int port, int expected_errno) argument
27 fd = socket(family, SOCK_STREAM, 0);
31 if (family == AF_INET) {
33 sin->sin_family = family;
37 sin6->sin6_family = family;
H A Dsetget_sockopt.c42 static void test_tcp(int family) argument
49 sfd = start_server(family, SOCK_STREAM,
50 family == AF_INET6 ? addr6_str : addr4_str, 0, 0);
70 static void test_udp(int family) argument
77 sfd = start_server(family, SOCK_DGRAM,
78 family == AF_INET6 ? addr6_str : addr4_str, 0, 0);
87 static void test_ktls(int family) argument
96 sfd = start_server(family, SOCK_STREAM,
97 family == AF_INET6 ? addr6_str : addr4_str, 0, 0);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dlsm_cgroup.c51 static __always_inline int real_create(struct socket *sock, int family, argument
58 if (family == AF_PACKET && protocol != 0)
85 int BPF_PROG(socket_post_create, struct socket *sock, int family, argument
89 return real_create(sock, family, protocol);
94 int BPF_PROG(socket_post_create2, struct socket *sock, int family, argument
98 return real_create(sock, family, protocol);
144 int BPF_PROG(socket_alloc, struct sock *sk, int family, gfp_t priority) argument
151 if (family == AF_UNIX)
/linux-master/security/selinux/
H A Dnetlabel.c32 * @family: the packet's address family
43 u16 family,
53 netlbl_cache_add(skb, family, secattr);
131 * @family: the packet's address family
142 void selinux_netlbl_err(struct sk_buff *skb, u16 family, int error, int gateway) argument
144 netlbl_skbuff_err(skb, family, error, gateway);
182 * @family: protocol family
42 selinux_netlbl_sidlookup_cached(struct sk_buff *skb, u16 family, struct netlbl_lsm_secattr *secattr, u32 *sid) argument
192 selinux_netlbl_skbuff_getsid(struct sk_buff *skb, u16 family, u32 *type, u32 *sid) argument
230 selinux_netlbl_skbuff_setsid(struct sk_buff *skb, u16 family, u32 sid) argument
328 selinux_netlbl_inet_conn_request(struct request_sock *req, u16 family) argument
357 selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family) argument
393 selinux_netlbl_socket_post_create(struct sock *sk, u16 family) argument
432 selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec, struct sk_buff *skb, u16 family, struct common_audit_data *ad) argument
[all...]
/linux-master/net/netfilter/
H A Dxt_state.c42 ret = nf_ct_netns_get(par->net, par->family);
45 par->family);
51 nf_ct_netns_put(par->net, par->family);
56 .family = NFPROTO_UNSPEC,
H A Dxt_LOG.c49 if (par->family != NFPROTO_IPV4 && par->family != NFPROTO_IPV6)
62 ret = nf_logger_find_get(par->family, NF_LOG_TYPE_LOG);
66 ret = nf_logger_find_get(par->family, NF_LOG_TYPE_LOG);
74 nf_logger_put(par->family, NF_LOG_TYPE_LOG);
80 .family = NFPROTO_IPV4,
90 .family = NFPROTO_IPV6,
H A Dxt_connlabel.c62 ret = nf_ct_netns_get(par->net, par->family);
65 par->family);
71 nf_ct_netns_put(par->net, par->family);
78 nf_ct_netns_put(par->net, par->family);
83 .family = NFPROTO_UNSPEC,
H A Dxt_socket.c154 static int socket_mt_enable_defrag(struct net *net, int family) argument
156 switch (family) {
164 WARN_ONCE(1, "Unknown family %d\n", family);
173 err = socket_mt_enable_defrag(par->net, par->family);
190 err = socket_mt_enable_defrag(par->net, par->family);
208 err = socket_mt_enable_defrag(par->net, par->family);
221 if (par->family == NFPROTO_IPV4)
224 else if (par->family == NFPROTO_IPV6)
233 .family
[all...]
H A Dxt_ipvs.c53 /* ipvs_mt_check ensures that family is only NFPROTO_IPV[46]. */
54 const u_int8_t family = xt_family(par); local
72 ip_vs_fill_iph_skb(family, skb, true, &iph);
90 cp = pp->conn_out_get(ipvs, family, skb, &iph);
141 &data->vmask, family) ^
157 if (par->family != NFPROTO_IPV4
159 && par->family != NFPROTO_IPV6
162 pr_info_ratelimited("protocol family %u not supported\n",
163 par->family);
173 .family
[all...]
H A Dnf_conntrack_ovs.c56 WARN_ONCE(1, "helper invoked on non-IP family!");
78 int nf_ct_add_helper(struct nf_conn *ct, const char *name, u8 family, argument
85 helper = nf_conntrack_helper_try_module_get(name, family, proto);
96 ret = nf_nat_helper_try_module_get(name, family, proto);
115 int nf_ct_skb_network_trim(struct sk_buff *skb, int family) argument
119 switch (family) {
145 u16 zone, u8 family, u8 *proto, u16 *mru)
149 if (family == NFPROTO_IPV4) {
161 } else if (family == NFPROTO_IPV6) {
144 nf_ct_handle_fragments(struct net *net, struct sk_buff *skb, u16 zone, u8 family, u8 *proto, u16 *mru) argument
/linux-master/net/ipv6/
H A Dxfrm6_state.c18 .family = AF_INET6,
/linux-master/tools/testing/selftests/net/
H A Dreuseport_addr_any.c34 static void build_rcv_fd(int family, int proto, int *rcv_fds, int count, argument
44 switch (family) {
46 addr4.sin_family = family;
49 else if (!inet_pton(family, addr_str, &addr4.sin_addr.s_addr))
59 else if (!inet_pton(family, addr_str, &addr6.sin6_addr))
66 error(1, 0, "Unsupported family %d", family);
75 rcv_fds[i] = socket(family, proto, 0);
101 static int connect_and_send(int family, int proto) argument
110 switch (family) {
194 test(int *rcv_fds, int count, int family, int proto, int fd) argument
[all...]
H A Dtcp_inq.c32 static int family = AF_INET6; variable
36 static void setup_loopback_addr(int family, struct sockaddr_storage *sockaddr) argument
41 switch (family) {
55 error(1, 0, "illegal family");
111 family = PF_INET;
115 family = PF_INET6;
124 server_fd = socket(family, SOCK_STREAM, 0);
127 setup_loopback_addr(family, &listen_addr);
140 fd = socket(family, SOCK_STREAM, 0);
143 setup_loopback_addr(family,
[all...]
H A Dreuseport_bpf_cpu.c34 static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto) argument
42 switch (family) {
56 error(1, 0, "Unsupported family %d", family);
60 rcv_fd[i] = socket(family, proto, 0);
94 static void send_from_cpu(int cpu_id, int family, int proto) argument
102 switch (family) {
126 error(1, 0, "Unsupported family %d", family);
134 fd = socket(family, prot
184 test(int *rcv_fd, int len, int family, int proto) argument
[all...]
/linux-master/drivers/gpu/drm/msm/adreno/
H A Dadreno_device.c26 .family = ADRENO_2XX_GEN1,
37 .family = ADRENO_2XX_GEN1,
48 .family = ADRENO_2XX_GEN2,
59 .family = ADRENO_3XX,
69 .family = ADRENO_3XX,
80 .family = ADRENO_3XX,
95 .family = ADRENO_3XX,
110 .family = ADRENO_3XX,
121 .family = ADRENO_4XX,
132 .family
[all...]
/linux-master/include/trace/events/
H A Dneigh.h32 __field(u32, family)
44 __entry->family = tbl->family;
51 if (tbl->family == AF_INET)
57 if (tbl->family == AF_INET6) {
66 TP_printk("family %d dev %s entries %d primary_key4 %pI4 primary_key6 %pI6c created %d gc_exempt %d",
67 __entry->family, __get_str(dev), __entry->entries,
80 __field(u32, family)
105 __entry->family = n->tbl->family;
[all...]
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_kms.c264 if ((rdev->family >= CHIP_CEDAR) && (rdev->family <= CHIP_HEMLOCK))
289 if (rdev->family == CHIP_HAWAII) {
303 if (rdev->family >= CHIP_BONAIRE)
305 else if (rdev->family >= CHIP_TAHITI)
307 else if (rdev->family >= CHIP_CAYMAN)
309 else if (rdev->family >= CHIP_CEDAR)
311 else if (rdev->family >= CHIP_RV770)
313 else if (rdev->family >= CHIP_R600)
357 if (rdev->family >
[all...]
/linux-master/include/net/
H A Dinetpeer.h33 __u16 family; member in struct:inetpeer_addr
77 iaddr->family = AF_INET;
89 iaddr->family = AF_INET6;
110 daddr.family = AF_INET;
121 daddr.family = AF_INET6;
130 if (a->family == AF_INET)
/linux-master/tools/perf/arch/x86/util/
H A Dheader.c29 int family = -1, model = -1, step = -1; local
38 family = (a >> 8) & 0xf; /* bits 11 - 8 */
42 /* extended family */
43 if (family == 0xf)
44 family += (a >> 20) & 0xff;
47 if (family >= 0x6)
50 nb = scnprintf(buffer, sz, fmt, vendor, family, model, step);
78 /* Full CPUID format for x86 is vendor-family-model-stepping */
109 "vendor-family-model-stepping\n", id);
/linux-master/arch/x86/kernel/cpu/microcode/
H A Dinternal.h101 void load_ucode_amd_bsp(struct early_load_data *ed, unsigned int family);
102 void load_ucode_amd_ap(unsigned int family);
103 int save_microcode_in_initrd_amd(unsigned int family);
108 static inline void load_ucode_amd_bsp(struct early_load_data *ed, unsigned int family) { } argument
109 static inline void load_ucode_amd_ap(unsigned int family) { } argument
110 static inline int save_microcode_in_initrd_amd(unsigned int family) { return -EINVAL; } argument
/linux-master/tools/net/ynl/lib/
H A Dnlspec.py26 family back reference to the full family
31 def __init__(self, family, yaml):
33 self.family = family
40 family.add_unresolved(self)
75 super().__init__(enum_set.family, yaml)
113 def __init__(self, family, yaml):
114 super().__init__(family, yaml)
167 def __init__(self, family, attr_se
[all...]
/linux-master/net/ceph/
H A Ddecode.c152 static int get_sockaddr_encoding_len(sa_family_t family) argument
160 switch (family) {
172 sa_family_t family = get_unaligned(&addr->in_addr.ss_family); local
173 int addr_len = get_sockaddr_encoding_len(family);
180 sa_family_t family = get_unaligned(&addr->in_addr.ss_family); local
181 int addr_len = get_sockaddr_encoding_len(family);
191 ceph_encode_16(p, family);
192 ceph_encode_copy(p, addr->in_addr.__data, addr_len - sizeof(family));
/linux-master/include/net/netfilter/
H A Dnf_conntrack_count.h18 struct nf_conncount_data *nf_conncount_init(struct net *net, unsigned int family,
20 void nf_conncount_destroy(struct net *net, unsigned int family,

Completed in 240 milliseconds

1234567891011>>