SO_PRIORITY
case SO_PRIORITY:
case SO_PRIORITY:
case SO_PRIORITY:
case SO_PRIORITY:
case SO_PRIORITY:
case SO_PRIORITY:
case SO_PRIORITY:
put_cmsg(msg, SOL_SOCKET, SO_PRIORITY, sizeof(__u32), &priority);
if (bpf_getsockopt(ctx, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio)))
if (bpf_setsockopt(ctx, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio)))
ASSERT_GE(getsockopt(fd, SOL_SOCKET, SO_PRIORITY, &prio, &socklen), 0,
ASSERT_GE(getsockopt(accepted_fd, SOL_SOCKET, SO_PRIORITY, &prio, &socklen), 0,
ASSERT_GE(getsockopt(fd, SOL_SOCKET, SO_PRIORITY, &prio, &socklen), 0,
.optname = SO_PRIORITY,
.optname = SO_PRIORITY,
ret = setsockopt(sock, SOL_SOCKET, SO_PRIORITY,
if (misc_opts(ctx, SO_MARK) || misc_opts(ctx, SO_PRIORITY))
if (misc_opts(ctx, SO_MARK) || misc_opts(ctx, SO_PRIORITY))
if (bpf_setsockopt(newsk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio)))
if (bpf_getsockopt(newsk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio)))
if (bpf_setsockopt(sk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio)))
if (bpf_getsockopt(sk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio)))
{ .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
SOL_SOCKET, SO_PRIORITY, &opt.priority);
setsockopt(fd, SOL_SOCKET, SO_PRIORITY,
opt.name = SO_PRIORITY;