Lines Matching defs:fd2
309 int fd1, fd2, opt;
315 fd2 = socket(p.recv_family, p.protocol, 0);
316 if (fd2 < 0)
322 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt)))
326 attach_ebpf(fd2, 10);
331 if (!bind(fd2, addr, sockaddr_size()) || errno != EADDRINUSE)
390 int fd1, fd2, opt = 1;
396 fd2 = socket(AF_INET, SOCK_DGRAM, 0);
397 if (fd2 < 0)
401 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt)))
405 attach_cbpf(fd2, 10);
408 close(fd2);