summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-20 15:54:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-20 15:54:35 +0000
commitf2dd6ffbc33478763cf44fdaebd1014a5ea72dea (patch)
treed868dfabf8d53014f38840c7ced2861f67e11bf4
parent0528f806a48486f6a3d954fc36feefa857abfe23 (diff)
adjust comments as to what keywords are legal; from fkr
-rw-r--r--sbin/dhclient/clparse.c34
1 files changed, 19 insertions, 15 deletions
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c
index a6a926ca934..d5242279430 100644
--- a/sbin/dhclient/clparse.c
+++ b/sbin/dhclient/clparse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clparse.c,v 1.27 2006/04/18 19:17:54 deraadt Exp $ */
+/* $OpenBSD: clparse.c,v 1.28 2006/04/20 15:54:34 deraadt Exp $ */
/* Parser for dhclient config and lease files... */
@@ -136,22 +136,26 @@ read_client_leases(void)
/*
* client-declaration :==
- * SEND option-decl |
- * DEFAULT option-decl |
- * SUPERSEDE option-decl |
- * PREPEND option-decl |
- * APPEND option-decl |
+ * TOK_SEND option-decl |
+ * TOK_DEFAULT option-decl |
+ * TOK_SUPERSEDE option-decl |
+ * TOK_APPEND option-decl
+ * TOK_PREPEND option-decl |
+ * TOK_MEDIA string-list |
* hardware-declaration |
- * REQUEST option-list |
- * REQUIRE option-list |
- * TIMEOUT number |
- * RETRY number |
- * REBOOT number |
- * SELECT_TIMEOUT number |
- * SCRIPT string |
+ * TOK_REQUEST option-list |
+ * TOK_REQUIRE option-list |
+ * TOK_TIMEOUT number |
+ * TOK_RETRY number |
+ * TOK_SELECT_TIMEOUT number |
+ * TOK_REBOOT number |
+ * TOK_BACKOFF_CUTOFF number |
+ * TOK_INITIAL_INTERVAL number |
+ * TOK_SCRIPT string |
* interface-declaration |
- * LEASE client-lease-statement |
- * ALIAS client-lease-statement
+ * TOK_LEASE client-lease-statement |
+ * TOK_ALIAS client-lease-statement |
+ * TOK_REJECT reject-statement
*/
void
parse_client_statement(FILE *cfile)