13627105546 opened a new pull request, #17887:
URL: https://github.com/apache/nuttx/pull/17887

   Rename imr_interface to imr_address in struct ip_mreqn to match the Linux 
definition. This ensures compatibility with standard socket APIs and existing 
Linux applications.
   
   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   This change is necessary to align the structure definition with the Linux 
standard (as seen in `man 7 ip`), where `struct ip_mreqn` uses `imr_address` 
for the local IP address of the interface. This ensures source-level 
compatibility for applications porting from Linux that access this field.
   
   ## Impact
   
   *   **Impact on user**: Improves compatibility for POSIX/Linux network 
applications using `IP_ADD_MEMBERSHIP` / `IP_DROP_MEMBERSHIP` with `struct 
ip_mreqn`.
   *   **Build process**: Requires recompilation of code accessing `struct 
ip_mreqn`.
   *   **Compatibility**: Backward compatible logic-wise, but breaks API for 
any existing NuttX-specific code explicitly using the old `imr_interface` name 
(though `imr_address` is the standard name).
   
   ## Testing
   
   *   **Verification**:
       1.  Compiled without errors.
       2.  Ran `tools/checkpatch.sh` and it passed without errors.
   


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