]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: fix packet reception for FreeBSD 10.
authorDmitrij Tejblum <tejblum@yandex-team.ru>
Mon, 12 Dec 2011 16:30:10 +0000 (20:30 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 2 Jan 2012 14:37:32 +0000 (18:37 +0400)
* 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.

ospfd/ospf_packet.c

index f8887c5f45b3b45de63622ffedba60bf9813eec3..070508240a49f129e6323c10e8718f9d61e6a86a 100644 (file)
@@ -2121,7 +2121,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.