Lines Matching refs:opsize
24 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()
132 } else if (opsize == TCPOLEN_MPTCP_MPJ_SYNACK) { in mptcp_parse_option()
143 } else if (opsize == TCPOLEN_MPTCP_MPJ_ACK) { in mptcp_parse_option()
191 if (opsize != expected_opsize && in mptcp_parse_option()
192 opsize != expected_opsize + TCPOLEN_MPTCP_DSS_CHECKSUM) in mptcp_parse_option()
223 if (opsize == expected_opsize + TCPOLEN_MPTCP_DSS_CHECKSUM) { in mptcp_parse_option()
240 if (opsize == TCPOLEN_MPTCP_ADD_ADDR || in mptcp_parse_option()
241 opsize == TCPOLEN_MPTCP_ADD_ADDR_PORT) in mptcp_parse_option()
244 else if (opsize == TCPOLEN_MPTCP_ADD_ADDR6 || in mptcp_parse_option()
245 opsize == TCPOLEN_MPTCP_ADD_ADDR6_PORT) in mptcp_parse_option()
251 if (opsize == TCPOLEN_MPTCP_ADD_ADDR_BASE || in mptcp_parse_option()
252 opsize == TCPOLEN_MPTCP_ADD_ADDR_BASE_PORT) in mptcp_parse_option()
255 else if (opsize == TCPOLEN_MPTCP_ADD_ADDR6_BASE || in mptcp_parse_option()
256 opsize == TCPOLEN_MPTCP_ADD_ADDR6_BASE_PORT) in mptcp_parse_option()
270 if (opsize == TCPOLEN_MPTCP_ADD_ADDR_PORT || in mptcp_parse_option()
271 opsize == TCPOLEN_MPTCP_ADD_ADDR_BASE_PORT) { in mptcp_parse_option()
280 if (opsize == TCPOLEN_MPTCP_ADD_ADDR6_PORT || in mptcp_parse_option()
281 opsize == TCPOLEN_MPTCP_ADD_ADDR6_BASE_PORT) { in mptcp_parse_option()
297 if (opsize < TCPOLEN_MPTCP_RM_ADDR_BASE + 1 || in mptcp_parse_option()
298 opsize > TCPOLEN_MPTCP_RM_ADDR_BASE + MPTCP_RM_IDS_MAX) in mptcp_parse_option()
304 mp_opt->rm_list.nr = opsize - TCPOLEN_MPTCP_RM_ADDR_BASE; in mptcp_parse_option()
311 if (opsize != TCPOLEN_MPTCP_PRIO) in mptcp_parse_option()
320 if (opsize != TCPOLEN_MPTCP_FASTCLOSE) in mptcp_parse_option()
330 if (opsize != TCPOLEN_MPTCP_RST) in mptcp_parse_option()
343 if (opsize != TCPOLEN_MPTCP_FAIL) in mptcp_parse_option()
372 int opsize; in mptcp_get_options() local
383 opsize = *ptr++; in mptcp_get_options()
384 if (opsize < 2) /* "silly options" */ in mptcp_get_options()
386 if (opsize > length) in mptcp_get_options()
389 mptcp_parse_option(skb, ptr, opsize, mp_opt); in mptcp_get_options()
390 ptr += opsize - 2; in mptcp_get_options()
391 length -= opsize; in mptcp_get_options()