Listening... select() worked, trying to get data by recvfrom()... Received packet: 300 bytes from 0.0.0.0:68. Source: 0.0.0.0 Destination: 192.168.0.1. Reading packet... Reading received packet data... Packet type is: DHCPDISCOVER List of request parameters: Checking packet... Print packet data... Bootstrap Protocol Message type: bootp BOOTREQUEST (1) Hardware type: Ethernet 10Mb Hardware address length: 6 Hops: 0 Transaction ID: 0x00000001 Seconds elapsed: 0 Bootp flags: 0x0000 Client IP address (ciaddr): 0.0.0.0 Your (client) IP address (yiaddr): 0.0.0.0 Server IP address (siaddr): 0.0.0.0 Relay agent IP address (giaddr): 0.0.0.0 Client MAC address (chaddr): 00:1C:F0:89:BD:D7 Server host: Boot file name: Magic cookie: (OK) Option: (t=53, l=1) DHCP_OPTION_MESSAGE_TYPE = 1 Option: (t=12, l=16) DHCP_OPTION_HOST_NAME = PS-Dlink-HP1200 Option: (t=60, l=7) DHCP_OPTION_CLIENT_CLASS_INFO = MSFT 98 End Option [00:1C:F0:89:BD:D7] Processing DHCPDISCOVER package... Server determines IP for the client... [00:1C:F0:89:BD:D7] Determine IP... Search in ClientIP packet options. Search in terminalDHCP directory. [00:1C:F0:89:BD:D7] IP 192.168.0.28 for MAC 00:1C:F0:89:BD:D7 determined from terminalDHCP parameters. [00:1C:F0:89:BD:D7] Sending ARP to check if IP is busy... Checking ARP table to find IPNetRow for our IP... getIPNetTable returned 0. Sending ARP request for IP 192.168.0.28 (MAC 00:1C:F0:89:BD:D7, server IP 192.168.0.1) Sending Arp from 192.168.0.1 to 192.168.0.28. Sending ARP returned IP is free. [00:1C:F0:89:BD:D7] Send DHCPOFFER. We are sending packet from 192.168.0.1. Client IP = 192.168.0.28 Print packet data... Bootstrap Protocol Message type: bootp BOOTREPLY (2) Hardware type: Ethernet 10Mb Hardware address length: 6 Hops: 0 Transaction ID: 0x00000001 Seconds elapsed: 0 Bootp flags: 0x0000 Client IP address (ciaddr): 0.0.0.0 Your (client) IP address (yiaddr): 192.168.0.28 Server IP address (siaddr): 192.168.0.1 Relay agent IP address (giaddr): 0.0.0.0 Client MAC address (chaddr): 00:1C:F0:89:BD:D7 Server host: Boot file name: 4.9.16\wtware.pxe Magic cookie: (OK) Option: (t=53, l=1) DHCP_OPTION_MESSAGE_TYPE = 2 Option: (t=54, l=4) DHCP_OPTION_SERVER_IDENTIFIER = c0 a8 00 01, 16820416 (0x0100a8c0), '(' Option: (t=1, l=4) DHCP_OPTION_SUBNET_MASK = 255.255.255.0 Option: (t=26, l=2) DHCP_OPTION_MTU = 1500 Option: (t=66, l=12) DHCP_OPTION_TFTP_SERVER_NAME = 192.168.0.1 Option: (t=67, l=18) DHCP_OPTION_TFTP_BOOTFILE_NAME = 4.9.16\wtware.pxe Option: (t=51, l=4) DHCP_OPTION_LEASE_TIME = -1 End Option Sending packet: 300 bytes to 255.255.255.255:68. Success, sent 300 bytes to 255.255.255.255:68. Listening... select() worked, trying to get data by recvfrom()... Received packet: 308 bytes from 0.0.0.0:68. Source: 0.0.0.0 Destination: 192.168.0.1. Reading packet... Reading received packet data... Packet type is: DHCPREQUEST List of request parameters: 1 3 6 Requested IP is: 192.168.0.28 Checking packet... WARNING! Field "options" is incorrect. Check packet failed. Ignore packet. 00000000: 01 01 06 00 03 00 00 00 00 00 00 00 00 00 00 00 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 1c f0 89 00000020: bd d7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 63 82 53 63 000000f0: 35 01 03 32 04 c0 a8 00 1c 36 04 c0 a8 00 01 37 00000100: 03 01 03 06 0c 10 50 53 2d 44 6c 69 6e 6b 2d 48 00000110: 50 31 32 30 30 00 51 13 00 00 00 50 53 2d 44 6c 00000120: 69 6e 6b 2d 48 50 31 32 30 30 00 3c 07 4d 53 46 00000130: 54 20 39 38 Listening...