]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
uapi: update for in.h and ip.h
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 22 Nov 2022 19:33:49 +0000 (11:33 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 22 Nov 2022 19:33:49 +0000 (11:33 -0800)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/uapi/linux/in.h
include/uapi/linux/ip.h

index 0c782b29cbbed3ff7d818f5c441e2bffaf5a97ce..dccf0791d69343e8c1db09cad2ca7c0c0eb7a6d4 100644 (file)
@@ -20,6 +20,7 @@
 #define _LINUX_IN_H
 
 #include <linux/types.h>
+#include <linux/stddef.h>
 #include <linux/libc-compat.h>
 #include <linux/socket.h>
 
index 78b6c798602d7a2bb39294942e49fcca78fc6131..8cd20fb0c7060219580b13bbf1ea2dc36ee054bf 100644 (file)
@@ -100,8 +100,10 @@ struct iphdr {
        __u8    ttl;
        __u8    protocol;
        __sum16 check;
-       __be32  saddr;
-       __be32  daddr;
+       __struct_group(/* no tag */, addrs, /* no attrs */,
+               __be32  saddr;
+               __be32  daddr;
+       );
        /*The options start here. */
 };