diff options
| author | Gao Feng <[email protected]> | 2017-04-12 04:34:03 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-04-13 17:19:48 +0000 |
| commit | 7ed14d973f7c6742f4827fbbf6730cbe20888b8b (patch) | |
| tree | 64d4241faceea5a52dc9d571753373908130e2cc /net/tipc | |
| parent | Merge branch 'rtnetlink-cleanup-user-notifications' (diff) | |
| download | kernel-7ed14d973f7c6742f4827fbbf6730cbe20888b8b.tar.gz kernel-7ed14d973f7c6742f4827fbbf6730cbe20888b8b.zip | |
net: ipv4: Refine the ipv4_default_advmss
1. Don't get the metric RTAX_ADVMSS of dst.
There are two reasons.
1) Its caller dst_metric_advmss has already invoke dst_metric_advmss
before invoke default_advmss.
2) The ipv4_default_advmss is used to get the default mss, it should
not try to get the metric like ip6_default_advmss.
2. Use sizeof(tcphdr)+sizeof(iphdr) instead of literal 40.
3. Define one new macro IPV4_MAX_PMTU instead of 65535 according to
RFC 2675, section 5.1.
Signed-off-by: Gao Feng <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions
