zs39 opened a new pull request, #3283:
URL: https://github.com/apache/nuttx-apps/pull/3283

   ## Summary
   
   The previous method of terminating the dhcp daemon via a global variable has 
been removed; instead, the `kill pid` command is used. Also, because the 
original `dhcp_start` method creates tasks via `task_create`, which is not 
supported in kernel mode, `dhcp_start` is not compiled in kernel mode. The 
daemon can be started in kernel mode using `dhcpd xxx &`.
   
   ## Impact
   
   The dhcpd_start and dhcpd_stop functions
   
   ## Testing
   
   Tested normally in flat mode
   ```
   nsh> dhcpd_start eth0
   nsh> ps
     TID   PID  PPID PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK        
    STACK COMMAND
       0     0     0   0 FIFO     Kthread   - Ready              
0000000000000000 0069568 Idle_Task
       1     0     0 224 FIFO     Kthread   - Waiting  Semaphore 
0000000000000000 0067448 hpwork 0x400b8020 0x400b80a0
       2     0     0 100 FIFO     Kthread   - Waiting  Semaphore 
0000000000000000 0067448 lpwork 0x400b80e0 0x400b8160
       3     3     0 100 FIFO     Task      - Running            
0000000000000000 0067488 nsh_main
       5     5     4 100 FIFO     Task      - Waiting  Semaphore 
0000000000000000 0067464 dhcpd eth0
   nsh> dhcpd_stop
   nsh> ps
     TID   PID  PPID PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK        
    STACK COMMAND
       0     0     0   0 FIFO     Kthread   - Ready              
0000000000000000 0069568 Idle_Task
       1     0     0 224 FIFO     Kthread   - Waiting  Semaphore 
0000000000000000 0067448 hpwork 0x400b8020 0x400b80a0
       2     0     0 100 FIFO     Kthread   - Waiting  Semaphore 
0000000000000000 0067448 lpwork 0x400b80e0 0x400b8160
       3     3     0 100 FIFO     Task      - Running            
0000000000000000 0067488 nsh_main
   nsh> 
   ```
   
   The build process works correctly in kernel mode and also functions properly 
on the internal QEMU platform.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to