Lines Matching refs:fdr
77 int fdr; in setup_rx() local
79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx()
80 if (fdr == -1) in setup_rx()
83 return fdr; in setup_rx()
140 static int read_verify_pkt(int fdr, char payload_char) in read_verify_pkt() argument
145 ret = read(fdr, buf, sizeof(buf)); in read_verify_pkt()
162 int fdr, fdt, ret = 0; in main() local
164 fdr = setup_rx(); in main()
170 ret |= read_verify_pkt(fdr, payload_patterns[0]); in main()
171 ret |= read_verify_pkt(fdr, payload_patterns[1]); in main()
175 if (close(fdr)) in main()