X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fipv6cp.h;h=d6e626e716a829da73ca2335578f4eb9d961fb23;hb=dd3932623ee32a9f679aa087a9939e92556948e4;hp=19bc01362f8b9a69d032ffb1be15cac89abca4e7;hpb=75870d7b55e36af526a0786fff94912989c73fd1;p=ppp.git diff --git a/pppd/ipv6cp.h b/pppd/ipv6cp.h index 19bc013..d6e626e 100644 --- a/pppd/ipv6cp.h +++ b/pppd/ipv6cp.h @@ -34,6 +34,11 @@ * */ +#ifndef PPP_IPV6CP_H +#define PPP_IPV6CP_H + +#include "pppdconf.h" + /* Original version, based on RFC2023 : Copyright (c) 1995, 1996, 1997 Francis.Dupont@inria.fr, INRIA Rocquencourt, @@ -155,6 +160,7 @@ typedef struct ipv6cp_options { int opt_remote; /* histoken set by option */ int use_ip; /* use IP as interface identifier */ int use_persistent; /* use uniquely persistent value for address */ + int use_remotenumber; /* use remote number value for address */ int neg_vj; /* Van Jacobson Compression? */ u_short vj_protocol; /* protocol value to use in VJ option */ eui64_t ourid, hisid; /* Interface identifiers */ @@ -167,3 +173,17 @@ extern ipv6cp_options ipv6cp_allowoptions[]; extern ipv6cp_options ipv6cp_hisoptions[]; extern struct protent ipv6cp_protent; + +/* + * Hook for a plugin to know when IPv6 protocol has come up + */ +typedef void (ipv6_up_hook_fn)(void); +extern ipv6_up_hook_fn *ipv6_up_hook; + +/* + * Hook for a plugin to know when IPv6 protocol has come down + */ +typedef void (ipv6_down_hook_fn)(void); +extern ipv6_down_hook_fn *ipv6_down_hook; + +#endif