Support Unity split-include/exclude options in attr plugin
authorMartin Willi <martin@revosec.ch>
Fri, 20 Jul 2012 14:14:29 +0000 (16:14 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 20 Jul 2012 15:36:27 +0000 (17:36 +0200)
src/libhydra/plugins/attr/attr_provider.c

index 44242c2..6af8b47 100644 (file)
@@ -150,13 +150,15 @@ static struct {
        configuration_attribute_type_t v4;
        configuration_attribute_type_t v6;
 } keys[] = {
-       {"address",             INTERNAL_IP4_ADDRESS,   INTERNAL_IP6_ADDRESS},
-       {"dns",                 INTERNAL_IP4_DNS,               INTERNAL_IP6_DNS},
-       {"nbns",                INTERNAL_IP4_NBNS,              INTERNAL_IP6_NBNS},
-       {"dhcp",                INTERNAL_IP4_DHCP,              INTERNAL_IP6_DHCP},
-       {"netmask",             INTERNAL_IP4_NETMASK,   INTERNAL_IP6_NETMASK},
-       {"server",              INTERNAL_IP4_SERVER,    INTERNAL_IP6_SERVER},
-       {"subnet",              INTERNAL_IP4_SUBNET,    INTERNAL_IP6_SUBNET},
+       {"address",                     INTERNAL_IP4_ADDRESS,   INTERNAL_IP6_ADDRESS},
+       {"dns",                         INTERNAL_IP4_DNS,               INTERNAL_IP6_DNS},
+       {"nbns",                        INTERNAL_IP4_NBNS,              INTERNAL_IP6_NBNS},
+       {"dhcp",                        INTERNAL_IP4_DHCP,              INTERNAL_IP6_DHCP},
+       {"netmask",                     INTERNAL_IP4_NETMASK,   INTERNAL_IP6_NETMASK},
+       {"server",                      INTERNAL_IP4_SERVER,    INTERNAL_IP6_SERVER},
+       {"subnet",                      INTERNAL_IP4_SUBNET,    INTERNAL_IP6_SUBNET},
+       {"split-include",       UNITY_SPLIT_INCLUDE,    UNITY_SPLIT_INCLUDE},
+       {"split-exclude",       UNITY_LOCAL_LAN,                UNITY_LOCAL_LAN},
 };
 
 /**