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

   ## Summary
   
   include/netpacket/netlink.h in nuttx is being split, so that each            
                                                                                
                                               
   netlink protocol has its own header and a user includes only what it         
                                                                                
                                               
   speaks: the rtnetlink definitions move to netpacket/rtnetlink.h and the      
                                                                                
                                               
   netfilter ones to netpacket/nfnetlink.h.                                     
                                                                                
                                               
                                                                                
                                                                                
                                               
   Include the header each file actually needs. Six files, one include line     
                                                                                
                                               
   each, no functional change.
   
   ## Impact
   
   None on its own: the headers already exist in nuttx after the companion      
                                                                                
                                               
   pull request, and netpacket/netlink.h keeps everything these files use       
                                                                                
                                               
   until then. Afterwards, these files would no longer compile without this     
                                                                                
                                               
   change, so the two must land together.                                       
                                                                                
                                               
                                                                                
                                                                                
                                               
   Companion: apache/nuttx PR net/netlink: add the Generic Netlink protocol.
   
   ## Testing
   
   Built sim:dynconns (CI config, tools/ci/testlist/sim-02.dat) against         
                                                                                
                                               
   the companion nuttx branch, with gcc 13.4 and gcc 11. Without this change    
                                                                                
                                               
   the build fails on the netlib files:                                         
                                                                                
                                               
                                                                                
                                                                                
                                               
   netlib_getarptab.c:49:19: error: field 'gen' has incomplete type             
                                                                                
                                               
   netlib_getarptab.c:150:26: error: 'RTM_GETNEIGH' undeclared                  
                                                                                
                                               
                                                                                
                                                                                
                                               
   
   With it, the build is clean and the netlink paths still work: the
   RTM_GETLINK dump through netlib_get_devices() and the conntrack
   listing through netlib_conntrack.c return the same results as before.
   
   
   


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