Browse Source

Bugfix: DHCP message type should be a one-byte option... (d'oh)

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
771455653b
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/net/udp/dhcp.c

+ 1
- 2
src/net/udp/dhcp.c View File

294
  * dhcp_packet structure that can be passed to
294
  * dhcp_packet structure that can be passed to
295
  * set_dhcp_packet_option() or copy_dhcp_packet_options().
295
  * set_dhcp_packet_option() or copy_dhcp_packet_options().
296
  */
296
  */
297
-static int create_dhcp_packet ( struct net_device *netdev,
298
-				unsigned int msgtype,
297
+static int create_dhcp_packet ( struct net_device *netdev, uint8_t msgtype,
299
 				void *data, size_t max_len,
298
 				void *data, size_t max_len,
300
 				struct dhcp_packet *dhcppkt ) {
299
 				struct dhcp_packet *dhcppkt ) {
301
 	struct dhcphdr *dhcphdr = data;
300
 	struct dhcphdr *dhcphdr = data;

Loading…
Cancel
Save