Lines Matching defs:options
426 static void smc_options_write(__be32 *ptr, u16 *options)
430 if (unlikely(OPTION_SMC & *options)) {
442 u16 options; /* bit field of OPTION_* */
459 if (unlikely(OPTION_MPTCP & opts->options))
603 /* Write previously computed TCP options to the packet.
606 * TCP options, we learned this through the hard way, so be careful here.
620 u16 options = opts->options; /* mungable copy */
622 if (unlikely(OPTION_MD5 & options)) {
636 if (likely(OPTION_TS & options)) {
637 if (unlikely(OPTION_SACK_ADVERTISE & options)) {
642 options &= ~OPTION_SACK_ADVERTISE;
653 if (unlikely(OPTION_SACK_ADVERTISE & options)) {
660 if (unlikely(OPTION_WSCALE & options)) {
687 if (unlikely(OPTION_FAST_OPEN_COOKIE & options)) {
711 smc_options_write(ptr, &options);
724 opts->options |= OPTION_SMC;
741 opts->options |= OPTION_SMC;
758 opts->options |= OPTION_MPTCP;
765 /* Compute TCP options for SYN packets. This is not the final
782 opts->options |= OPTION_MD5;
801 opts->options |= OPTION_TS;
808 opts->options |= OPTION_WSCALE;
812 opts->options |= OPTION_SACK_ADVERTISE;
813 if (unlikely(!(OPTION_TS & opts->options)))
824 opts->options |= OPTION_FAST_OPEN_COOKIE;
838 opts->options |= OPTION_MPTCP;
848 /* Set up TCP options for SYN-ACKs. */
863 opts->options |= OPTION_MD5;
867 * options. There was discussion about disabling SACK
882 opts->options |= OPTION_WSCALE;
886 opts->options |= OPTION_TS;
892 opts->options |= OPTION_SACK_ADVERTISE;
903 opts->options |= OPTION_FAST_OPEN_COOKIE;
919 /* Compute TCP options for ESTABLISHED sockets. This is not the
930 opts->options = 0;
938 opts->options |= OPTION_MD5;
945 opts->options |= OPTION_TS;
951 /* MPTCP options have precedence over SACK for the limited TCP
963 opts->options |= OPTION_MPTCP;
1694 /* Calculate MSS not accounting any TCP options. */
1701 /* Calculate base mss without TCP options:
1714 /* Clamp it (mss_clamp does not include tcp options) */
1721 /* Then reserve room for full set of TCP options and 8 bytes of data */
1730 /* Subtract TCP options size, not including SACKs */
1779 for TCP options, but includes only bare TCP header.
1783 It also does not include TCP options.
1788 all tcp options except for SACKs. It is evaluated,
1793 DOES NOT include either tcp or ip options.
1820 /* Compute the current effective MSS, taking SACKs and IP options,
1843 * some common options. If this is an odd packet (because we have SACK
3014 * Regular options like TIMESTAMP are taken into account.
3562 /* NOTE: No TCP options attached and we never retransmit this. */
3870 * private TCP options. The cost is reduced data space in SYN :(