anchao opened a new pull request #3872:
URL: https://github.com/apache/incubator-nuttx/pull/3872


   ## Summary
   
   netinet: move the byte ordering convert functions to "netinet/in.h" 
   
   Moving byte order conversion function from arpa/inet.h to netinet/in.h
   
   ## Impact
   
   arpa/inet.h will contain the definition of netinet/in.h, so that the 
applications can reuse the definition here:
   
   
https://github.com/apache/incubator-nuttx/blob/37ec290a11efaf3782eee61aa2b8776d12bb7197/include/arpa/inet.h#L32
   
   BTW, this inclusion habit also appears in other OS:
   
   
https://github.com/openbsd/src/blob/28618202f3237245cc64669486bfde33b7135553/sys/netinet/in.h#L47-L51
   
   
https://github.com/lattera/glibc/blob/895ef79e04a953cac1493863bcae29ad85657ee1/inet/netinet/in.h#L367-L407
   
   ## Testing
   
   CI check


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

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


Reply via email to