Home
last modified time | relevance | path

Searched refs:packetsock (Results 1 – 1 of 1) sorted by relevance

/external/android-clat/
Dring.c33 int packetsock = socket(AF_PACKET, SOCK_DGRAM | SOCK_CLOEXEC, htons(ETH_P_IPV6)); in ring_create() local
34 if (packetsock < 0) { in ring_create()
40 if (setsockopt(packetsock, SOL_PACKET, PACKET_VERSION, (void *)&ver, sizeof(ver))) { in ring_create()
46 if (setsockopt(packetsock, SOL_PACKET, PACKET_LOSS, (void *)&on, sizeof(on))) { in ring_create()
62 if (setsockopt(packetsock, SOL_PACKET, PACKET_RX_RING, &req, sizeof(req)) < 0) { in ring_create()
69 packetsock, 0); in ring_create()
83 return packetsock; in ring_create()