1 /* This software is GPL, see http://www.gnu.org to see exactly what it means */
2 
3 /* This file contains some useful constant declarations */
4 
5 #ifndef OPTIONS_H
6 #define OPTIONS_H
7 
8 #define  VERSION  "ecl-dhcp-0.0.2-snoopy"
9 
10 #define  MAX_PROCESS_TIME 15
11 
12 #define  FALSE  0
13 #define  TRUE   1
14 
15 #define  BOOTREQUEST 0x1
16 #define  BOOTREPLY   0x2
17 
18 	     /* Message types */
19 
20 #define  DHCPDISCOVER  0x1
21 #define  DHCPOFFER      0x2
22 #define  DHCPREQUEST    0x3
23 #define  DHCPDECLINE    0x4
24 #define  DHCPACK        0x5
25 #define  DHCPNAK        0x6
26 #define  DHCPRELEASE    0x7
27 #define  DHCPINFORM     0x8
28 
29 
30 #define  PAD            0x00
31 #define  MASK           0x01
32 #define  TOFFSET        0x02
33 #define  ROUTER         0x03
34 #define  TIMESERVER     0x04
35 #define  NS             0x05
36 #define  DNS            0x06
37 #define  LOGSERVER      0x07
38 #define  COOKIESERVER   0x08
39 #define  LPRSERVER      0x09
40 #define  IMPSERVER      0x0A
41 #define  RESLOCSERVER   0x0B
42 #define  HOSTNAME       0x0C
43 #define  BOOTFILESIZE   0x0D
44 #define  MERITDUMPFILE  0x0E
45 #define  DOMAINNAME     0x0F
46 #define  SWAPSERVER     0x10
47 #define  ROOTPATH       0x11
48 #define  EXTENSIONPATH  0x12
49 #define  IPFORWARD      0x13
50 #define  NONLOCAL       0x14
51 #define  POLICYFILTER   0x15
52 #define  MAXIMUMDATAG   0x16
53 #define  DEFAULTTTL     0x17
54 #define  PATHMTUATO     0x18
55 #define  PATHMTUPTO     0x19
56 #define  IMTU           0x1A
57 #define  ALLSUBLOCAL    0x1B
58 #define  BROADCAST      0x1C
59 #define  PMASKDISCOVERY 0x1D
60 #define  MASKSUPPLIER   0x1E
61 #define  PROUTERDISCOVE 0x1F
62 #define  RSOLICIADDRESS 0x20
63 #define  STATICROUTE    0x21
64 #define  TENCAPSULATION 0x22
65 #define  ARPCACHE       0x23
66 #define  ETHENCAPSUL    0x24
67 #define  TCPDEFTTL      0x25
68 #define  TCPKAI         0x26
69 #define  TCPKAG         0x27
70 #define  NISDOMAIN      0x28
71 #define  NISSERVER      0x29
72 #define  NTPSERVER      0x2A
73 #define  VENDORSP       0x2B
74 #define  NBTCPIPNS      0x2C
75 #define  NBTCPIPDDS     0x2D
76 #define  NBTCPIPNT      0x2E
77 #define  NBTCPIPSC      0x2F
78 #define  XWINFONTSERVER 0x30
79 #define  XWINDISPLAY    0x31
80 #define  IP             0x32
81 #define  LEASE          0x33
82 #define  OVERLOAD       0x34
83 #define  MESSAGETYPE    0x35
84 #define  SERVER         0x36
85 #define  PREQUEST       0x37
86 #define  MESSAGE        0x38
87 #define  MAXIMUMDHCP    0x39
88 #define  RENEWALTIME    0x3A
89 #define  REBINDING      0x3B
90 #define  VENDORCLASS    0x3C
91 #define  CLIENT         0x3D
92 #define  NISPLUSDOMAIN  0x40
93 #define  NISPLUSSERVER  0x41
94 #define  TFTPSERVER     0x42
95 #define  BOOTFILE       0x43
96 #define  MOBILEIP       0x44
97 #define  SMTPSERVER     0x45
98 #define  POP3SERVER     0x46
99 #define  NNTPSERVER     0x47
100 #define  HTTPSERVER     0x48
101 #define  FINGERSERVER   0x49
102 #define  IRCSERVER      0x4A
103 #define  STREETTALKSE   0x4B
104 #define  STREETTALKDA   0x4C
105 #define  END            0xFF
106 
107 		 /* Constants */
108 #define  FREE           0x01
109 #define  PROCESSING     0x02
110 #define  BUSY           0x00
111 
112 #define  DYNAMIC        0x00
113 #ifdef STATIC
114 #undef STATIC
115 #endif
116 #define  STATIC         0x01
117 
118 #endif
119