浏览代码

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

tags/v0.9.3
Michael Brown 17 年前
父节点
当前提交
771455653b
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      src/net/udp/dhcp.c

+ 1
- 2
src/net/udp/dhcp.c 查看文件

@@ -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;

正在加载...
取消
保存