]> git.ozlabs.org Git - ppp.git/commitdiff
Merge pull request #354 from pali/register-with-name
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 5 Aug 2022 04:10:40 +0000 (14:10 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 5 Aug 2022 04:10:40 +0000 (14:10 +1000)
pppd: Add support for registering ppp interface via Linux rtnetlink API

1  2 
pppd/sys-linux.c

index ff3a249e81758ec042a6cd67991e6412532f8d1b,6eed86f3f2a2b0bd6f1754375d1c6734380ce6a2..e7f851c02512394cc1ebe5b63f771eb4890846b4
  #include <linux/netlink.h>
  #include <linux/rtnetlink.h>
  #include <linux/if_link.h>
 -#ifdef INET6
 -#include <linux/if_addr.h>
 -#endif
 -
  /* Attempt at retaining compile-support with older than 4.7 kernels, or kernels
   * where RTM_NEWSTATS isn't defined for whatever reason.
   */
  #define RTM_NEWSTATS 92
  #define RTM_GETSTATS 94
  #define IFLA_STATS_LINK_64 1
+ #endif
  
 +#include <linux/if_addr.h>
++
  /* glibc versions prior to 2.24 do not define SOL_NETLINK */
  #ifndef SOL_NETLINK
  #define SOL_NETLINK 270