Download libraries/Ethernet/src/Dhcp.h from Beifengdo/Arduino-Development: direct link, hf CLI and curl.
- Browser
- Download file 2.98 kB
-
https://huggingface.co/datasets/Beifengdo/Arduino-Development/resolve/main/libraries/Ethernet/src/Dhcp.h
- Command line
-
hf download hf://datasets/Beifengdo/Arduino-Development/libraries/Ethernet/src/Dhcp.h
-
curl -L -o Dhcp.h https://huggingface.co/datasets/Beifengdo/Arduino-Development/resolve/main/libraries/Ethernet/src/Dhcp.h
2.98 kB
| // DHCP Library v0.3 - April 25, 2009 | |
| // Author: Jordan Terrell - blog.jordanterrell.com | |
| /* DHCP state machine. */ | |
| /* UDP port numbers for DHCP */ | |
| /* DHCP message OP code */ | |
| /* DHCP message type */ | |
| enum | |
| { | |
| padOption = 0, | |
| subnetMask = 1, | |
| timerOffset = 2, | |
| routersOnSubnet = 3, | |
| /* timeServer = 4, | |
| nameServer = 5,*/ | |
| dns = 6, | |
| /*logServer = 7, | |
| cookieServer = 8, | |
| lprServer = 9, | |
| impressServer = 10, | |
| resourceLocationServer = 11,*/ | |
| hostName = 12, | |
| /*bootFileSize = 13, | |
| meritDumpFile = 14,*/ | |
| domainName = 15, | |
| /*swapServer = 16, | |
| rootPath = 17, | |
| extentionsPath = 18, | |
| IPforwarding = 19, | |
| nonLocalSourceRouting = 20, | |
| policyFilter = 21, | |
| maxDgramReasmSize = 22, | |
| defaultIPTTL = 23, | |
| pathMTUagingTimeout = 24, | |
| pathMTUplateauTable = 25, | |
| ifMTU = 26, | |
| allSubnetsLocal = 27, | |
| broadcastAddr = 28, | |
| performMaskDiscovery = 29, | |
| maskSupplier = 30, | |
| performRouterDiscovery = 31, | |
| routerSolicitationAddr = 32, | |
| staticRoute = 33, | |
| trailerEncapsulation = 34, | |
| arpCacheTimeout = 35, | |
| ethernetEncapsulation = 36, | |
| tcpDefaultTTL = 37, | |
| tcpKeepaliveInterval = 38, | |
| tcpKeepaliveGarbage = 39, | |
| nisDomainName = 40, | |
| nisServers = 41, | |
| ntpServers = 42, | |
| vendorSpecificInfo = 43, | |
| netBIOSnameServer = 44, | |
| netBIOSdgramDistServer = 45, | |
| netBIOSnodeType = 46, | |
| netBIOSscope = 47, | |
| xFontServer = 48, | |
| xDisplayManager = 49,*/ | |
| dhcpRequestedIPaddr = 50, | |
| dhcpIPaddrLeaseTime = 51, | |
| /*dhcpOptionOverload = 52,*/ | |
| dhcpMessageType = 53, | |
| dhcpServerIdentifier = 54, | |
| dhcpParamRequest = 55, | |
| /*dhcpMsg = 56, | |
| dhcpMaxMsgSize = 57,*/ | |
| dhcpT1value = 58, | |
| dhcpT2value = 59, | |
| /*dhcpClassIdentifier = 60,*/ | |
| dhcpClientIdentifier = 61, | |
| endOption = 255 | |
| }; | |
| typedef struct _RIP_MSG_FIXED | |
| { | |
| uint8_t op; | |
| uint8_t htype; | |
| uint8_t hlen; | |
| uint8_t hops; | |
| uint32_t xid; | |
| uint16_t secs; | |
| uint16_t flags; | |
| uint8_t ciaddr[4]; | |
| uint8_t yiaddr[4]; | |
| uint8_t siaddr[4]; | |
| uint8_t giaddr[4]; | |
| uint8_t chaddr[6]; | |
| } RIP_MSG_FIXED; | |