101 return a.len ==
b.len && !
memcmp(
a.iabuf,
b.iabuf,
a.len );
111 DWORD ComputerNameSize =
sizeof ComputerName /
sizeof ComputerName[0];
117 warn(
"util.c read_client_conf poorly implemented!");
123 debug(
"Hostname: %s, length: %lu",
124 ComputerName, ComputerNameSize);
128 if (lpCompName !=
NULL) {
129 memcpy(lpCompName, ComputerName, ComputerNameSize + 1);
133 debug(
"Hostname: %s, length: %d",
137 error(
"Failed to allocate heap for hostname");
163 warn(
"util.c read_client_conf poorly implemented!");
168 struct iaddr bcast = { 0 };
173 struct iaddr bcast = { 0 };
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
static struct sockaddr_in sa
int note(char *format,...)
int addr_eq(struct iaddr a, struct iaddr b)
struct iaddr broadcast_addr(struct iaddr addr, struct iaddr mask)
int32_t getLong(unsigned char *data)
u_int16_t getUShort(unsigned char *data)
char * piaddr(struct iaddr addr)
u_int32_t getULong(unsigned char *data)
void * dmalloc(int size, char *name)
int16_t getShort(unsigned char *data)
struct iaddr subnet_number(struct iaddr addr, struct iaddr mask)
int read_client_conf(struct interface_info *ifi)
#define DHO_BROADCAST_ADDRESS
#define DHO_DHCP_CLIENT_IDENTIFIER
#define DHO_DOMAIN_NAME_SERVERS
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
GLboolean GLboolean GLboolean b
GLenum GLuint GLenum GLsizei const GLchar * buf
GLenum const GLvoid * addr
GLboolean GLboolean GLboolean GLboolean a
#define memcpy(s1, s2, n)
struct client_state * client
struct hardware hw_address
#define MAX_COMPUTERNAME_LENGTH