]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
mptcp: cleanup include section.
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 12 Oct 2021 15:39:05 +0000 (17:39 +0200)
committerDavid Ahern <dsahern@kernel.org>
Fri, 15 Oct 2021 23:48:36 +0000 (17:48 -0600)
David reported ipmptcp breaks hard the build when updating the
relevant kernel headers.

We should be more careful in the header section, explicitly
including all the required dependencies respecting the usual order
between systems and local headers.

Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipmptcp.c

index fd042da8a141427eb4294cb7c4daf813582060ff..0f5b6e2d08ba65ed714e9ffe722a56070e1ed9fa 100644 (file)
@@ -1,17 +1,23 @@
 // SPDX-License-Identifier: GPL-2.0
 
+#include <arpa/inet.h>
+#include <netinet/in.h>
+#include <stdbool.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
-#include <rt_names.h>
-#include <errno.h>
 
 #include <linux/genetlink.h>
+#include <linux/netlink.h>
+#include <linux/rtnetlink.h>
 #include <linux/mptcp.h>
 
 #include "utils.h"
 #include "ip_common.h"
-#include "libgenl.h"
 #include "json_print.h"
+#include "libgenl.h"
+#include "libnetlink.h"
+#include "ll_map.h"
 
 static void usage(void)
 {