Home
last modified time | relevance | path

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

/linux/net/netfilter/
H A Dxt_TCPMSS.c117 for (i = sizeof(struct tcphdr); i <= tcp_hdrlen - TCPOLEN_MSS; i += optlen(opt, i)) { in tcpmss_mangle_packet()
118 if (opt[i] == TCPOPT_MSS && opt[i+1] == TCPOLEN_MSS) { in tcpmss_mangle_packet()
154 if (skb_tailroom(skb) < TCPOLEN_MSS) { in tcpmss_mangle_packet()
156 TCPOLEN_MSS - skb_tailroom(skb), in tcpmss_mangle_packet()
162 skb_put(skb, TCPOLEN_MSS); in tcpmss_mangle_packet()
177 memmove(opt + TCPOLEN_MSS, opt, len - sizeof(struct tcphdr)); in tcpmss_mangle_packet()
180 htons(len), htons(len + TCPOLEN_MSS), true); in tcpmss_mangle_packet()
182 opt[1] = TCPOLEN_MSS; in tcpmss_mangle_packet()
189 tcph->doff += TCPOLEN_MSS/4; in tcpmss_mangle_packet()
192 return TCPOLEN_MSS; in tcpmss_mangle_packet()
H A Dxt_tcpmss.c55 && (optlen - i) >= TCPOLEN_MSS in tcpmss_mt()
56 && op[i+1] == TCPOLEN_MSS) { in tcpmss_mt()
H A Dnf_synproxy_core.c63 if (opsize == TCPOLEN_MSS) { in synproxy_parse_options()
122 (TCPOLEN_MSS << 16) | in synproxy_build_options()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_tracing_net.h79 #define TCPOLEN_MSS 4 macro
H A Dtest_tcp_custom_syncookie.c248 if (*opsize == TCPOLEN_MSS && ctx->tcp->syn && mss) in tcp_parse_option()
368 *ctx->ptr32++ = bpf_htonl(TCPOPT_MSS << 24 | TCPOLEN_MSS << 16 | in tcp_write_options()
H A Dxdp_synproxy_kern.c37 #define TCPOLEN_MSS 4 macro
488 *buf++ = bpf_htonl((TCPOPT_MSS << 24) | (TCPOLEN_MSS << 16) | mss); in tcp_mkoptions()
/linux/include/net/
H A Dtcp.h214 #define TCPOLEN_MSS 4 macro
/linux/net/ipv4/
H A Dtcp_input.c4162 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
4216 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
H A Dtcp_output.c678 (TCPOLEN_MSS << 16) | in tcp_options_write()