Skip to content

Commit a2ca62d

Browse files
committed
Fixed the formatting mess (now all tabs)
1 parent bd4f20e commit a2ca62d

File tree

12 files changed

+1255
-1255
lines changed

12 files changed

+1255
-1255
lines changed

libraries/Ethernet/Dhcp.cpp

Lines changed: 418 additions & 418 deletions
Large diffs are not rendered by default.

libraries/Ethernet/Dhcp.h

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -138,41 +138,41 @@ typedef struct _RIP_MSG_FIXED
138138

139139
class DhcpClass {
140140
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);
167167
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();
176176
};
177177

178178
#endif

0 commit comments

Comments
 (0)