diff options
author | Dmitrij Tejblum <tejblum@yandex-team.ru> | 2011-12-12 20:30:10 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2012-01-02 17:27:26 +0400 |
commit | b31d8fc3016615571f79161b8405aa4033cdfb8d (patch) | |
tree | f17abe1585b337f1751c496e9ac99714bebcb79b /ospfd | |
parent | 89e9f82e0b717c0e39bbffa104f9d9f817c19b46 (diff) |
ospfd: fix packet reception for FreeBSD 10.
* ospf_packet.c (ospf_recv_packet): FreeBSD, starting from version 10, will not
subtract the IP header size from ip_len.
This is the patch from FreeBSD's ports/net/quagga/files/patch-ospfd__ospf_packet.c,
by Boris Kovalenko.
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index 1c1a1e69..994d3629 100644 --- a/ospfd/ospf_packet.c +++ b/ospfd/ospf_packet.c @@ -2067,7 +2067,7 @@ ospf_recv_packet (int fd, struct interface **ifp, struct stream *ibuf) ip_len = iph->ip_len; -#if !defined(GNU_LINUX) && (OpenBSD < 200311) +#if !defined(GNU_LINUX) && (OpenBSD < 200311) && (__FreeBSD_version < 1000000) /* * Kernel network code touches incoming IP header parameters, * before protocol specific processing. |