diff options
author | Klaas Freitag <freitag@suse.de> | 1998-11-15 20:07:31 +0000 |
---|---|---|
committer | Klaas Freitag <freitag@suse.de> | 1998-11-15 20:07:31 +0000 |
commit | 49d6a0009c6ab09ed184028a082a098d455a34f2 (patch) | |
tree | f3e03429bb25dd641148c70cd8af596732c162f0 /lib/net-features.h | |
parent | - Use numerical sort for interface sorting. (diff) | |
download | net-tools-49d6a0009c6ab09ed184028a082a098d455a34f2.tar.gz net-tools-49d6a0009c6ab09ed184028a082a098d455a34f2.tar.bz2 net-tools-49d6a0009c6ab09ed184028a082a098d455a34f2.zip |
Yow. This is net-tools completely reindented.
Some other cleanups:
- lib/net-string.c removed because it was not used and had a copyright notice
that conflicted with the GPL.
- Minor cleanups.
- Fix an potential buffer overflow in ax25.
- Switch to CVS $Id$ for versioning consistently
Diffstat (limited to 'lib/net-features.h')
-rw-r--r-- | lib/net-features.h | 330 |
1 files changed, 165 insertions, 165 deletions
diff --git a/lib/net-features.h b/lib/net-features.h index b08ee76..3084e8a 100644 --- a/lib/net-features.h +++ b/lib/net-features.h @@ -1,302 +1,302 @@ /* - * lib/net-features.h This file contains the definitions of all kernel - * dependend features. + * lib/net-features.h This file contains the definitions of all kernel + * dependend features. * - * Version: features.h 0.03 (1996-03-22) + * Version: features.h 0.03 (1996-03-22) * - * Author: Bernd Eckenfels <net-tools@lina.inka.de> - * Copyright 1996 Bernd Eckenfels, Germany + * Author: Bernd Eckenfels <net-tools@lina.inka.de> + * Copyright 1996 Bernd Eckenfels, Germany * * Modifications: - *960201 {0.01} Bernd Eckenfels: creation - *960202 {0.02} Bernd Eckenfels: HW and AF added - *960322 {0.03} Bernd Eckenfels: moved into the NET-LIB + *960201 {0.01} Bernd Eckenfels: creation + *960202 {0.02} Bernd Eckenfels: HW and AF added + *960322 {0.03} Bernd Eckenfels: moved into the NET-LIB *980630 {0.04} Arnaldo Carvalho de Melo: changed NLS for I18N * - * This program is free software; you can redistribute it - * and/or modify it under the terms of the GNU General - * Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at - * your option) any later version. + * This program is free software; you can redistribute it + * and/or modify it under the terms of the GNU General + * Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at + * your option) any later version. */ /* - * This needs to be included AFTER the KErnel Header Files - * one of the FEATURE_ should be defined to get the Feature Variable - * definition included + * This needs to be included AFTER the KErnel Header Files + * one of the FEATURE_ should be defined to get the Feature Variable + * definition included */ - + #ifndef _NET_FEATURES_H #define _NET_FEATURES_H /* detect the present features */ -#if defined (SIOCADDRTOLD) || defined (RTF_IRTT) /* route */ -# define HAVE_NEW_ADDRT 1 +#if defined (SIOCADDRTOLD) || defined (RTF_IRTT) /* route */ +#define HAVE_NEW_ADDRT 1 #endif -#ifdef RTF_IRTT /* route */ -# define HAVE_RTF_IRTT 1 +#ifdef RTF_IRTT /* route */ +#define HAVE_RTF_IRTT 1 #endif -#ifdef RTF_REJECT /* route */ -# define HAVE_RTF_REJECT 1 +#ifdef RTF_REJECT /* route */ +#define HAVE_RTF_REJECT 1 #endif -#ifdef RTMSG_NEWROUTE /* netstat */ -# define HAVE_RT_NETLINK 1 +#ifdef RTMSG_NEWROUTE /* netstat */ +#define HAVE_RT_NETLINK 1 #endif /* compose the feature information string */ #if defined (FEATURE_ARP) || defined (FEATURE_ROUTE) || defined (FEATURE_NETSTAT) -static char *Features= +static char *Features = /* ---------------------------------------------------- */ #ifdef FEATURE_ROUTE -# if HAVE_NEW_ADDRT - "+" -# else - "-" -# endif - "NEW_ADDRT " - -# if HAVE_RTF_IRTT - "+" -# else - "-" -# endif - "RTF_IRTT " - -# if HAVE_RTF_REJECT - "+" -# else - "-" -# endif - "RTF_REJECT " - -#endif /* FEATURE_ROUTE */ +#if HAVE_NEW_ADDRT +"+" +#else +"-" +#endif +"NEW_ADDRT " + +#if HAVE_RTF_IRTT +"+" +#else +"-" +#endif +"RTF_IRTT " + +#if HAVE_RTF_REJECT +"+" +#else +"-" +#endif +"RTF_REJECT " + +#endif /* FEATURE_ROUTE */ /* ---------------------------------------------------- */ /* ---------------------------------------------------- */ #ifdef FEATURE_NETSTAT -# if HAVE_NEW_ADDRT - "+" -# else - "-" -# endif - "NEW_ADDRT " - -# if HAVE_RTF_IRTT - "+" -# else - "-" -# endif - "RTF_IRTT " - -# if HAVE_RTF_REJECT - "+" -# else - "-" -# endif - "RTF_REJECT " - -# if HAVE_RT_NETLINK - "+" -# else - "-" -# endif - "RT_NETLINK " - -# if HAVE_FW_MASQUERADE - "+" -# else - "-" -# endif - "FW_MASQUERADE " - -#endif /* FEATURE_NETSTAT */ +#if HAVE_NEW_ADDRT +"+" +#else +"-" +#endif +"NEW_ADDRT " + +#if HAVE_RTF_IRTT +"+" +#else +"-" +#endif +"RTF_IRTT " + +#if HAVE_RTF_REJECT +"+" +#else +"-" +#endif +"RTF_REJECT " + +#if HAVE_RT_NETLINK +"+" +#else +"-" +#endif +"RT_NETLINK " + +#if HAVE_FW_MASQUERADE +"+" +#else +"-" +#endif +"FW_MASQUERADE " + +#endif /* FEATURE_NETSTAT */ /* ---------------------------------------------------- */ #if I18N - "+I18N" +"+I18N" #else - "-I18N" -#endif /* I18N */ +"-I18N" +#endif /* I18N */ "\nAF: " #ifdef DFLT_AF - "("DFLT_AF")" +"(" DFLT_AF ")" #endif #if HAVE_AFUNIX - " +" +" +" #else - " -" +" -" #endif - "UNIX " +"UNIX " #if HAVE_AFINET - "+" +"+" #else - "-" +"-" #endif - "INET " +"INET " #if HAVE_AFINET6 - "+" +"+" #else - "-" +"-" #endif - "INET6 " +"INET6 " #if HAVE_AFIPX - "+" +"+" #else - "-" +"-" #endif - "IPX " +"IPX " #if HAVE_AFAX25 - "+" +"+" #else - "-" +"-" #endif - "AX25 " -#if HAVE_AFNETROM - "+" +"AX25 " +#if HAVE_AFNETROM +"+" #else - "-" +"-" #endif - "NETROM " +"NETROM " #if HAVE_AFATALK - "+" +"+" #else - "-" +"-" #endif - "ATALK " +"ATALK " #if HAVE_AFECONET - "+" +"+" #else - "-" +"-" #endif - "ECONET " +"ECONET " #if HAVE_AFROSE - "+" +"+" #else - "-" +"-" #endif - "ROSE " +"ROSE " "\nHW: " #ifdef DFLT_HW - "("DFLT_HW")" +"(" DFLT_HW ")" #endif #if HAVE_HWETHER - " +" +" +" #else - " -" +" -" #endif - "ETHER " +"ETHER " #if HAVE_HWARC - "+" +"+" #else - "-" +"-" #endif - "ARC " +"ARC " #if HAVE_HWSLIP - "+" +"+" #else - "-" +"-" #endif - "SLIP " +"SLIP " #if HAVE_HWPPP - "+" +"+" #else - "-" +"-" #endif - "PPP " +"PPP " #if HAVE_HWTUNNEL - "+" +"+" #else - "-" +"-" #endif - "TUNNEL " +"TUNNEL " #if HAVE_HWTR - "+" +"+" #else - "-" +"-" #endif - "TR " +"TR " #if HAVE_HWAX25 - "+" +"+" #else - "-" +"-" #endif - "AX25 " - +"AX25 " + #if HAVE_HWNETROM - "+" +"+" #else - "-" +"-" #endif - "NETROM " +"NETROM " #if HAVE_HWFR - "+" +"+" #else - "-" +"-" #endif - "FR " +"FR " #if HAVE_HWROSE - "+" +"+" #else - "-" +"-" #endif - "ROSE " +"ROSE " #if HAVE_HWASH - "+" +"+" #else - "-" +"-" #endif - "ASH " +"ASH " #if HAVE_HWSIT - "+" +"+" #else - "-" +"-" #endif - "SIT " +"SIT " #if HAVE_HWFDDI - "+" +"+" #else - "-" +"-" #endif - "FDDI " +"FDDI " #if HAVE_HWHIPPI - "+" +"+" #else - "-" +"-" #endif - "HIPPI " +"HIPPI " #if HAVE_HWHDLCLAPB - "+" +"+" #else - "-" +"-" #endif - "HDLC/LAPB " +"HDLC/LAPB " ; -#endif /* FEATURE_* */ +#endif /* FEATURE_* */ -#endif /* _NET_FEATURES_H */ +#endif /* _NET_FEATURES_H */ /* End of features.h */ |