/net/ipv4/ |
D | tcp_offload.c | 18 unsigned int seq, unsigned int mss) in tcp_gso_tstamp() argument 21 if (before(ts_seq, seq + mss)) { in tcp_gso_tstamp() 28 seq += mss; in tcp_gso_tstamp() 64 unsigned int mss; in tcp_gso_segment() local 80 mss = tcp_skb_mss(skb); in tcp_gso_segment() 81 if (unlikely(skb->len <= mss)) in tcp_gso_segment() 104 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); in tcp_gso_segment() 122 delta = htonl(oldlen + (thlen + mss)); in tcp_gso_segment() 129 tcp_gso_tstamp(segs, skb_shinfo(gso_skb)->tskey, seq, mss); in tcp_gso_segment() 141 seq += mss; in tcp_gso_segment() [all …]
|
D | tcp_output.c | 128 int mss = tp->advmss; in tcp_advertise_mss() local 133 if (metric < mss) { in tcp_advertise_mss() 134 mss = metric; in tcp_advertise_mss() 135 tp->advmss = mss; in tcp_advertise_mss() 139 return (__u16)mss; in tcp_advertise_mss() 193 u32 tcp_default_init_rwnd(u32 mss) in tcp_default_init_rwnd() argument 202 if (mss > 1460) in tcp_default_init_rwnd() 203 init_rwnd = max((1460 * init_rwnd) / mss, 2U); in tcp_default_init_rwnd() 214 void tcp_select_initial_window(int __space, __u32 mss, in tcp_select_initial_window() argument 227 if (space > mss) in tcp_select_initial_window() [all …]
|
D | syncookies.c | 160 const __u16 mss = *mssp; in __cookie_v4_init_sequence() local 163 if (mss >= msstab[mssind]) in __cookie_v4_init_sequence() 269 int mss; in cookie_v4_check() local 279 (mss = __cookie_v4_check(ip_hdr(skb), th, cookie)) == 0) { in cookie_v4_check() 302 req->mss = mss; in cookie_v4_check() 351 tcp_select_initial_window(tcp_full_space(sk), req->mss, in cookie_v4_check()
|
D | tcp_timer.c | 126 int mss; in tcp_mtu_probing() local 128 mss = tcp_mtu_to_mss(sk, icsk->icsk_mtup.search_low) >> 1; in tcp_mtu_probing() 129 mss = min(sysctl_tcp_base_mss, mss); in tcp_mtu_probing() 130 mss = max(mss, 68 - tp->tcp_header_len); in tcp_mtu_probing() 131 icsk->icsk_mtup.search_low = tcp_mss_to_mtu(sk, mss); in tcp_mtu_probing()
|
D | tcp_metrics.c | 30 u16 mss; member 129 tm->tcpm_fastopen.mss = 0; in tcpm_suck_dst() 686 void tcp_fastopen_cache_get(struct sock *sk, u16 *mss, in tcp_fastopen_cache_get() argument 700 if (tfom->mss) in tcp_fastopen_cache_get() 701 *mss = tfom->mss; in tcp_fastopen_cache_get() 710 void tcp_fastopen_cache_set(struct sock *sk, u16 mss, in tcp_fastopen_cache_set() argument 724 if (mss) in tcp_fastopen_cache_set() 725 tfom->mss = mss; in tcp_fastopen_cache_set() 852 if (tfom->mss && in tcp_metrics_fill_info() 854 tfom->mss) < 0) in tcp_metrics_fill_info()
|
D | inet_lro.c | 173 lro_desc->mss = tcp_data_len; in lro_init_desc() 210 if (tcp_data_len > lro_desc->mss) in lro_add_common() 211 lro_desc->mss = tcp_data_len; in lro_add_common() 283 skb_shinfo(lro_desc->parent)->gso_size = lro_desc->mss; in lro_flush()
|
D | tcp_input.c | 384 u32 mss = tcp_sk(sk)->advmss; in tcp_fixup_rcvbuf() local 387 rcvmem = 2 * SKB_TRUESIZE(mss + MAX_TCP_HEADER) * in tcp_fixup_rcvbuf() 388 tcp_default_init_rwnd(mss); in tcp_fixup_rcvbuf() 1150 unsigned int mss; in tcp_match_skb_to_sack() local 1157 mss = tcp_skb_mss(skb); in tcp_match_skb_to_sack() 1162 if (pkt_len < mss) in tcp_match_skb_to_sack() 1163 pkt_len = mss; in tcp_match_skb_to_sack() 1166 if (pkt_len < mss) in tcp_match_skb_to_sack() 1173 if (pkt_len > mss) { in tcp_match_skb_to_sack() 1174 unsigned int new_len = (pkt_len / mss) * mss; in tcp_match_skb_to_sack() [all …]
|
D | udp_offload.c | 149 unsigned int mss; in udp4_ufo_fragment() local 164 mss = skb_shinfo(skb)->gso_size; in udp4_ufo_fragment() 165 if (unlikely(skb->len <= mss)) in udp4_ufo_fragment() 181 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); in udp4_ufo_fragment()
|
D | tcp_minisocks.c | 371 int mss = dst_metric_advmss(dst); in tcp_openreq_init_rwin() local 373 if (tp->rx_opt.user_mss && tp->rx_opt.user_mss < mss) in tcp_openreq_init_rwin() 374 mss = tp->rx_opt.user_mss; in tcp_openreq_init_rwin() 386 mss - (ireq->tstamp_ok ? TCPOLEN_TSTAMP_ALIGNED : 0), in tcp_openreq_init_rwin() 511 newtp->rx_opt.mss_clamp = req->mss; in tcp_create_openreq_child()
|
/net/netfilter/ |
D | xt_osf.c | 204 u16 window, totlen, mss = 0; in xt_osf_match_packet() local 275 mss = optp[3]; in xt_osf_match_packet() 276 mss <<= 8; in xt_osf_match_packet() 277 mss |= optp[2]; in xt_osf_match_packet() 279 mss = ntohs((__force __be16)mss); in xt_osf_match_packet() 311 if (window == f->wss.val * mss || in xt_osf_match_packet() 317 if (window == f->wss.val * (mss + 40) || in xt_osf_match_packet()
|
D | xt_TCPMSS.c | 110 if (info->mss == XT_TCPMSS_CLAMP_PMTU) { in tcpmss_mangle_packet() 126 newmss = info->mss; in tcpmss_mangle_packet() 276 if (info->mss == XT_TCPMSS_CLAMP_PMTU && in tcpmss_tg4_check() 298 if (info->mss == XT_TCPMSS_CLAMP_PMTU && in tcpmss_tg6_check()
|
D | nf_synproxy_core.c | 59 opts->mss = get_unaligned_be16(ptr); in synproxy_parse_options() 118 opts->mss); in synproxy_build_options()
|
D | Kconfig | 919 -j TCPMSS --clamp-mss-to-pmtu
|
/net/ipv6/ |
D | syncookies.c | 120 const __u16 mss = *mssp; in __cookie_v6_init_sequence() local 123 if (mss >= msstab[mssind]) in __cookie_v6_init_sequence() 166 int mss; in cookie_v6_check() local 175 (mss = __cookie_v6_check(ipv6_hdr(skb), th, cookie)) == 0) { in cookie_v6_check() 201 req->mss = mss; in cookie_v6_check() 259 tcp_select_initial_window(tcp_full_space(sk), req->mss, in cookie_v6_check()
|
D | udp_offload.c | 24 unsigned int mss; in udp6_ufo_fragment() local 34 mss = skb_shinfo(skb)->gso_size; in udp6_ufo_fragment() 35 if (unlikely(skb->len <= mss)) in udp6_ufo_fragment() 54 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); in udp6_ufo_fragment()
|
/net/ipv4/netfilter/ |
D | ipt_SYNPROXY.c | 78 u16 mss = opts->mss; in synproxy_send_client_synack() local 95 nth->seq = htonl(__cookie_v4_init_sequence(iph, th, &mss)); in synproxy_send_client_synack() 237 int mss; in synproxy_recv_client_ack() local 239 mss = __cookie_v4_check(ip_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack() 240 if (mss == 0) { in synproxy_recv_client_ack() 246 opts->mss = mss; in synproxy_recv_client_ack()
|
/net/ipv6/netfilter/ |
D | ip6t_SYNPROXY.c | 93 u16 mss = opts->mss; in synproxy_send_client_synack() local 110 nth->seq = htonl(__cookie_v6_init_sequence(iph, th, &mss)); in synproxy_send_client_synack() 252 int mss; in synproxy_recv_client_ack() local 254 mss = __cookie_v6_check(ipv6_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack() 255 if (mss == 0) { in synproxy_recv_client_ack() 261 opts->mss = mss; in synproxy_recv_client_ack()
|
/net/decnet/ |
D | af_decnet.c | 1853 unsigned int mss = 230 - DN_MAX_NSP_DATA_HEADER; in dn_mss_from_pmtu() local 1868 if (mtu > mss) in dn_mss_from_pmtu() 1869 mss = mtu; in dn_mss_from_pmtu() 1870 return mss; in dn_mss_from_pmtu() 1916 size_t mss; in dn_sendmsg() local 1965 mss = scp->segsize_rem; in dn_sendmsg() 1968 mss = dn_current_mss(sk, flags); in dn_sendmsg() 1972 if (size > mss) { in dn_sendmsg() 1995 if (len > mss) in dn_sendmsg() 1996 len = mss; in dn_sendmsg()
|
D | dn_route.c | 286 u32 mss = mtu - DN_MAX_NSP_DATA_HEADER; in dn_dst_update_pmtu() local 288 if (!existing_mss || existing_mss > mss) in dn_dst_update_pmtu() 289 dst_metric_set(dst, RTAX_ADVMSS, mss); in dn_dst_update_pmtu() 904 unsigned int mss = dn_mss_from_pmtu(dev, dst_mtu(&rt->dst)); in dn_rt_set_next_hop() local 905 if (mss_metric > mss) in dn_rt_set_next_hop() 906 dst_metric_set(&rt->dst, RTAX_ADVMSS, mss); in dn_rt_set_next_hop()
|
/net/core/ |
D | skbuff.c | 2911 unsigned int mss = skb_shinfo(head_skb)->gso_size; in skb_segment() local 2945 if (len > mss) in skb_segment() 2946 len = mss; in skb_segment() 3062 pos, mss); in skb_segment()
|