sock_type
int sock_type;
if (sock->type != pnp->sock_type) {
.sock_type = SOCK_DGRAM,
.sock_type = SOCK_SEQPACKET,
int sock_type;
sock_type = yf->is_classic ? yf->classic_id : NETLINK_GENERIC;
ys->socket = socket(AF_NETLINK, SOCK_RAW, sock_type);
static int *connect_to_server(int family, int sock_type, const char *addr,
established_socks[i] = connect_to_addr_str(family, sock_type,
static void remove_seen(int family, int sock_type, const char *addr, __u16 port,
static void remove_seen_established(int family, int sock_type, const char *addr,
static void remove_unseen(int family, int sock_type, const char *addr,
static void remove_unseen_established(int family, int sock_type,
static void remove_all(int family, int sock_type, const char *addr,
static void remove_all_established(int family, int sock_type, const char *addr,
static void add_some(int family, int sock_type, const char *addr, __u16 port,
new_socks = start_reuseport_server(family, sock_type, addr, port, 0,
static void add_some_established(int family, int sock_type, const char *addr,
new_socks = connect_to_server(family, sock_type, addr, port,
static void force_realloc(int family, int sock_type, const char *addr,
new_socks = start_reuseport_server(family, sock_type, addr, port, 0,
static void force_realloc_established(int family, int sock_type,
void (*test)(int family, int sock_type, const char *addr, __u16 port,
int sock_type;
.sock_type = SOCK_DGRAM,
.sock_type = SOCK_DGRAM,
.sock_type = SOCK_DGRAM,
.sock_type = SOCK_DGRAM,
.sock_type = SOCK_DGRAM,
.sock_type = SOCK_STREAM,
.sock_type = SOCK_STREAM,
.sock_type = SOCK_STREAM,
.sock_type = SOCK_STREAM,
.sock_type = SOCK_STREAM,
.sock_type = SOCK_STREAM,
.sock_type = SOCK_STREAM,
.sock_type = SOCK_STREAM,
.sock_type = SOCK_STREAM,
.sock_type = SOCK_STREAM,
fds = start_reuseport_server(tc->family, tc->sock_type, addr, port, 0,
established_fds = connect_to_server(tc->family, tc->sock_type,
link = bpf_program__attach_iter(tc->sock_type == SOCK_STREAM ?
tc->test(tc->family, tc->sock_type, addr, port, fds, tc->init_socks,
static void do_test(int sock_type, bool onebyone)
fds[i] = start_reuseport_server(AF_INET6, sock_type, "::1", 0, 0,
if (sock_type == SOCK_STREAM)
link = bpf_program__attach_iter(sock_type == SOCK_STREAM ?
int sock_type;
.sock_type = SOCK_STREAM,
.sock_type = SOCK_DGRAM,
.sock_type = SOCK_SEQPACKET,
self->sockfd = socket(AF_UNIX, variant->sock_type, 0);
int sock_type;
.sock_type = SOCK_STREAM,
.sock_type = SOCK_DGRAM,
.sock_type = SOCK_SEQPACKET,
self->sockfd = socket(AF_UNIX, variant->sock_type, 0);
int sock_type, int flags)
cli_fd = socket(AF_UNIX, sock_type, 0);
srv_fd = set_up_named_unix_server(_metadata, sock_type, path);
int sock_type, int flags)
srv_fd = set_up_named_unix_server(_metadata, sock_type, path);
cli_fd = socket(AF_UNIX, sock_type, 0);
int sock_type;
opt_len = sizeof(sock_type);
ASSERT_EQ(0, getsockopt(client_fd, SOL_SOCKET, SO_TYPE, &sock_type,
if (sock_type == SOCK_STREAM && !has_remote_port) {
if (sock_type == SOCK_STREAM && !has_remote_port) {
} else if (sock_type == SOCK_STREAM) {
int ret, s, sock_type;
sock_type = SOCK_DGRAM;
sock_type = SOCK_STREAM;
s = socket(family, sock_type, 0);