#include <net/if.h>
-#define ARPHRD_ETHER 1
-#define ARPHRD_IEEE802 6
-
#include <sys/time.h> /* gettimeofday()*/
#include <linux/time.h> /* also necessary */
#ifndef lint
static char copyright[] =
-"$Id: dispatch.c,v 1.26 1996/09/11 18:53:33 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dispatch.c,v 1.27 1996/11/08 20:06:29 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
struct sockaddr_dl *foo = ((struct sockaddr_dl *)
(&ifp -> ifr_addr));
tmp -> hw_address.hlen = foo -> sdl_alen;
- tmp -> hw_address.htype = ARPHRD_ETHER; /* XXX */
+ tmp -> hw_address.htype = HTYPE_ETHER; /* XXX */
memcpy (tmp -> hw_address.haddr,
LLADDR (foo), foo -> sdl_alen);
} else
#ifndef lint
static char copyright[] =
-"$Id: confpars.c,v 1.35 1996/09/13 18:58:20 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: confpars.c,v 1.36 1996/11/08 20:06:28 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
if (type == HOST_DECL)
parse_warn ("get-lease-hostnames not allowed here.");
group -> get_lease_hostnames = parse_boolean (cfile);
-note ("get_lease_hostnames: %d", group -> get_lease_hostnames);
break;
case USE_HOST_DECL_NAMES:
token = next_token (&val, cfile);
switch (token) {
case ETHERNET:
- hardware -> htype = ARPHRD_ETHER;
+ hardware -> htype = HTYPE_ETHER;
break;
-#ifdef ARPHRD_IEEE802 /* XXX */
case TOKEN_RING:
- hardware -> htype = ARPHRD_IEEE802;
+ hardware -> htype = HTYPE_IEEE802;
break;
-#endif
default:
parse_warn ("expecting a network hardware type");
skip_to_semi (cfile);
/* Possible values for flags field... */
#define BOOTP_BROADCAST 32768L
+/* Possible values for hardware type (htype) field... */
+#define HTYPE_ETHER 1 /* Ethernet 10Mbps */
+#define HTYPE_IEEE802 6 /* IEEE 802.2 Token Ring... */
+
/* Magic cookie validating dhcp options field (and bootp vendor
extensions field). */
#define DHCP_OPTIONS_COOKIE "\143\202\123\143"
#ifndef lint
static char copyright[] =
-"$Id: dispatch.c,v 1.26 1996/09/11 18:53:33 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dispatch.c,v 1.27 1996/11/08 20:06:29 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
struct sockaddr_dl *foo = ((struct sockaddr_dl *)
(&ifp -> ifr_addr));
tmp -> hw_address.hlen = foo -> sdl_alen;
- tmp -> hw_address.htype = ARPHRD_ETHER; /* XXX */
+ tmp -> hw_address.htype = HTYPE_ETHER; /* XXX */
memcpy (tmp -> hw_address.haddr,
LLADDR (foo), foo -> sdl_alen);
} else
#include <net/if.h>
-#define ARPHRD_ETHER 1
-#define ARPHRD_IEEE802 6
-
#include <sys/time.h> /* gettimeofday()*/
#include <linux/time.h> /* also necessary */
/* Possible values for flags field... */
#define BOOTP_BROADCAST 32768L
+/* Possible values for hardware type (htype) field... */
+#define HTYPE_ETHER 1 /* Ethernet 10Mbps */
+#define HTYPE_IEEE802 6 /* IEEE 802.2 Token Ring... */
+
/* Magic cookie validating dhcp options field (and bootp vendor
extensions field). */
#define DHCP_OPTIONS_COOKIE "\143\202\123\143"
#ifndef lint
static char copyright[] =
-"$Id: confpars.c,v 1.35 1996/09/13 18:58:20 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: confpars.c,v 1.36 1996/11/08 20:06:28 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
if (type == HOST_DECL)
parse_warn ("get-lease-hostnames not allowed here.");
group -> get_lease_hostnames = parse_boolean (cfile);
-note ("get_lease_hostnames: %d", group -> get_lease_hostnames);
break;
case USE_HOST_DECL_NAMES:
token = next_token (&val, cfile);
switch (token) {
case ETHERNET:
- hardware -> htype = ARPHRD_ETHER;
+ hardware -> htype = HTYPE_ETHER;
break;
-#ifdef ARPHRD_IEEE802 /* XXX */
case TOKEN_RING:
- hardware -> htype = ARPHRD_IEEE802;
+ hardware -> htype = HTYPE_IEEE802;
break;
-#endif
default:
parse_warn ("expecting a network hardware type");
skip_to_semi (cfile);