summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-04 20:28:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-04 20:28:41 +0000
commit78b219154584e6aec9e0b5a2fa3390b0df3e5d9c (patch)
tree965c99cd0b99933d2138158869d13936a481500f /sbin/dhclient
parent87c56ed5afea12c4e09fc8f649a6d48ffab4b6d0 (diff)
remove things not used, spotted by lint mostly; ok henning
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/alloc.c8
-rw-r--r--sbin/dhclient/dhclient.c78
-rw-r--r--sbin/dhclient/dhcpd.h11
-rw-r--r--sbin/dhclient/dispatch.c8
-rw-r--r--sbin/dhclient/hash.c34
-rw-r--r--sbin/dhclient/inet.c66
-rw-r--r--sbin/dhclient/options.c35
-rw-r--r--sbin/dhclient/parse.c59
-rw-r--r--sbin/dhclient/tables.c264
-rw-r--r--sbin/dhclient/tree.c15
10 files changed, 21 insertions, 557 deletions
diff --git a/sbin/dhclient/alloc.c b/sbin/dhclient/alloc.c
index de129a1b650..cabb76d4298 100644
--- a/sbin/dhclient/alloc.c
+++ b/sbin/dhclient/alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: alloc.c,v 1.8 2004/05/04 18:58:50 deraadt Exp $ */
+/* $OpenBSD: alloc.c,v 1.9 2004/05/04 20:28:40 deraadt Exp $ */
/* Memory allocation... */
@@ -74,9 +74,3 @@ new_hash_bucket(void)
return (rval);
}
-
-void
-free_hash_bucket(struct hash_bucket *ptr)
-{
- free(ptr);
-}
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 83bfd1031f2..9fcf55b6728 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.39 2004/05/04 18:58:50 deraadt Exp $ */
+/* $OpenBSD: dhclient.c,v 1.40 2004/05/04 20:28:40 deraadt Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -73,8 +73,6 @@
time_t cur_time;
time_t default_lease_time = 43200; /* 12 hours... */
-time_t max_lease_time = 86400; /* 24 hours... */
-struct tree_cache *global_options[256];
char *path_dhclient_conf = _PATH_DHCLIENT_CONF;
char *path_dhclient_db = NULL;
@@ -83,7 +81,6 @@ int log_perror = 1;
int privfd;
struct iaddr iaddr_broadcast = { 4, { 255, 255, 255, 255 } };
-struct iaddr iaddr_any = { 4, { 0, 0, 0, 0 } };
struct in_addr inaddr_any;
struct sockaddr_in sockaddr_broadcast;
@@ -1308,20 +1305,6 @@ send_decline(void *ipp)
}
void
-send_release(void *ipp)
-{
- struct interface_info *ip = ipp;
-
- note("DHCPRELEASE on %s to %s port %d", ip->name,
- inet_ntoa(sockaddr_broadcast.sin_addr),
- ntohs(sockaddr_broadcast.sin_port));
-
- /* Send out a packet. */
- (void) send_packet(ip, &ip->client->packet, ip->client->packet_length,
- inaddr_any, &sockaddr_broadcast, NULL);
-}
-
-void
make_discover(struct interface_info *ip, struct client_lease *lease)
{
unsigned char discover = DHCPDISCOVER;
@@ -1595,62 +1578,6 @@ make_decline(struct interface_info *ip, struct client_lease *lease)
}
void
-make_release(struct interface_info *ip, struct client_lease *lease)
-{
- unsigned char request = DHCPRELEASE;
- struct tree_cache *options[256];
- struct tree_cache message_type_tree;
- struct tree_cache server_id_tree;
- int i;
-
- memset(options, 0, sizeof(options));
- memset(&ip->client->packet, 0, sizeof(ip->client->packet));
-
- /* Set DHCP_MESSAGE_TYPE to DHCPRELEASE */
- i = DHO_DHCP_MESSAGE_TYPE;
- options[i] = &message_type_tree;
- options[i]->value = &request;
- options[i]->len = sizeof(request);
- options[i]->buf_size = sizeof(request);
- options[i]->timeout = 0xFFFFFFFF;
- options[i]->tree = NULL;
-
- /* Send back the server identifier... */
- i = DHO_DHCP_SERVER_IDENTIFIER;
- options[i] = &server_id_tree;
- options[i]->value = lease->options[i].data;
- options[i]->len = lease->options[i].len;
- options[i]->buf_size = lease->options[i].len;
- options[i]->timeout = 0xFFFFFFFF;
- options[i]->tree = NULL;
-
- /* Set up the option buffer... */
- ip->client->packet_length = cons_options(NULL, &ip->client->packet, 0,
- options, 0, 0, 0, NULL, 0);
- if (ip->client->packet_length < BOOTP_MIN_LEN)
- ip->client->packet_length = BOOTP_MIN_LEN;
-
- ip->client->packet.op = BOOTREQUEST;
- ip->client->packet.htype = ip->hw_address.htype;
- ip->client->packet.hlen = ip->hw_address.hlen;
- ip->client->packet.hops = 0;
- ip->client->packet.xid = arc4random();
- ip->client->packet.secs = 0;
- ip->client->packet.flags = 0;
-
- memset(&ip->client->packet.ciaddr, 0,
- sizeof(ip->client->packet.ciaddr));
- memset(&ip->client->packet.yiaddr, 0,
- sizeof(ip->client->packet.yiaddr));
- memset(&ip->client->packet.siaddr, 0,
- sizeof(ip->client->packet.siaddr));
- memset(&ip->client->packet.giaddr, 0,
- sizeof(ip->client->packet.giaddr));
- memcpy(ip->client->packet.chaddr,
- ip->hw_address.haddr, ip->hw_address.hlen);
-}
-
-void
free_client_lease(struct client_lease *lease)
{
int i;
@@ -1748,9 +1675,6 @@ write_client_lease(struct interface_info *ip, struct client_lease *lease,
fflush(leaseFile);
}
-char scriptName[256];
-FILE *scriptFile;
-
void
script_init(char *reason, struct string_list *medium)
{
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h
index 8b0f867e740..f5dc9079735 100644
--- a/sbin/dhclient/dhcpd.h
+++ b/sbin/dhclient/dhcpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhcpd.h,v 1.30 2004/05/04 18:58:50 deraadt Exp $ */
+/* $OpenBSD: dhcpd.h,v 1.31 2004/05/04 20:28:40 deraadt Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
@@ -275,7 +275,6 @@ int peek_token(char **, FILE *);
void skip_to_semi(FILE *);
int parse_semi(FILE *);
char *parse_string(FILE *);
-char *parse_host_name(FILE *);
int parse_ip_addr(FILE *, struct iaddr *);
void parse_hardware_param(FILE *, struct hardware *);
void parse_lease_time(FILE *, time_t *);
@@ -286,14 +285,12 @@ time_t parse_date(FILE *);
/* tree.c */
int tree_evaluate(struct tree_cache *);
-struct dns_host_entry *enter_dns_host(char *);
pair cons(caddr_t, pair);
/* alloc.c */
struct string_list *new_string_list(size_t size);
struct hash_table *new_hash_table(int);
struct hash_bucket *new_hash_bucket(void);
-void free_hash_bucket(struct hash_bucket *);
/* bpf.c */
int if_register_bpf(struct interface_info *);
@@ -320,14 +317,12 @@ int interface_link_status(char *);
/* hash.c */
struct hash_table *new_hash(void);
void add_hash(struct hash_table *, unsigned char *, int, unsigned char *);
-void delete_hash_entry(struct hash_table *, unsigned char *, int);
unsigned char *hash_lookup(struct hash_table *, unsigned char *, int);
/* tables.c */
extern struct option dhcp_options[256];
extern unsigned char dhcp_option_default_priority_list[];
extern int sizeof_dhcp_option_default_priority_list;
-extern char *hardware_types[256];
extern struct hash_table universe_hash;
extern struct universe dhcp_universe;
void initialize_universes(void);
@@ -344,9 +339,7 @@ void putShort(unsigned char *, int);
/* inet.c */
struct iaddr subnet_number(struct iaddr, struct iaddr);
-struct iaddr ip_addr(struct iaddr, struct iaddr, u_int32_t);
struct iaddr broadcast_addr(struct iaddr, struct iaddr);
-u_int32_t host_addr(struct iaddr, struct iaddr);
int addr_eq(struct iaddr, struct iaddr);
char *piaddr(struct iaddr);
@@ -365,7 +358,6 @@ void dhcpnak(struct packet *);
void send_discover(void *);
void send_request(void *);
-void send_release(void *);
void send_decline(void *);
void state_reboot(void *);
@@ -380,7 +372,6 @@ void bind_lease(struct interface_info *);
void make_discover(struct interface_info *, struct client_lease *);
void make_request(struct interface_info *, struct client_lease *);
void make_decline(struct interface_info *, struct client_lease *);
-void make_release(struct interface_info *, struct client_lease *);
void free_client_lease(struct client_lease *);
void rewrite_client_leases(void);
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c
index 2ea7b860a7f..0f9723b1933 100644
--- a/sbin/dhclient/dispatch.c
+++ b/sbin/dhclient/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.24 2004/05/04 18:58:50 deraadt Exp $ */
+/* $OpenBSD: dispatch.c,v 1.25 2004/05/04 20:28:40 deraadt Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -89,6 +89,7 @@ discover_interfaces(struct interface_info *iface)
if (ifa->ifa_addr->sa_family == AF_LINK) {
struct sockaddr_dl *foo =
(struct sockaddr_dl *)ifa->ifa_addr;
+
iface->index = foo->sdl_index;
iface->hw_address.hlen = foo->sdl_alen;
iface->hw_address.htype = HTYPE_ETHER; /* XXX */
@@ -122,7 +123,6 @@ discover_interfaces(struct interface_info *iface)
if_register_receive(iface);
if_register_send(iface);
add_protocol(iface->name, iface->rfdesc, got_one, iface);
-
freeifaddrs(ifap);
}
@@ -185,9 +185,7 @@ another:
to_msec = -1;
/* Set up the descriptors to be polled. */
- i = 0;
-
- for (l = protocols; l; l = l->next) {
+ for (i = 0, l = protocols; l; l = l->next) {
struct interface_info *ip = l->local;
if (ip && (l->handler != got_one || !ip->dead)) {
fds[i].fd = l->fd;
diff --git a/sbin/dhclient/hash.c b/sbin/dhclient/hash.c
index 8457e7ef40a..357370818c7 100644
--- a/sbin/dhclient/hash.c
+++ b/sbin/dhclient/hash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hash.c,v 1.6 2004/05/04 18:58:50 deraadt Exp $ */
+/* $OpenBSD: hash.c,v 1.7 2004/05/04 20:28:40 deraadt Exp $ */
/* Routines for manipulating hash tables... */
@@ -97,38 +97,6 @@ void add_hash(struct hash_table *table, unsigned char *name, int len,
table->buckets[hashno] = bp;
}
-void
-delete_hash_entry(struct hash_table *table, unsigned char *name, int len)
-{
- int hashno;
- struct hash_bucket *bp, *pbp = NULL;
-
- if (!table)
- return;
- if (!len)
- len = strlen((char *)name);
-
- hashno = do_hash(name, len, table->hash_count);
-
- /*
- * Go through the list looking for an entry that matches; if we
- * find it, delete it.
- */
- for (bp = table->buckets[hashno]; bp; bp = bp->next) {
- if ((!bp->len &&
- !strcmp((char *)bp->name, (char *)name)) ||
- (bp->len == len && !memcmp(bp->name, name, len))) {
- if (pbp)
- pbp->next = bp->next;
- else
- table->buckets[hashno] = bp->next;
- free_hash_bucket(bp);
- break;
- }
- pbp = bp; /* jwg, 9/6/96 - nice catch! */
- }
-}
-
unsigned char *
hash_lookup(struct hash_table *table, unsigned char *name, int len)
{
diff --git a/sbin/dhclient/inet.c b/sbin/dhclient/inet.c
index 42466bc6f32..00635aa2b4d 100644
--- a/sbin/dhclient/inet.c
+++ b/sbin/dhclient/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.5 2004/03/02 18:49:21 deraadt Exp $ */
+/* $OpenBSD: inet.c,v 1.6 2004/05/04 20:28:40 deraadt Exp $ */
/*
* Subroutines to manipulate internet addresses in a safely portable
@@ -66,49 +66,6 @@ subnet_number(struct iaddr addr, struct iaddr mask)
}
/*
- * Combine a network number and a integer to produce an internet address.
- * This won't work for subnets with more than 32 bits of host address, but
- * maybe this isn't a problem.
- */
-struct iaddr
-ip_addr(struct iaddr subnet, struct iaddr mask, u_int32_t host_address)
-{
- int i, j, k;
- u_int32_t swaddr;
- unsigned char habuf[sizeof(swaddr)];
- struct iaddr rv;
-
- swaddr = htonl(host_address);
- memcpy(habuf, &swaddr, sizeof(swaddr));
-
- /*
- * Combine the subnet address and the host address. If the
- * host address is bigger than can fit in the subnet, return a
- * zero-length iaddr structure.
- */
- rv = subnet;
- j = rv.len - sizeof(habuf);
- for (i = sizeof(habuf) - 1; i >= 0; i--) {
- if (mask.iabuf[i + j]) {
- if (habuf[i] > (mask.iabuf[i + j] ^ 0xFF)) {
- rv.len = 0;
- return (rv);
- }
- for (k = i - 1; k >= 0; k--)
- if (habuf[k]) {
- rv.len = 0;
- return (rv);
- }
- rv.iabuf[i + j] |= habuf[i];
- break;
- } else
- rv.iabuf[i + j] = habuf[i];
- }
-
- return (rv);
-}
-
-/*
* Given a subnet number and netmask, return the address on that subnet
* for which the host portion of the address is all ones (the standard
* broadcast address).
@@ -131,27 +88,6 @@ broadcast_addr(struct iaddr subnet, struct iaddr mask)
return (rv);
}
-u_int32_t
-host_addr(struct iaddr addr, struct iaddr mask)
-{
- int i;
- u_int32_t swaddr;
- struct iaddr rv;
-
- rv.len = 0;
-
- /* Mask out the network bits... */
- rv.len = addr.len;
- for (i = 0; i < rv.len; i++)
- rv.iabuf[i] = addr.iabuf[i] & ~mask.iabuf[i];
-
- /* Copy out up to 32 bits... */
- memcpy(&swaddr, &rv.iabuf[rv.len - sizeof(swaddr)], sizeof(swaddr));
-
- /* Swap it and return it. */
- return (ntohl(swaddr));
-}
-
int
addr_eq(struct iaddr addr1, struct iaddr addr2)
{
diff --git a/sbin/dhclient/options.c b/sbin/dhclient/options.c
index 61382e89c37..cd3940ad343 100644
--- a/sbin/dhclient/options.c
+++ b/sbin/dhclient/options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options.c,v 1.8 2004/04/14 20:22:27 henning Exp $ */
+/* $OpenBSD: options.c,v 1.9 2004/05/04 20:28:40 deraadt Exp $ */
/* DHCP options parsing and reassembly. */
@@ -102,10 +102,8 @@ void
parse_option_buffer(struct packet *packet,
unsigned char *buffer, int length)
{
- unsigned char *s, *t;
- unsigned char *end = buffer + length;
- int len;
- int code;
+ unsigned char *s, *t, *end = buffer + length;
+ int len, code;
for (s = buffer; *s != DHO_END && s < end; ) {
code = s[0];
@@ -203,13 +201,9 @@ cons_options(struct packet *inpacket, struct dhcp_packet *outpacket,
int overload, /* Overload flags that may be set. */
int terminate, int bootpp, u_int8_t *prl, int prl_len)
{
- unsigned char priority_list[300];
- int priority_len;
- unsigned char buffer[4096]; /* Really big buffer... */
- int main_buffer_size;
- int mainbufix, bufix;
- int option_size;
- int length;
+ unsigned char priority_list[300], buffer[4096];
+ int priority_len, main_buffer_size, mainbufix, bufix;
+ int option_size, length;
/*
* If the client has provided a maximum DHCP message size, use
@@ -350,11 +344,7 @@ store_options(unsigned char *buffer, int buflen, struct tree_cache **options,
unsigned char *priority_list, int priority_len, int first_cutoff,
int second_cutoff, int terminate)
{
- int bufix = 0;
- int option_stored[256];
- int i;
- int ix;
- int tto;
+ int bufix = 0, option_stored[256], i, ix, tto;
/* Zero out the stored-lengths array. */
memset(option_stored, 0, sizeof(option_stored));
@@ -463,18 +453,13 @@ pretty_print_option(unsigned int code, unsigned char *data, int len,
int emit_commas, int emit_quotes)
{
static char optbuf[32768]; /* XXX */
- int hunksize = 0;
- int numhunk = -1;
- int numelem = 0;
- char fmtbuf[32];
- int i, j, k;
- char *op = optbuf;
- int opleft = sizeof(optbuf);
+ int hunksize = 0, numhunk = -1, numelem = 0;
+ char fmtbuf[32], *op = optbuf;
+ int i, j, k, opleft = sizeof(optbuf);
unsigned char *dp = data;
struct in_addr foo;
char comma;
-
/* Code should be between 0 and 255. */
if (code > 255)
error("pretty_print_option: bad code %d\n", code);
diff --git a/sbin/dhclient/parse.c b/sbin/dhclient/parse.c
index de1a87ac37b..4a6a50bdf2a 100644
--- a/sbin/dhclient/parse.c
+++ b/sbin/dhclient/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.7 2004/02/24 13:08:26 henning Exp $ */
+/* $OpenBSD: parse.c,v 1.8 2004/05/04 20:28:40 deraadt Exp $ */
/* Common parser code for dhcpd and dhclient. */
@@ -133,63 +133,6 @@ parse_string(FILE *cfile)
return (s);
}
-/*
- * hostname :== identifier | hostname DOT identifier
- */
-char *
-parse_host_name(FILE *cfile)
-{
- char *val;
- int token;
- int len = 0;
- char *s;
- char *t;
- pair c = NULL;
-
- /* Read a dotted hostname... */
- do {
- /* Read a token, which should be an identifier. */
- token = next_token(&val, cfile);
- if (!is_identifier(token) && token != NUMBER) {
- parse_warn("expecting an identifier in hostname");
- skip_to_semi(cfile);
- return (NULL);
- }
- /* Store this identifier... */
- if (!(s = malloc(strlen(val) + 1)))
- error("can't allocate temp space for hostname.");
- strlcpy(s, val, strlen(val) + 1);
- c = cons((caddr_t)s, c);
- len += strlen(s) + 1;
- /*
- * Look for a dot; if it's there, keep going, otherwise
- * we're done.
- */
- token = peek_token(&val, cfile);
- if (token == DOT)
- token = next_token(&val, cfile);
- } while (token == DOT);
-
- /* Assemble the hostname together into a string. */
- if (!(s = malloc(len)))
- error("can't allocate space for hostname.");
- t = s + len;
- *--t = '\0';
- while (c) {
- pair cdr = c->cdr;
- int l = strlen((char *)c->car);
- t -= l;
- memcpy(t, (char *)c->car, l);
- /* Free up temp space. */
- free(c->car);
- free(c);
- c = cdr;
- if (t != s)
- *--t = '.';
- }
- return (s);
-}
-
int
parse_ip_addr(FILE *cfile, struct iaddr *addr)
{
diff --git a/sbin/dhclient/tables.c b/sbin/dhclient/tables.c
index faec6306c9d..6648756952c 100644
--- a/sbin/dhclient/tables.c
+++ b/sbin/dhclient/tables.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tables.c,v 1.3 2004/02/07 13:26:35 henning Exp $ */
+/* $OpenBSD: tables.c,v 1.4 2004/05/04 20:28:40 deraadt Exp $ */
/* Tables of information... */
@@ -406,268 +406,6 @@ unsigned char dhcp_option_default_priority_list[] = {
int sizeof_dhcp_option_default_priority_list =
sizeof(dhcp_option_default_priority_list);
-
-char *hardware_types[] = {
- "unknown-0",
- "ethernet",
- "unknown-2",
- "unknown-3",
- "unknown-4",
- "unknown-5",
- "token-ring",
- "unknown-7",
- "fddi",
- "unknown-9",
- "unknown-10",
- "unknown-11",
- "unknown-12",
- "unknown-13",
- "unknown-14",
- "unknown-15",
- "unknown-16",
- "unknown-17",
- "unknown-18",
- "unknown-19",
- "unknown-20",
- "unknown-21",
- "unknown-22",
- "unknown-23",
- "unknown-24",
- "unknown-25",
- "unknown-26",
- "unknown-27",
- "unknown-28",
- "unknown-29",
- "unknown-30",
- "unknown-31",
- "unknown-32",
- "unknown-33",
- "unknown-34",
- "unknown-35",
- "unknown-36",
- "unknown-37",
- "unknown-38",
- "unknown-39",
- "unknown-40",
- "unknown-41",
- "unknown-42",
- "unknown-43",
- "unknown-44",
- "unknown-45",
- "unknown-46",
- "unknown-47",
- "unknown-48",
- "unknown-49",
- "unknown-50",
- "unknown-51",
- "unknown-52",
- "unknown-53",
- "unknown-54",
- "unknown-55",
- "unknown-56",
- "unknown-57",
- "unknown-58",
- "unknown-59",
- "unknown-60",
- "unknown-61",
- "unknown-62",
- "unknown-63",
- "unknown-64",
- "unknown-65",
- "unknown-66",
- "unknown-67",
- "unknown-68",
- "unknown-69",
- "unknown-70",
- "unknown-71",
- "unknown-72",
- "unknown-73",
- "unknown-74",
- "unknown-75",
- "unknown-76",
- "unknown-77",
- "unknown-78",
- "unknown-79",
- "unknown-80",
- "unknown-81",
- "unknown-82",
- "unknown-83",
- "unknown-84",
- "unknown-85",
- "unknown-86",
- "unknown-87",
- "unknown-88",
- "unknown-89",
- "unknown-90",
- "unknown-91",
- "unknown-92",
- "unknown-93",
- "unknown-94",
- "unknown-95",
- "unknown-96",
- "unknown-97",
- "unknown-98",
- "unknown-99",
- "unknown-100",
- "unknown-101",
- "unknown-102",
- "unknown-103",
- "unknown-104",
- "unknown-105",
- "unknown-106",
- "unknown-107",
- "unknown-108",
- "unknown-109",
- "unknown-110",
- "unknown-111",
- "unknown-112",
- "unknown-113",
- "unknown-114",
- "unknown-115",
- "unknown-116",
- "unknown-117",
- "unknown-118",
- "unknown-119",
- "unknown-120",
- "unknown-121",
- "unknown-122",
- "unknown-123",
- "unknown-124",
- "unknown-125",
- "unknown-126",
- "unknown-127",
- "unknown-128",
- "unknown-129",
- "unknown-130",
- "unknown-131",
- "unknown-132",
- "unknown-133",
- "unknown-134",
- "unknown-135",
- "unknown-136",
- "unknown-137",
- "unknown-138",
- "unknown-139",
- "unknown-140",
- "unknown-141",
- "unknown-142",
- "unknown-143",
- "unknown-144",
- "unknown-145",
- "unknown-146",
- "unknown-147",
- "unknown-148",
- "unknown-149",
- "unknown-150",
- "unknown-151",
- "unknown-152",
- "unknown-153",
- "unknown-154",
- "unknown-155",
- "unknown-156",
- "unknown-157",
- "unknown-158",
- "unknown-159",
- "unknown-160",
- "unknown-161",
- "unknown-162",
- "unknown-163",
- "unknown-164",
- "unknown-165",
- "unknown-166",
- "unknown-167",
- "unknown-168",
- "unknown-169",
- "unknown-170",
- "unknown-171",
- "unknown-172",
- "unknown-173",
- "unknown-174",
- "unknown-175",
- "unknown-176",
- "unknown-177",
- "unknown-178",
- "unknown-179",
- "unknown-180",
- "unknown-181",
- "unknown-182",
- "unknown-183",
- "unknown-184",
- "unknown-185",
- "unknown-186",
- "unknown-187",
- "unknown-188",
- "unknown-189",
- "unknown-190",
- "unknown-191",
- "unknown-192",
- "unknown-193",
- "unknown-194",
- "unknown-195",
- "unknown-196",
- "unknown-197",
- "unknown-198",
- "unknown-199",
- "unknown-200",
- "unknown-201",
- "unknown-202",
- "unknown-203",
- "unknown-204",
- "unknown-205",
- "unknown-206",
- "unknown-207",
- "unknown-208",
- "unknown-209",
- "unknown-210",
- "unknown-211",
- "unknown-212",
- "unknown-213",
- "unknown-214",
- "unknown-215",
- "unknown-216",
- "unknown-217",
- "unknown-218",
- "unknown-219",
- "unknown-220",
- "unknown-221",
- "unknown-222",
- "unknown-223",
- "unknown-224",
- "unknown-225",
- "unknown-226",
- "unknown-227",
- "unknown-228",
- "unknown-229",
- "unknown-230",
- "unknown-231",
- "unknown-232",
- "unknown-233",
- "unknown-234",
- "unknown-235",
- "unknown-236",
- "unknown-237",
- "unknown-238",
- "unknown-239",
- "unknown-240",
- "unknown-241",
- "unknown-242",
- "unknown-243",
- "unknown-244",
- "unknown-245",
- "unknown-246",
- "unknown-247",
- "unknown-248",
- "unknown-249",
- "unknown-250",
- "unknown-251",
- "unknown-252",
- "unknown-253",
- "unknown-254",
- "unknown-255"
-};
-
-
-
struct hash_table universe_hash;
void
diff --git a/sbin/dhclient/tree.c b/sbin/dhclient/tree.c
index 88c2369b76f..58b6694f387 100644
--- a/sbin/dhclient/tree.c
+++ b/sbin/dhclient/tree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tree.c,v 1.10 2004/04/14 20:22:27 henning Exp $ */
+/* $OpenBSD: tree.c,v 1.11 2004/05/04 20:28:40 deraadt Exp $ */
/* Routines for manipulating parse trees... */
@@ -62,19 +62,6 @@ cons(caddr_t car, pair cdr)
return (foo);
}
-struct dns_host_entry *
-enter_dns_host(char *name)
-{
- struct dns_host_entry *dh;
- int len = strlen(name) + 1;
-
- if (!(dh = calloc(1, sizeof(struct dns_host_entry)))
- || !(dh->hostname = calloc(1, len)))
- error("Can't allocate space for new host.");
- strlcpy(dh->hostname, name, len);
- return (dh);
-}
-
int
tree_evaluate(struct tree_cache *tree_cache)
{