mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
netinet: in.h: add support for Nimlang compatibility.
Without this POSIX-compatible definition, support for nativesockets module in Nimlang is problematic. .nimcache/(snip)@spure@snativesockets.nim.c: In function 'toInt__pureZnativesockets_69': .nimcache/(snip): error: 'IPPROTO_ICMPV6' undeclared (first use in this function); did you mean 'IPPROTO_ICMP6'? 291 | result = IPPROTO_ICMPV6; | ^~~~~~~~~~~~~~ | IPPROTO_ICMP6 Signed-off-by: Takeyoshi Kikuchi <kikuchi@centurysys.co.jp>
This commit is contained in:
committed by
Xiang Xiao
parent
267976e5a8
commit
6447064d81
@@ -58,6 +58,7 @@
|
||||
#define IPPROTO_ESP 50 /* Encapsulation Security Payload protocol */
|
||||
#define IPPROTO_AH 51 /* Authentication Header protocol */
|
||||
#define IPPROTO_ICMP6 58 /* Internal Control Message Protocol v6 */
|
||||
#define IPPROTO_ICMPV6 IPPROTO_ICMP6
|
||||
#define IPPROTO_NONE 59 /* IPv6 no next header. */
|
||||
#define IPPROTO_DSTOPTS 60 /* IPv6 destination options. */
|
||||
#define IPPROTO_MTP 92 /* Multicast Transport Protocol. */
|
||||
|
||||
Reference in New Issue
Block a user