Searched refs:rcv_sock (Results 1 – 1 of 1) sorted by relevance
372 int rcv_sock, ret; in walk_tx() local395 rcv_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in walk_tx()396 if (rcv_sock == -1) { in walk_tx()401 pair_udp_setfilter(rcv_sock); in walk_tx()404 ret = bind(rcv_sock, (struct sockaddr *) &ll, sizeof(ll)); in walk_tx()479 while ((ret = recvfrom(rcv_sock, packet, sizeof(packet), in walk_tx()489 close(rcv_sock); in walk_tx()