[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zebra
Subject:    [zebra 139] ntohl on linux
From:       Magnus Ahltorp <map () stacken ! kth ! se>
Date:       1998-10-16 1:33:04
[Download RAW message or body]

When I tried to compile the latest zebra snapshot on our linux IPv6
router, I had problems with the bgpd source; gcc didn't find ntohl
anywhere.

I'm running Linux 2.1, and this problem is probably caused by changes
in /usr/include/linux/byteorder/.

This fix solves the problem, but I don't know how it works on other
platforms:

diff -r -u zebra-980907.orig/bgpd/bgp_open.c zebra-980907/bgpd/bgp_open.c
--- zebra-980907.orig/bgpd/bgp_open.c   Tue Aug 11 19:38:19 1998
+++ zebra-980907/bgpd/bgp_open.c        Wed Oct 14 04:47:19 1998
@@ -23,6 +23,7 @@
 #endif /* HAVE_CONFIG_H */
 
 #include <sys/types.h>
+#include <netinet/in.h>
 
 #include "bgpd.h"
 #include "bgp_peer.h"

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic