summaryrefslogtreecommitdiff
path: root/isisd/isis_dlpi.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2010-02-02 21:49:35 +0100
committerGreg Troxel <gdt@ir.bbn.com>2010-04-28 20:15:44 -0400
commit745bf05f58ff203f5e3878574016fb3b9ad5b450 (patch)
tree0c1019a61726211f4ade8f7ff21c579c95e7063a /isisd/isis_dlpi.c
parent2470e99e828c098d2d03f8d693853cbe69e3fb6f (diff)
isisd: change ISIS_METHOD to use C preprocessor
this fixes warnings from vtysh extract.pl by making sure the isis method files always 'work'. (previously, extract.pl would grab unselected isis method sources and then complain about missing headers)
Diffstat (limited to 'isisd/isis_dlpi.c')
-rw-r--r--isisd/isis_dlpi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/isisd/isis_dlpi.c b/isisd/isis_dlpi.c
index 3cbe0b4f..fe872a95 100644
--- a/isisd/isis_dlpi.c
+++ b/isisd/isis_dlpi.c
@@ -21,6 +21,7 @@
*/
#include <zebra.h>
+#if ISIS_METHOD == ISIS_METHOD_DLPI
#include <net/if.h>
#include <netinet/if_ether.h>
#include <sys/types.h>
@@ -622,3 +623,5 @@ isis_send_pdu_bcast (struct isis_circuit *circuit, int level)
sock_buff, stream_get_endp (circuit->snd_stream) + LLC_LEN, 0);
return ISIS_OK;
}
+
+#endif /* ISIS_METHOD == ISIS_METHOD_DLPI */