You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "13627105546 (via GitHub)" <gi...@apache.org> on 2026/01/14 07:16:14 UTC

[PR] netinet/in.h: Rename imr_interface to imr_address in struct ip_mreqn. [nuttx]

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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] netinet/in.h: Rename imr_interface to imr_address in struct ip_mreqn. [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #17887:
URL: https://github.com/apache/nuttx/pull/17887


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org