enable -fno-strict-aliasing until the code base gets a hefty clean up to fix all...
[platform/upstream/net-tools.git] / lib / sit.c
1 /*
2  * lib/sit.c  This file contains the SIT HW-type support.
3  *
4  * Version:    $Id: sit.c,v 1.5 2000/03/05 16:14:08 ecki Exp $
5  *
6  * Author:      Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
7  *              Copyright 1993 MicroWalt Corporation
8  *
9  *              Based on slip.c, modified by Frank Strauss, Aug 1996
10  *
11  *              This program is free software; you can redistribute it
12  *              and/or  modify it under  the terms of  the GNU General
13  *              Public  License as  published  by  the  Free  Software
14  *              Foundation;  either  version 2 of the License, or  (at
15  *              your option) any later version.
16  */
17 #include "config.h"
18
19 #if HAVE_HWSIT
20
21 #include <sys/types.h>
22 #include <sys/ioctl.h>
23 #include <sys/socket.h>
24 #include <net/if_arp.h>
25 #include <stdlib.h>
26 #include <stdio.h>
27 #include <ctype.h>
28 #include <errno.h>
29 #include <fcntl.h>
30 #include <string.h>
31 #include <termios.h>
32 #include <unistd.h>
33 #include "net-support.h"
34 #include "pathnames.h"
35
36 #ifndef ARPHRD_SIT
37 #warning "No definition of ARPHRD_SIT in <net/if_arp.h>, using private value 776"
38 #define ARPHRD_SIT 776
39 #endif
40
41 struct hwtype sit_hwtype =
42 {
43     "sit", NULL, /*"IPv6-in-IPv4", */ ARPHRD_SIT, 0,
44     NULL, NULL, NULL, 0
45 };
46
47 #endif                          /* HAVE_HWSIT */