Explorar el Código

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

tags/v0.9.3
Michael Brown hace 17 años
padre
commit
771455653b
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1
    2
      src/net/udp/dhcp.c

+ 1
- 2
src/net/udp/dhcp.c Ver fichero

@@ -294,8 +294,7 @@ static int copy_dhcp_packet_options ( struct dhcp_packet *dhcppkt,
294 294
  * dhcp_packet structure that can be passed to
295 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 298
 				void *data, size_t max_len,
300 299
 				struct dhcp_packet *dhcppkt ) {
301 300
 	struct dhcphdr *dhcphdr = data;

Loading…
Cancelar
Guardar