From 9d8e1423020c87ab9c3e7dff5b6c4c9f3c25d9e0 Mon Sep 17 00:00:00 2001 From: Mats Erik Andersson Date: Wed, 3 Nov 2010 09:28:03 +0100 Subject: [PATCH 1/2] Make interface flag IFF_NOTRAILERS conditional. --- ChangeLog | 5 +++++ ifconfig/flags.c | 2 ++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/ChangeLog b/ChangeLog index f757a82..74ece86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-03 Mats Erik Andersson + + * ifconfig/flags.c (flag_char_tab): Protect the uses of + IFF_NOTRAILERS by `#ifdef'. + 2010-10-31 Mats Erik Andersson * ifconfig/if_index.c (if_nametoindex, if_freenameindex) diff --git a/ifconfig/flags.c b/ifconfig/flags.c index 279b295..a4138df 100644 --- a/ifconfig/flags.c +++ b/ifconfig/flags.c @@ -398,7 +398,9 @@ static struct if_flag_char flag_char_tab[] = { { IFF_DYNAMIC, 'd' }, #endif { IFF_PROMISC, 'P' }, +#ifdef IFF_NOTRAILERS { IFF_NOTRAILERS, 'N' }, +#endif { IFF_NOARP, 'O' }, { IFF_POINTOPOINT, 'P' }, #ifdef IFF_SLAVE -- 1.7.1