Home
last modified time | relevance | path

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

/net/mptcp/
Doptions.c24 const unsigned char *ptr, int opsize, in mptcp_parse_option() argument
58 if (opsize != expected_opsize && in mptcp_parse_option()
60 opsize != TCPOLEN_MPTCP_MPC_ACK_DATA_CSUM)) in mptcp_parse_option()
65 if (opsize != TCPOLEN_MPTCP_MPC_SYN) { in mptcp_parse_option()
89 if (opsize >= TCPOLEN_MPTCP_MPC_SYNACK) { in mptcp_parse_option()
93 if (opsize >= TCPOLEN_MPTCP_MPC_ACK) { in mptcp_parse_option()
97 if (opsize >= TCPOLEN_MPTCP_MPC_ACK_DATA) { in mptcp_parse_option()
110 if (opsize == TCPOLEN_MPTCP_MPC_ACK_DATA_CSUM) { in mptcp_parse_option()
116 version, flags, opsize, mp_opt->sndr_key, in mptcp_parse_option()
121 if (opsize == TCPOLEN_MPTCP_MPJ_SYN) { in mptcp_parse_option()
[all …]
/net/netfilter/
Dnf_conntrack_proto_tcp.c349 int opsize; in tcp_options() local
360 opsize=*ptr++; in tcp_options()
361 if (opsize < 2) /* "silly options" */ in tcp_options()
363 if (opsize > length) in tcp_options()
367 && opsize == TCPOLEN_SACK_PERM) in tcp_options()
370 && opsize == TCPOLEN_WINDOW) { in tcp_options()
379 ptr += opsize - 2; in tcp_options()
380 length -= opsize; in tcp_options()
411 int opsize, i; in tcp_sack() local
422 opsize = *ptr++; in tcp_sack()
[all …]
Dnf_synproxy_core.c44 int opsize; in synproxy_parse_options() local
55 opsize = *ptr++; in synproxy_parse_options()
56 if (opsize < 2) in synproxy_parse_options()
58 if (opsize > length) in synproxy_parse_options()
63 if (opsize == TCPOLEN_MSS) { in synproxy_parse_options()
69 if (opsize == TCPOLEN_WINDOW) { in synproxy_parse_options()
77 if (opsize == TCPOLEN_TIMESTAMP) { in synproxy_parse_options()
84 if (opsize == TCPOLEN_SACK_PERM) in synproxy_parse_options()
89 ptr += opsize - 2; in synproxy_parse_options()
90 length -= opsize; in synproxy_parse_options()
/net/sched/
Dsch_cake.c962 int opsize; in cake_get_tcpopt() local
972 opsize = *ptr++; in cake_get_tcpopt()
973 if (opsize < 2 || opsize > length) in cake_get_tcpopt()
977 *oplen = opsize; in cake_get_tcpopt()
981 ptr += opsize - 2; in cake_get_tcpopt()
982 length -= opsize; in cake_get_tcpopt()
1069 int opsize; in cake_tcph_get_tstamp() local
1071 ptr = cake_get_tcpopt(tcph, TCPOPT_TIMESTAMP, &opsize); in cake_tcph_get_tstamp()
1073 if (ptr && opsize == TCPOLEN_TIMESTAMP) { in cake_tcph_get_tstamp()
1101 int opsize; in cake_tcph_may_drop() local
[all …]
/net/ipv4/
Dtcp_input.c3988 int opsize) in smc_parse_options() argument
3992 if (th->syn && !(opsize & 1) && in smc_parse_options()
3993 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
4014 int opsize; in tcp_parse_mss_option() local
4025 opsize = *ptr++; in tcp_parse_mss_option()
4026 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
4028 if (opsize > length) in tcp_parse_mss_option()
4030 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
4039 ptr += opsize - 2; in tcp_parse_mss_option()
4040 length -= opsize; in tcp_parse_mss_option()
[all …]