Maik Broemme contributed gcc warning fixes (break after default: label)
[oss-qm-packages.git] / lib / hdlclapb.c
blobc4ed074f93ba4b46d516e266fa76aecab3e383dc
1 /*
2 * lib/hdlclapb.c
3 * This file contains the HDLC/LAPB support for the NET-2 base
4 * distribution.
6 * Version: $Id: hdlclapb.c,v 1.5 2000/03/05 11:26:02 philip Exp $
8 * Original Author:
9 * Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
10 * Copyright 1993 MicroWalt Corporation
12 * Modified by Alan Cox, May 94 to cover NET-3
14 * This program is free software; you can redistribute it
15 * and/or modify it under the terms of the GNU General
16 * Public License as published by the Free Software
17 * Foundation; either version 2 of the License, or (at
18 * your option) any later version.
20 #include "config.h"
22 #if HAVE_HWHDLCLAPB
24 #include <sys/types.h>
25 #include <sys/ioctl.h>
26 #include <sys/socket.h>
27 #include <net/if_arp.h>
28 #include <stdlib.h>
29 #include <stdio.h>
30 #include <ctype.h>
31 #include <errno.h>
32 #include <fcntl.h>
33 #include <string.h>
34 #include <termios.h>
35 #include <unistd.h>
36 #include "net-support.h"
37 #include "pathnames.h"
39 #ifndef ARPHRD_HDLC
40 #warning "No definition of ARPHRD_HDLC in <net/if_arp.h>, using private value 513"
41 #define ARPHRD_HDLC 513
42 #endif
44 #ifndef ARPHRD_LAPB
45 #warning "No definition of ARPHRD_HDLC in <net/if_arp.h>, using private value 516"
46 #define ARPHRD_LAPB 516
47 #endif
49 struct hwtype hdlc_hwtype =
51 "hdlc", NULL, /*"(Cisco) HDLC", */ ARPHRD_HDLC, 0,
52 NULL, NULL, NULL, 0
54 struct hwtype lapb_hwtype =
56 "lapb", NULL, /*"LAPB", */ ARPHRD_LAPB, 0,
57 NULL, NULL, NULL, 0
60 #endif /* HAVE_HWHDLCLAPB */