@@ -138,41 +138,41 @@ typedef struct _RIP_MSG_FIXED
138
138
139
139
class DhcpClass {
140
140
private:
141
- uint32_t _dhcpInitialTransactionId;
142
- uint32_t _dhcpTransactionId;
143
- uint8_t _dhcpMacAddr[6 ];
144
- uint8_t _dhcpLocalIp[4 ];
145
- uint8_t _dhcpSubnetMask[4 ];
146
- uint8_t _dhcpGatewayIp[4 ];
147
- uint8_t _dhcpDhcpServerIp[4 ];
148
- uint8_t _dhcpDnsServerIp[4 ];
149
- uint32_t _dhcpLeaseTime;
150
- uint32_t _dhcpT1, _dhcpT2;
151
- signed long _renewInSec;
152
- signed long _rebindInSec;
153
- signed long _lastCheck;
154
- unsigned long _timeout;
155
- unsigned long _responseTimeout;
156
- unsigned long _secTimeout;
157
- uint8_t _dhcp_state;
158
- EthernetUDP _dhcpUdpSocket;
159
-
160
- int request_DHCP_lease ();
161
- void reset_DHCP_lease ();
162
- void presend_DHCP ();
163
- void send_DHCP_MESSAGE (uint8_t , uint16_t );
164
- void printByte (char *, uint8_t );
165
-
166
- uint8_t parseDHCPResponse (unsigned long responseTimeout, uint32_t & transactionId);
141
+ uint32_t _dhcpInitialTransactionId;
142
+ uint32_t _dhcpTransactionId;
143
+ uint8_t _dhcpMacAddr[6 ];
144
+ uint8_t _dhcpLocalIp[4 ];
145
+ uint8_t _dhcpSubnetMask[4 ];
146
+ uint8_t _dhcpGatewayIp[4 ];
147
+ uint8_t _dhcpDhcpServerIp[4 ];
148
+ uint8_t _dhcpDnsServerIp[4 ];
149
+ uint32_t _dhcpLeaseTime;
150
+ uint32_t _dhcpT1, _dhcpT2;
151
+ signed long _renewInSec;
152
+ signed long _rebindInSec;
153
+ signed long _lastCheck;
154
+ unsigned long _timeout;
155
+ unsigned long _responseTimeout;
156
+ unsigned long _secTimeout;
157
+ uint8_t _dhcp_state;
158
+ EthernetUDP _dhcpUdpSocket;
159
+
160
+ int request_DHCP_lease ();
161
+ void reset_DHCP_lease ();
162
+ void presend_DHCP ();
163
+ void send_DHCP_MESSAGE (uint8_t , uint16_t );
164
+ void printByte (char *, uint8_t );
165
+
166
+ uint8_t parseDHCPResponse (unsigned long responseTimeout, uint32_t & transactionId);
167
167
public:
168
- IPAddress getLocalIp ();
169
- IPAddress getSubnetMask ();
170
- IPAddress getGatewayIp ();
171
- IPAddress getDhcpServerIp ();
172
- IPAddress getDnsServerIp ();
173
-
174
- int beginWithDHCP (uint8_t *, unsigned long timeout = 60000 , unsigned long responseTimeout = 4000 );
175
- int checkLease ();
168
+ IPAddress getLocalIp ();
169
+ IPAddress getSubnetMask ();
170
+ IPAddress getGatewayIp ();
171
+ IPAddress getDhcpServerIp ();
172
+ IPAddress getDnsServerIp ();
173
+
174
+ int beginWithDHCP (uint8_t *, unsigned long timeout = 60000 , unsigned long responseTimeout = 4000 );
175
+ int checkLease ();
176
176
};
177
177
178
178
#endif
0 commit comments