summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>2008-01-11 15:57:13 +0000
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>2008-01-11 15:57:13 +0000
commit55edb0d446a272907715b0825ff008557174d34a (patch)
tree17d46ab705b0b229b8795d0d809fddd18e1d9078 /lib
parentc543a1737173fb438f1d8c06f650b2d0d479f45c (diff)
[link-detect] Improve BSD support.
2008-01-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu> * lib/zebra.h: Revert previous change, no need to include <net/if_media.h> here. * zebra/ioctl.c: If HAVE_BSD_LINK_DETECT is defined, include <net/if_media.h> (if_get_flags) Remove debug messages about BSD link state. * zebra/kernel_socket.c: (bsd_linkdetect_translate) If link state is unknown, we should set the IFF_RUNNING flag.
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog5
-rw-r--r--lib/zebra.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 21d08dd0..2263c03c 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+ * zebra.h: Revert previous change, no need to include <net/if_media.h>
+ here.
+
2008-01-10 Ingo Flaschberger <if@xip.at>
* zebra.h: If HAVE_BSD_LINK_DETECT is defined, include <net/if_media.h>.
diff --git a/lib/zebra.h b/lib/zebra.h
index 1c9eb39f..150aa2c5 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -116,9 +116,6 @@ typedef int socklen_t;
#endif /* !va_copy */
#endif /* !C99 */
-#ifdef HAVE_BSD_LINK_DETECT
-#include <net/if_media.h>
-#endif /* HAVE_BSD_LINK_DETECT*/
#ifdef HAVE_LCAPS
#include <sys/capability.h>