#include <arpa/inet.h>
#include <limits.h>
#include <inttypes.h>
+#include <net/if.h>
#include "pppd.h"
#include "magic.h"
#include "tdb.h"
#endif
-#ifdef CBCP_SUPPORT
+#ifdef PPP_WITH_CBCP
#include "cbcp.h"
#endif
&lcp_protent,
&pap_protent,
&chap_protent,
-#ifdef CBCP_SUPPORT
+#ifdef PPP_WITH_CBCP
&cbcp_protent,
#endif
&ipcp_protent,
struct protent *protp;
char numbuf[16];
- strlcpy(path_ipup, _PATH_IPUP, sizeof(path_ipup));
- strlcpy(path_ipdown, _PATH_IPDOWN, sizeof(path_ipdown));
+ strlcpy(path_ipup, _PATH_IPUP, MAXPATHLEN);
+ strlcpy(path_ipdown, _PATH_IPDOWN, MAXPATHLEN);
#ifdef PPP_WITH_IPV6CP
strlcpy(path_ipv6up, _PATH_IPV6UP, MAXPATHLEN);