22 (
struct sockaddr *)broadcast,
sizeof(*broadcast) );
27 note (
"send_packet: please consult README file%s",
28 " regarding broadcast address.");
35 unsigned char *packet_data,
39 int recv_addr_size =
sizeof(*dest);
46 recvfrom (
ip -> rfdesc, (
char *)packet_data, (
int)packet_len, 0,
int note(char *format,...)
INT WSAAPI recvfrom(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags, OUT LPSOCKADDR from, IN OUT INT FAR *fromlen)
INT WSAAPI sendto(IN SOCKET s, IN CONST CHAR FAR *buf, IN INT len, IN INT flags, IN CONST struct sockaddr *to, IN INT tolen)
GLenum const GLvoid * addr
ssize_t receive_packet(struct interface_info *ip, unsigned char *packet_data, size_t packet_len, struct sockaddr_in *dest, struct hardware *hardware)
ssize_t send_packet(struct interface_info *ip, struct dhcp_packet *p, size_t size, struct in_addr addr, struct sockaddr_in *broadcast, struct hardware *hardware)
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)