X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fipv6cp.h;h=d6e626e716a829da73ca2335578f4eb9d961fb23;hb=ef95263d74a26edf08061b940db722189b441e9c;hp=3ce9df422eb53f3afd542c80fc7c04723b335ccc;hpb=189bad1c0baeb4fd65ff566d2723b5bc95205a65;p=ppp.git diff --git a/pppd/ipv6cp.h b/pppd/ipv6cp.h index 3ce9df4..d6e626e 100644 --- a/pppd/ipv6cp.h +++ b/pppd/ipv6cp.h @@ -33,6 +33,10 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * */ + +#ifndef PPP_IPV6CP_H +#define PPP_IPV6CP_H + #include "pppdconf.h" /* Original version, based on RFC2023 : @@ -169,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