X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fipv6cp.h;h=3be5885abbda926c42b0c2a50aee2d4c4e589ac6;hb=4f3e40659fcccce45068473ae94cfead18260c77;hp=172b6eb85794d6ba99475bb2012e787148c721aa;hpb=fb3529ccfc1868e8563a2dcfbae7b386125fccbc;p=ppp.git diff --git a/pppd/ipv6cp.h b/pppd/ipv6cp.h index 172b6eb..3be5885 100644 --- a/pppd/ipv6cp.h +++ b/pppd/ipv6cp.h @@ -39,6 +39,10 @@ #include "pppdconf.h" +#ifdef __cplusplus +extern "C" { +#endif + /* Original version, based on RFC2023 : Copyright (c) 1995, 1996, 1997 Francis.Dupont@inria.fr, INRIA Rocquencourt, @@ -174,4 +178,20 @@ 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; + +#ifdef __cplusplus +} +#endif + #endif