Lines Matching defs:opt

28 	int opt;
41 { .opt = SO_REUSEADDR, .flip = 1, },
42 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, },
43 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, },
44 { .opt = SO_KEEPALIVE, .flip = 1, },
45 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
46 { .opt = SO_REUSEPORT, .flip = 1, },
47 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, },
48 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, },
49 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, },
50 { .opt = SO_TXREHASH, .flip = 1, },
51 { .opt = 0, },
55 { .opt = TCP_NODELAY, .flip = 1, },
56 { .opt = TCP_KEEPIDLE, .new = 123, .expected = 123, .restore = 321, },
57 { .opt = TCP_KEEPINTVL, .new = 123, .expected = 123, .restore = 321, },
58 { .opt = TCP_KEEPCNT, .new = 123, .expected = 123, .restore = 124, },
59 { .opt = TCP_SYNCNT, .new = 123, .expected = 123, .restore = 124, },
60 { .opt = TCP_WINDOW_CLAMP, .new = 8123, .expected = 8123, .restore = 8124, },
61 { .opt = TCP_CONGESTION, },
62 { .opt = TCP_THIN_LINEAR_TIMEOUTS, .flip = 1, },
63 { .opt = TCP_USER_TIMEOUT, .new = 123400, .expected = 123400, },
64 { .opt = TCP_NOTSENT_LOWAT, .new = 1314, .expected = 1314, },
65 { .opt = 0, },
69 { .opt = IP_TOS, .new = 0xe1, .expected = 0xe1, .tcp_expected = 0xe0, },
70 { .opt = 0, },
74 { .opt = IPV6_TCLASS, .new = 0xe1, .expected = 0xe1, .tcp_expected = 0xe0, },
75 { .opt = IPV6_AUTOFLOWLABEL, .flip = 1, },
76 { .opt = 0, },
88 int old, tmp, new, opt = t->opt;
90 opt = t->opt;
92 if (bpf_getsockopt(ctx, level, opt, &old, sizeof(old)))
95 if (level == SOL_SOCKET && opt == SO_TXREHASH && old != 0 && old != 1)
99 if (bpf_setsockopt(ctx, level, opt, &new, sizeof(new)))
101 if (bpf_getsockopt(ctx, level, opt, &tmp, sizeof(tmp)) ||
105 if (bpf_setsockopt(ctx, level, opt, &old, sizeof(old)))
115 int old, tmp, new, expected, opt;
117 opt = t->opt;
124 if (bpf_getsockopt(ctx, level, opt, &old, sizeof(old)) ||
128 if (bpf_setsockopt(ctx, level, opt, &new, sizeof(new)))
130 if (bpf_getsockopt(ctx, level, opt, &tmp, sizeof(tmp)) ||
136 if (bpf_setsockopt(ctx, level, opt, &old, sizeof(old)))
150 if (!t->opt)
167 if (!t->opt)
184 if (!t->opt)
203 if (!t->opt)
209 if (t->opt == TCP_CONGESTION) {