[PATCH] ip6tnl: Use <netinet/in.h> for in6_addr and stuff

Susant Sahani susant at redhat.com
Sat Jun 28 07:19:51 PDT 2014


On 06/28/2014 01:20 PM, Thomas Graf wrote:
>

Hi Thomas,
            Thanks for the fix.

> <linux/in6.h> is not compatible with some versions of <netinet/in.h>.
>
> Cc: Susant Sahani <susant at redhat.com>
> Cc: Cong Wang <xiyou.wangcong at gmail.com>
> Signed-off-by: Thomas Graf <tgraf at suug.ch>
> ---
>   lib/route/link/ip6tnl.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/route/link/ip6tnl.c b/lib/route/link/ip6tnl.c
> index ed79e82..9fe1367 100644
> --- a/lib/route/link/ip6tnl.c
> +++ b/lib/route/link/ip6tnl.c
> @@ -30,7 +30,7 @@
>   #include <netlink/route/rtnl.h>
>   #include <netlink-private/route/link/api.h>
>   #include <linux/if_tunnel.h>
> -#include <linux/in6.h>
> +#include <netinet/in.h>
>
>   #define IP6_TNL_ATTR_LINK          (1 << 0)
>   #define IP6_TNL_ATTR_LOCAL         (1 << 1)
>

Looks good to me . I don't have a older kernel test machine
to test it now.  Must be working .

Thanks,
Susant



More information about the libnl mailing list