From faec393b8d173765d2dc8f7cafdd1fa092fb6a83 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Fri, 4 Feb 2000 23:06:33 +0000 Subject: [PATCH] New enum for the IPv6 address scope. 2000-02-05 Martin Baulig * include/glibtop/interfaces.h (glibtop_ipv6_scope): New enum for the IPv6 address scope. --- include/glibtop/interfaces.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/glibtop/interfaces.h b/include/glibtop/interfaces.h index e04fcbbd..7864d93d 100644 --- a/include/glibtop/interfaces.h +++ b/include/glibtop/interfaces.h @@ -59,6 +59,8 @@ typedef enum _glibtop_interface_type glibtop_interface_type; typedef enum _glibtop_transport glibtop_transport; typedef enum _glibtop_protocol glibtop_protocol; +typedef enum _glibtop_ipv6_scope glibtop_ipv6_scope; + typedef enum _glibtop_strategy glibtop_strategy; typedef enum _glibtop_interface_flags glibtop_interface_flags; @@ -110,6 +112,14 @@ enum _glibtop_interface_type { GLIBTOP_INTERFACE_ISDN }; +enum _glibtop_ipv6_scope { + GLIBTOP_IPV6_SCOPE_UNKNOWN = 0, + GLIBTOP_IPV6_SCOPE_LOOPBACK = 1 << 0, + GLIBTOP_IPV6_SCOPE_LINKLOCAL = 1 << 1, + GLIBTOP_IPV6_SCOPE_SITELOCAL = 1 << 2, + GLIBTOP_IPV6_SCOPE_COMPATv4 = 1 << 3 +}; + enum _glibtop_strategy { GLIBTOP_INTERFACES_ALL = 0, GLIBTOP_INTERFACES_BEST_MATCHING,