Lines Matching refs:opsize
22 const unsigned char *ptr, int opsize, in mptcp_parse_option() argument
44 if (opsize != expected_opsize) in mptcp_parse_option()
49 if (opsize != TCPOLEN_MPTCP_MPC_SYN) { in mptcp_parse_option()
78 if (opsize >= TCPOLEN_MPTCP_MPC_SYNACK) { in mptcp_parse_option()
82 if (opsize >= TCPOLEN_MPTCP_MPC_ACK) { in mptcp_parse_option()
86 if (opsize == TCPOLEN_MPTCP_MPC_ACK_DATA) { in mptcp_parse_option()
99 version, flags, opsize, mp_opt->sndr_key, in mptcp_parse_option()
105 if (opsize == TCPOLEN_MPTCP_MPJ_SYN) { in mptcp_parse_option()
115 } else if (opsize == TCPOLEN_MPTCP_MPJ_SYNACK) { in mptcp_parse_option()
125 } else if (opsize == TCPOLEN_MPTCP_MPJ_ACK) { in mptcp_parse_option()
176 if (opsize != expected_opsize && in mptcp_parse_option()
177 opsize != expected_opsize + TCPOLEN_MPTCP_DSS_CHECKSUM) in mptcp_parse_option()
219 if (opsize == TCPOLEN_MPTCP_ADD_ADDR || in mptcp_parse_option()
220 opsize == TCPOLEN_MPTCP_ADD_ADDR_PORT) in mptcp_parse_option()
223 else if (opsize == TCPOLEN_MPTCP_ADD_ADDR6 || in mptcp_parse_option()
224 opsize == TCPOLEN_MPTCP_ADD_ADDR6_PORT) in mptcp_parse_option()
230 if (opsize == TCPOLEN_MPTCP_ADD_ADDR_BASE || in mptcp_parse_option()
231 opsize == TCPOLEN_MPTCP_ADD_ADDR_BASE_PORT) in mptcp_parse_option()
234 else if (opsize == TCPOLEN_MPTCP_ADD_ADDR6_BASE || in mptcp_parse_option()
235 opsize == TCPOLEN_MPTCP_ADD_ADDR6_BASE_PORT) in mptcp_parse_option()
248 if (opsize == TCPOLEN_MPTCP_ADD_ADDR_PORT || in mptcp_parse_option()
249 opsize == TCPOLEN_MPTCP_ADD_ADDR_BASE_PORT) { in mptcp_parse_option()
258 if (opsize == TCPOLEN_MPTCP_ADD_ADDR6_PORT || in mptcp_parse_option()
259 opsize == TCPOLEN_MPTCP_ADD_ADDR6_BASE_PORT) { in mptcp_parse_option()
272 if (opsize != TCPOLEN_MPTCP_RM_ADDR_BASE) in mptcp_parse_option()
308 int opsize; in mptcp_get_options() local
319 opsize = *ptr++; in mptcp_get_options()
320 if (opsize < 2) /* "silly options" */ in mptcp_get_options()
322 if (opsize > length) in mptcp_get_options()
325 mptcp_parse_option(skb, ptr, opsize, mp_opt); in mptcp_get_options()
326 ptr += opsize - 2; in mptcp_get_options()
327 length -= opsize; in mptcp_get_options()