diff options
author | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2008-01-10 16:24:32 +0100 |
---|---|---|
committer | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2008-01-10 16:24:32 +0100 |
commit | c543a1737173fb438f1d8c06f650b2d0d479f45c (patch) | |
tree | ba940242e22f7e6798e6fd24b19864b5702474db /configure.ac | |
parent | [link-detect] Static interface routes should behave properly with link-detect. (diff) | |
download | frr-c543a1737173fb438f1d8c06f650b2d0d479f45c.tar.xz frr-c543a1737173fb438f1d8c06f650b2d0d479f45c.zip |
[link-detect] Try to get BSD link-detect to work properly.
2008-01-10 Ingo Flaschberger <if@xip.at>
* configure.ac: Define HAVE_BSD_LINK_DETECT if <net/if_media.h> is
present.
* lib/zebra.h: If HAVE_BSD_LINK_DETECT is defined,
include <net/if_media.h>.
* zebra/ioctl.c: (if_get_flags) If HAVE_BSD_LINK_DETECT, use the
SIOCGIFMEDIA ioctl to ascertain link state.
* zebra/kernel_socket.c: (bsd_linkdetect_translate) New function to
map the ifm_data.ifi_link_state value into the IFF_RUNNING flag.
(ifm_read) Call bsd_linkdetect_translate to fix the IFF_RUNNING
flag before calling if_flags_update.
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a76649b5d..7f061bb1a 100755 --- a/configure.ac +++ b/configure.ac @@ -890,6 +890,13 @@ AC_TRY_COMPILE([#ifdef HAVE_SYS_PARAM_H AC_DEFINE(HAVE_BSD_STRUCT_IP_MREQ_HACK,,[Can pass ifindex in struct ip_mreq])], AC_MSG_RESULT(no)) +dnl --------------------------------------------------------------- +dnl figure out how to check link-state +dnl --------------------------------------------------------------- +AC_CHECK_HEADER([net/if_media.h], + [AC_DEFINE(HAVE_BSD_LINK_DETECT,,[BSD link-detect])], + [], QUAGGA_INCLUDES) + dnl ----------------------- dnl check proc file system. dnl ----------------------- |