/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() 67 unsigned int mss; in tcp_gso_segment() local 83 mss = skb_shinfo(skb)->gso_size; in tcp_gso_segment() 84 if (unlikely(skb->len <= mss)) in tcp_gso_segment() 90 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); in tcp_gso_segment() 113 mss *= skb_shinfo(segs)->gso_segs; in tcp_gso_segment() 115 delta = htonl(oldlen + (thlen + mss)); in tcp_gso_segment() 122 tcp_gso_tstamp(segs, skb_shinfo(gso_skb)->tskey, seq, mss); in tcp_gso_segment() [all …]
|
D | syncookies.c | 169 const __u16 mss = *mssp; in __cookie_v4_init_sequence() local 172 if (mss >= msstab[mssind]) in __cookie_v4_init_sequence() 299 int mss; in cookie_v4_check() local 311 mss = __cookie_v4_check(ip_hdr(skb), th, cookie); in cookie_v4_check() 312 if (mss == 0) { in cookie_v4_check() 344 req->mss = mss; in cookie_v4_check() 393 tcp_select_initial_window(tcp_full_space(sk), req->mss, in cookie_v4_check()
|
D | tcp_output.c | 123 int mss = tp->advmss; in tcp_advertise_mss() local 128 if (metric < mss) { in tcp_advertise_mss() 129 mss = metric; in tcp_advertise_mss() 130 tp->advmss = mss; in tcp_advertise_mss() 134 return (__u16)mss; in tcp_advertise_mss() 190 u32 tcp_default_init_rwnd(u32 mss) in tcp_default_init_rwnd() argument 199 if (mss > 1460) in tcp_default_init_rwnd() 200 init_rwnd = max((1460 * init_rwnd) / mss, 2U); in tcp_default_init_rwnd() 211 void tcp_select_initial_window(int __space, __u32 mss, in tcp_select_initial_window() argument 224 if (space > mss) in tcp_select_initial_window() [all …]
|
D | tcp_timer.c | 139 int mss; in tcp_mtu_probing() local 141 mss = tcp_mtu_to_mss(sk, icsk->icsk_mtup.search_low) >> 1; in tcp_mtu_probing() 142 mss = min(net->ipv4.sysctl_tcp_base_mss, mss); in tcp_mtu_probing() 143 mss = max(mss, 68 - tp->tcp_header_len); in tcp_mtu_probing() 144 mss = max(mss, net->ipv4.sysctl_tcp_min_snd_mss); in tcp_mtu_probing() 145 icsk->icsk_mtup.search_low = tcp_mss_to_mtu(sk, mss); in tcp_mtu_probing()
|
D | tcp_metrics.c | 31 u16 mss; member 126 tm->tcpm_fastopen.mss = 0; in tcpm_suck_dst() 552 void tcp_fastopen_cache_get(struct sock *sk, u16 *mss, in tcp_fastopen_cache_get() argument 566 if (tfom->mss) in tcp_fastopen_cache_get() 567 *mss = tfom->mss; in tcp_fastopen_cache_get() 578 void tcp_fastopen_cache_set(struct sock *sk, u16 mss, in tcp_fastopen_cache_set() argument 593 if (mss) in tcp_fastopen_cache_set() 594 tfom->mss = mss; in tcp_fastopen_cache_set() 710 if (tfom->mss && in tcp_metrics_fill_info() 712 tfom->mss) < 0) in tcp_metrics_fill_info()
|
D | tcp_minisocks.c | 362 int mss; in tcp_openreq_init_rwin() local 364 mss = tcp_mss_clamp(tp, dst_metric_advmss(dst)); in tcp_openreq_init_rwin() 377 else if (full_space < rcv_wnd * mss) in tcp_openreq_init_rwin() 378 full_space = rcv_wnd * mss; in tcp_openreq_init_rwin() 382 mss - (ireq->tstamp_ok ? TCPOLEN_TSTAMP_ALIGNED : 0), in tcp_openreq_init_rwin() 537 newtp->rx_opt.mss_clamp = req->mss; in tcp_create_openreq_child()
|
D | tcp_fastopen.c | 330 bool tcp_fastopen_cookie_check(struct sock *sk, u16 *mss, in tcp_fastopen_cookie_check() argument 336 tcp_fastopen_cache_get(sk, mss, cookie, &syn_loss, &last_syn_loss); in tcp_fastopen_cookie_check() 369 u16 mss; in tcp_fastopen_defer_connect() local 372 if (tcp_fastopen_cookie_check(sk, &mss, &cookie)) { in tcp_fastopen_defer_connect()
|
D | tcp_input.c | 420 u32 mss = tcp_sk(sk)->advmss; in tcp_fixup_rcvbuf() local 423 rcvmem = 2 * SKB_TRUESIZE(mss + MAX_TCP_HEADER) * in tcp_fixup_rcvbuf() 424 tcp_default_init_rwnd(mss); in tcp_fixup_rcvbuf() 1174 unsigned int mss; in tcp_match_skb_to_sack() local 1181 mss = tcp_skb_mss(skb); in tcp_match_skb_to_sack() 1186 if (pkt_len < mss) in tcp_match_skb_to_sack() 1187 pkt_len = mss; in tcp_match_skb_to_sack() 1190 if (pkt_len < mss) in tcp_match_skb_to_sack() 1197 if (pkt_len > mss) { in tcp_match_skb_to_sack() 1198 unsigned int new_len = (pkt_len / mss) * mss; in tcp_match_skb_to_sack() [all …]
|
D | udp_offload.c | 194 unsigned int mss; in udp4_ufo_fragment() local 212 mss = skb_shinfo(skb)->gso_size; in udp4_ufo_fragment() 213 if (unlikely(skb->len <= mss)) in udp4_ufo_fragment()
|
/net/ipv6/ |
D | syncookies.c | 101 const __u16 mss = *mssp; in __cookie_v6_init_sequence() local 104 if (mss >= msstab[mssind]) in __cookie_v6_init_sequence() 144 int mss; in cookie_v6_check() local 155 mss = __cookie_v6_check(ipv6_hdr(skb), th, cookie); in cookie_v6_check() 156 if (mss == 0) { in cookie_v6_check() 189 req->mss = mss; in cookie_v6_check() 247 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()
|
/net/netfilter/ |
D | xt_osf.c | 207 u16 window, totlen, mss = 0; in xt_osf_match_packet() local 278 mss = optp[3]; in xt_osf_match_packet() 279 mss <<= 8; in xt_osf_match_packet() 280 mss |= optp[2]; in xt_osf_match_packet() 282 mss = ntohs((__force __be16)mss); in xt_osf_match_packet() 313 if (window == f->wss.val * mss || in xt_osf_match_packet() 319 if (window == f->wss.val * (mss + 40) || in xt_osf_match_packet()
|
D | xt_TCPMSS.c | 108 if (info->mss == XT_TCPMSS_CLAMP_PMTU) { in tcpmss_mangle_packet() 120 newmss = info->mss; in tcpmss_mangle_packet() 275 if (info->mss == XT_TCPMSS_CLAMP_PMTU && in tcpmss_tg4_check() 300 if (info->mss == XT_TCPMSS_CLAMP_PMTU && in tcpmss_tg6_check()
|
D | nf_synproxy_core.c | 62 opts->mss = get_unaligned_be16(ptr); in synproxy_parse_options() 121 opts->mss); in synproxy_build_options()
|
D | Kconfig | 1024 -j TCPMSS --clamp-mss-to-pmtu
|
/net/batman-adv/ |
D | tp_meter.c | 152 static void batadv_tp_update_cwnd(struct batadv_tp_vars *tp_vars, u32 mss) in batadv_tp_update_cwnd() argument 159 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd() 166 ((mss * mss) << 6) / (tp_vars->cwnd << 3)); in batadv_tp_update_cwnd() 167 if (tp_vars->dec_cwnd < (mss << 3)) { in batadv_tp_update_cwnd() 172 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd() 639 size_t packet_len, mss; in batadv_tp_recv_ack() local 644 mss = BATADV_TP_PLEN; in batadv_tp_recv_ack() 709 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 3 * mss, in batadv_tp_recv_ack() 710 mss); in batadv_tp_recv_ack() 736 mss, mss); in batadv_tp_recv_ack() [all …]
|
/net/ipv4/netfilter/ |
D | ipt_SYNPROXY.c | 80 u16 mss = opts->mss; in synproxy_send_client_synack() local 97 nth->seq = htonl(__cookie_v4_init_sequence(iph, th, &mss)); in synproxy_send_client_synack() 242 int mss; in synproxy_recv_client_ack() local 244 mss = __cookie_v4_check(ip_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack() 245 if (mss == 0) { in synproxy_recv_client_ack() 251 opts->mss = mss; in synproxy_recv_client_ack()
|
/net/ipv6/netfilter/ |
D | ip6t_SYNPROXY.c | 94 u16 mss = opts->mss; in synproxy_send_client_synack() local 111 nth->seq = htonl(__cookie_v6_init_sequence(iph, th, &mss)); in synproxy_send_client_synack() 256 int mss; in synproxy_recv_client_ack() local 258 mss = __cookie_v6_check(ipv6_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack() 259 if (mss == 0) { in synproxy_recv_client_ack() 265 opts->mss = mss; in synproxy_recv_client_ack()
|
/net/decnet/ |
D | af_decnet.c | 1859 unsigned int mss = 230 - DN_MAX_NSP_DATA_HEADER; in dn_mss_from_pmtu() local 1874 if (mtu > mss) in dn_mss_from_pmtu() 1875 mss = mtu; in dn_mss_from_pmtu() 1876 return mss; in dn_mss_from_pmtu() 1921 size_t mss; in dn_sendmsg() local 1970 mss = scp->segsize_rem; in dn_sendmsg() 1973 mss = dn_current_mss(sk, flags); in dn_sendmsg() 1977 if (size > mss) { in dn_sendmsg() 2000 if (len > mss) in dn_sendmsg() 2001 len = mss; in dn_sendmsg()
|
D | dn_route.c | 284 u32 mss = mtu - DN_MAX_NSP_DATA_HEADER; in dn_dst_update_pmtu() local 286 if (!existing_mss || existing_mss > mss) in dn_dst_update_pmtu() 287 dst_metric_set(dst, RTAX_ADVMSS, mss); in dn_dst_update_pmtu() 896 unsigned int mss = dn_mss_from_pmtu(dev, dst_mtu(&rt->dst)); in dn_rt_set_next_hop() local 897 if (mss_metric > mss) in dn_rt_set_next_hop() 898 dst_metric_set(&rt->dst, RTAX_ADVMSS, mss); in dn_rt_set_next_hop()
|
/net/core/ |
D | skbuff.c | 3501 unsigned int mss = skb_shinfo(head_skb)->gso_size; in skb_segment() local 3532 if (mss != GSO_BY_FRAGS && mss != skb_headlen(head_skb)) in skb_segment() 3544 if (sg && csum && (mss != GSO_BY_FRAGS)) { in skb_segment() 3579 partial_segs = len / mss; in skb_segment() 3581 mss *= partial_segs; in skb_segment() 3596 if (unlikely(mss == GSO_BY_FRAGS)) { in skb_segment() 3600 if (len > mss) in skb_segment() 3601 len = mss; in skb_segment() 3720 pos, mss); in skb_segment()
|