[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Add struct ip_mreqn in the glue headers
From: |
Flavio Cruz |
Subject: |
[PATCH] Add struct ip_mreqn in the glue headers |
Date: |
Wed, 7 Sep 2022 22:58:53 -0400 |
When I compile from master, I get the following error:
gcc -std=gnu99 -fgnu89-inline -Wall -g -O3 -fno-strict-aliasing -g -O2
-fno-strict-aliasing -I. -I.. -I../include -I../include -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -DPACKAGE_NAME=\"GNU\ Hurd\" -DPACKAGE_TARNAME=\"hurd\"
-DPACKAGE_VERSION=\"0.9\" -DPACKAGE_STRING=\"GNU\ Hurd\ 0.9\"
-DPACKAGE_BUGREPORT=\"bug-hurd@gnu.org\"
-DPACKAGE_URL=\"http://www.gnu.org/software/hurd/\" -DHAVE_MIG_RETCODE=1
-DHAVE_FILE_EXEC_PATHS=1 -DHAVE_EXEC_EXEC_PATHS=1 -DHAVE__HURD_EXEC_PATHS=1
-DUTIME_NOW=-1 -DUTIME_OMIT=-2 -DHAVE_LIBCRYPT=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_PARTED_PARTED_H=1 -DHAVE_LIBPARTED=1 -DHAVE_LIBUUID=1
-DHAVE_LIBDL=1 -DYYTEXT_POINTER=1 -DX11_PREFIX=\"\"
-DHAVE_STRUCT_THREAD_SCHED_INFO_LAST_PROCESSOR=1 -imacros ./config.h
-I./glue-include -I./linux-src/include -c -o devinet.o
./linux-src/net/ipv4/devinet.c
In file included from ./linux-src/net/ipv4/devinet.c:49:
./linux-src/include/linux/igmp.h:88:19: error: field 'multi' has incomplete type
88 | struct ip_mreqn multi;
| ^~~~~
<builtin>: recipe for target 'devinet.o' failed
This adds the definition to the glue header file.
Signed-off-by: Flavio Cruz <flaviocruz@gmail.com>
---
pfinet/glue-include/linux/in.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pfinet/glue-include/linux/in.h b/pfinet/glue-include/linux/in.h
index cb1804c6..34a41abc 100644
--- a/pfinet/glue-include/linux/in.h
+++ b/pfinet/glue-include/linux/in.h
@@ -19,6 +19,12 @@ struct in_pktinfo
struct in_addr ipi_addr;
};
+struct ip_mreqn
+{
+ struct in_addr imr_multiaddr; /* IP multicast address of
group */
+ struct in_addr imr_address; /* local IP address of
interface */
+ int imr_ifindex; /* Interface index */
+};
/* <asm/byteorder.h> contains the htonl type stuff.. */
#include <asm/byteorder.h>
--
2.35.1
- [PATCH] Add struct ip_mreqn in the glue headers,
Flavio Cruz <=