Lines Matching refs:net
84 int net; /* socket descriptor */ variable
198 close(net); in Finish()
312 if ((net = socket(AF_INET, SOCK_RAW, protnum)) < 0) { in main()
320 if (bind(net, &wherefrom, sizeof(wherefrom)) < 0) { in main()
326 if (connect(net,&whereto,sizeof(struct sockaddr_in)) < 0 ) { in main()
328 close(net); in main()
340 if (tun > net) in main()
343 lastfd = net; in main()
348 FD_SET(tun,&rfds); FD_SET(net,&rfds); in main()
353 close(net); in main()
358 close(net); in main()
363 if(FD_ISSET(net,&rfds)) { in main()
365 len = read(net, buf, sizeof(buf)); in main()
379 if(send(net, buf, len,0) <= 0) { in main()