Lines Matching refs:opsize

24 			       const unsigned char *ptr, int opsize,  in mptcp_parse_option()  argument
63 if (opsize != expected_opsize && in mptcp_parse_option()
65 opsize != TCPOLEN_MPTCP_MPC_ACK_DATA_CSUM)) in mptcp_parse_option()
70 if (opsize != TCPOLEN_MPTCP_MPC_SYN) { in mptcp_parse_option()
94 if (opsize >= TCPOLEN_MPTCP_MPC_SYNACK) { in mptcp_parse_option()
98 if (opsize >= TCPOLEN_MPTCP_MPC_ACK) { in mptcp_parse_option()
102 if (opsize >= TCPOLEN_MPTCP_MPC_ACK_DATA) { in mptcp_parse_option()
115 if (opsize == TCPOLEN_MPTCP_MPC_ACK_DATA_CSUM) { in mptcp_parse_option()
121 version, flags, opsize, mp_opt->sndr_key, in mptcp_parse_option()
126 if (opsize == TCPOLEN_MPTCP_MPJ_SYN) { in mptcp_parse_option()
137 } else if (opsize == TCPOLEN_MPTCP_MPJ_SYNACK) { in mptcp_parse_option()
148 } else if (opsize == TCPOLEN_MPTCP_MPJ_ACK) { in mptcp_parse_option()
196 if (opsize != expected_opsize && in mptcp_parse_option()
197 opsize != expected_opsize + TCPOLEN_MPTCP_DSS_CHECKSUM) in mptcp_parse_option()
228 if (opsize == expected_opsize + TCPOLEN_MPTCP_DSS_CHECKSUM) { in mptcp_parse_option()
245 if (opsize == TCPOLEN_MPTCP_ADD_ADDR || in mptcp_parse_option()
246 opsize == TCPOLEN_MPTCP_ADD_ADDR_PORT) in mptcp_parse_option()
249 else if (opsize == TCPOLEN_MPTCP_ADD_ADDR6 || in mptcp_parse_option()
250 opsize == TCPOLEN_MPTCP_ADD_ADDR6_PORT) in mptcp_parse_option()
256 if (opsize == TCPOLEN_MPTCP_ADD_ADDR_BASE || in mptcp_parse_option()
257 opsize == TCPOLEN_MPTCP_ADD_ADDR_BASE_PORT) in mptcp_parse_option()
260 else if (opsize == TCPOLEN_MPTCP_ADD_ADDR6_BASE || in mptcp_parse_option()
261 opsize == TCPOLEN_MPTCP_ADD_ADDR6_BASE_PORT) in mptcp_parse_option()
275 if (opsize == TCPOLEN_MPTCP_ADD_ADDR_PORT || in mptcp_parse_option()
276 opsize == TCPOLEN_MPTCP_ADD_ADDR_BASE_PORT) { in mptcp_parse_option()
285 if (opsize == TCPOLEN_MPTCP_ADD_ADDR6_PORT || in mptcp_parse_option()
286 opsize == TCPOLEN_MPTCP_ADD_ADDR6_BASE_PORT) { in mptcp_parse_option()
302 if (opsize < TCPOLEN_MPTCP_RM_ADDR_BASE + 1 || in mptcp_parse_option()
303 opsize > TCPOLEN_MPTCP_RM_ADDR_BASE + MPTCP_RM_IDS_MAX) in mptcp_parse_option()
309 mp_opt->rm_list.nr = opsize - TCPOLEN_MPTCP_RM_ADDR_BASE; in mptcp_parse_option()
316 if (opsize != TCPOLEN_MPTCP_PRIO) in mptcp_parse_option()
325 if (opsize != TCPOLEN_MPTCP_FASTCLOSE) in mptcp_parse_option()
336 if (opsize != TCPOLEN_MPTCP_RST) in mptcp_parse_option()
351 if (opsize != TCPOLEN_MPTCP_FAIL) in mptcp_parse_option()
380 int opsize; in mptcp_get_options() local
391 opsize = *ptr++; in mptcp_get_options()
392 if (opsize < 2) /* "silly options" */ in mptcp_get_options()
394 if (opsize > length) in mptcp_get_options()
397 mptcp_parse_option(skb, ptr, opsize, mp_opt); in mptcp_get_options()
398 ptr += opsize - 2; in mptcp_get_options()
399 length -= opsize; in mptcp_get_options()