瀏覽代碼

Forgot to set initial session state. Now works!

tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
cf33b568dc
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      src/net/udp/dhcp.c

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

806
 	dhcp->netdev = netdev_get ( netdev );
806
 	dhcp->netdev = netdev_get ( netdev );
807
 	dhcp->register_options = register_options;
807
 	dhcp->register_options = register_options;
808
 	dhcp->timer.expired = dhcp_timer_expired;
808
 	dhcp->timer.expired = dhcp_timer_expired;
809
+	dhcp->state = DHCPDISCOVER;
809
 
810
 
810
 	/* Instantiate child objects and attach to our interfaces */
811
 	/* Instantiate child objects and attach to our interfaces */
811
 	if ( ( rc = xfer_open_socket ( &dhcp->xfer, SOCK_DGRAM,
812
 	if ( ( rc = xfer_open_socket ( &dhcp->xfer, SOCK_DGRAM,

Loading…
取消
儲存