[quagga-users 12559] Re: ospfd daemon (quagga-0.99.20_1) not work FreeBSD 9.0-RC1 amd64 fixed

Sergey Legkih Sergey at lvs.ru
Thu Nov 10 13:01:59 GMT 2011


Hello,

Monday, November 7, 2011, 4:36:15 AM, you wrote:
SL> ospfd daemon  (quagga-0.99.20_1)  not work FreeBSD 9.0-RC1 amd64
SL> ospfd.log:
SL> 2011/11/07 04:17:38 OSPF: OSPFd 0.99.20 starting: vty at 2604
SL> 2011/11/07 04:17:38 OSPF: interface 10.147.254.202 [1] join AllSPFRouters Multicast group.
SL> 2011/11/07 04:17:38 OSPF: LSA[Type5:0.0.0.0]: Not originate AS-external-LSA for default
SL> 2011/11/07 04:17:40 OSPF: ospf_recv_packet read length mismatch:
SL> ip_len is 96, but recvmsg returned 76
SL> 2011/11/07 04:17:40 OSPF: ospf_recv_packet read length mismatch:
SL> ip_len is 96, but recvmsg returned 76
SL> 2011/11/07 04:17:40 OSPF: ospf_recv_packet read length mismatch:
SL> ip_len is 84, but recvmsg returned 64
SL> 2011/11/07 04:17:44 OSPF: ospf_recv_packet read length mismatch:
SL> ip_len is 84, but recvmsg returned 64
SL> 2011/11/07 04:17:44 OSPF: ospf_recv_packet read length mismatch:
SL> ip_len is 84, but recvmsg returned 64
SL> 2011/11/07 04:17:50 OSPF: ospf_recv_packet read length mismatch:
SL> ip_len is 96, but recvmsg returned 76
SL> 2011/11/07 04:17:50 OSPF: ospf_recv_packet read length mismatch:
SL> ip_len is 104, but recvmsg returned 84
SL> 2011/11/07 04:17:50 OSPF: ospf_recv_packet read length mismatch:
SL> ip_len is 96, but recvmsg returned 76
SL> it's bug ?

SL> Sergey V. Legkih
SL> _______________________________________________
SL> Quagga-users mailing list
SL> Quagga-users at lists.quagga.net
SL> http://lists.quagga.net/mailman/listinfo/quagga-users

 problem fixed  Gleb Smirnoff
patch-ospf_packet.c
------------------------
--- ospfd/ospf_packet.c.orig    2011-11-09 17:13:18.000000000 +0400
+++ ospfd/ospf_packet.c 2011-11-09 17:15:31.000000000 +0400
@@ -2116,7 +2116,7 @@
   
   ip_len = iph->ip_len;
   
-#if !defined(GNU_LINUX) && (OpenBSD < 200311)
+#if !defined(GNU_LINUX) && (OpenBSD < 200311) && (__FreeBSD_version <900044)
   /*
    * Kernel network code touches incoming IP header parameters,
    * before protocol specific processing.
------------------------

or change 900044 to 900045


Sergey V. Legkih


More information about the Quagga-users mailing list