Files
vanilla/pipe/linux/dhcp/dhcp.h
T
itsmattkc 1b2c4fa86c large scale android improvements
- Port vanilla-pipe on Android for users with rooted devices and compatible Wi-Fi hardware
- Drop OpenSSL as a build dependency (only used for hostap's crypto backend, but didn't work on Android so now we're using hostap's internal crypto)
- Improvements to event loop (targets 180Hz input polling + 60Hz video display)
- Implement MediaCodec hardware decoding on Android
- Use smaller and simpler DHCP client
2026-08-26 14:02:12 -07:00

25 lines
605 B
C

#ifndef DHCP_H
#define DHCP_H
#include <stdint.h>
#include <netinet/in.h>
#define SDHCP_MAX_DNS 4
typedef struct {
struct in_addr yiaddr;
struct in_addr subnet_mask;
struct in_addr router;
struct in_addr dns[SDHCP_MAX_DNS];
int dns_count;
uint32_t lease_time; /* host byte order */
uint32_t server_identifier; /* network byte order */
} sdhcp_lease_t;
// Simple one-shot DHCP acquisition for connection to Wii U
//
// Return 0 on success, -1 on error with errno set
int sdhcp_acquire(const char *ifname, int timeout_ms, int retries, sdhcp_lease_t *lease);
#endif