2 * lib/frame.c This file contains the Frame Relay support.
4 * Version: $Id: frame.c,v 1.4 2000/03/05 11:26:02 philip Exp $
6 * Maintainer: Bernd 'eckes' Eckenfels, <net-tools@lina.inka.de>
8 * Author: Mike McLagan <mike.mclagan@linux.org>
12 *962303 {0.01} Mike McLagan : creation
13 *960413 {0.02} Bernd Eckenfels : included in net-lib
15 * This program is free software; you can redistribute it
16 * and/or modify it under the terms of the GNU General
17 * Public License as published by the Free Software
18 * Foundation; either version 2 of the License, or (at
19 * your option) any later version.
25 #include <sys/types.h>
26 #include <sys/ioctl.h>
27 #include <sys/socket.h>
28 #include <net/if_arp.h>
37 #include "net-support.h"
38 #include "pathnames.h"
40 char *pr_dlci(unsigned char *ptr)
44 snprintf(buf, sizeof(buf), "%i", *(short *) ptr);
48 struct hwtype dlci_hwtype =
50 "dlci", NULL, /*"Frame Relay DLCI", */ ARPHRD_DLCI, 3,
51 pr_dlci, NULL, NULL, 0
54 struct hwtype frad_hwtype =
56 "frad", NULL, /*"Frame Relay Access Device", */ ARPHRD_FRAD, 0,
59 #endif /* HAVE_HWFR */