summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8ceca1e)
This is not supported by PF_PACKET sockets so there is no change in
performance.
s = CHECK(socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)));
s = CHECK(socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)));
+ if (busy_poll_us) {
+ CHECK(setsockopt(s, SOL_SOCKET, SO_BUSY_POLL,
+ &busy_poll_us, sizeof(busy_poll_us)));
+ }
+
int val = TPACKET_V2;
CHECK(setsockopt(s, SOL_PACKET, PACKET_VERSION, &val, sizeof(val)));
socklen_t len = sizeof(ctx->hdrlen);
int val = TPACKET_V2;
CHECK(setsockopt(s, SOL_PACKET, PACKET_VERSION, &val, sizeof(val)));
socklen_t len = sizeof(ctx->hdrlen);