Lines Matching refs:fd1
309 int fd1, fd2, opt;
312 fd1 = socket(p.recv_family, p.protocol, 0);
313 if (fd1 < 0)
320 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt)))
325 attach_ebpf(fd1, 10);
328 if (bind(fd1, addr, sockaddr_size()))
390 int fd1, fd2, opt = 1;
393 fd1 = socket(AF_INET, SOCK_DGRAM, 0);
394 if (fd1 < 0)
399 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt)))
404 attach_ebpf(fd1, 10);
407 close(fd1);