[Top][All Lists]

[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 
-DPACKAGE_URL=\"http://www.gnu.org/software/hurd/\"; -DHAVE_MIG_RETCODE=1 
-I./glue-include -I./linux-src/include  -c -o devinet.o 
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>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]