along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.c,v 1.35.4.43 2000/10/21 11:52:06 guus Exp $
+ $Id: net.c,v 1.35.4.44 2000/10/22 13:37:15 zarq Exp $
*/
#include "config.h"
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
+#include <linux/sockios.h>
+#include <net/if.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdio.h>
#include <unistd.h>
#ifdef HAVE_TUNTAP
-#include <net/if.h>
-#include <linux/sockios.h>
#include LINUX_IF_TUN_H
#endif
const char *tapfname;
config_t const *cfg;
char *envvar;
-
-#ifdef HAVE_TUNTAP
struct ifreq ifr;
-#endif
+
cp
if((cfg = get_config_val(config, tapdevice)))
tapfname = cfg->data.ptr;