diff options
author | Gilad Ben-Yossef <gilad@codefidence.com> | 2009-11-05 02:23:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-05 02:24:15 -0500 |
commit | 6a2a2d6bf8581216e08be15fcb563cfd6c430e1e (patch) | |
tree | 001dd331cb0ef37fbb0e84bb557aaee9e22d8fc3 /include | |
parent | 05eaade2782fb0c90d3034fd7a7d5a16266182bb (diff) |
tcp: Use defaults when no route options are available
Trying to parse the option of a SYN packet that we have
no route entry for should just use global wide defaults
for route entry options.
Signed-off-by: Gilad Ben-Yossef <gilad@codefidence.com>
Tested-by: Valdis.Kletnieks@vt.edu
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/dst.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index 39c4a5963e12..387cb3cfde7e 100644 --- a/include/net/dst.h +++ b/include/net/dst.h | |||
@@ -113,7 +113,7 @@ dst_metric(const struct dst_entry *dst, int metric) | |||
113 | static inline u32 | 113 | static inline u32 |
114 | dst_feature(const struct dst_entry *dst, u32 feature) | 114 | dst_feature(const struct dst_entry *dst, u32 feature) |
115 | { | 115 | { |
116 | return dst_metric(dst, RTAX_FEATURES) & feature; | 116 | return (dst ? dst_metric(dst, RTAX_FEATURES) & feature : 0); |
117 | } | 117 | } |
118 | 118 | ||
119 | static inline u32 dst_mtu(const struct dst_entry *dst) | 119 | static inline u32 dst_mtu(const struct dst_entry *dst) |