}
/**
- * Translates an `IPAddress2_t` to its equivalent `struct ipv4_prefix`.
+ * Translates an `IPAddress_t` to its equivalent `struct ipv4_prefix`.
*/
int
-prefix4_decode(IPAddress2_t *str, struct ipv4_prefix *result)
+prefix4_decode(IPAddress_t *str, struct ipv4_prefix *result)
{
int len;
}
/**
- * Translates an `IPAddress2_t` to its equivalent `struct ipv6_prefix`.
+ * Translates an `IPAddress_t` to its equivalent `struct ipv6_prefix`.
*/
int
-prefix6_decode(IPAddress2_t *str, struct ipv6_prefix *result)
+prefix6_decode(IPAddress_t *str, struct ipv6_prefix *result)
{
struct in6_addr suffix;
int len;
#include <stdbool.h>
#include <netinet/in.h>
-#include <libcmscodec/IPAddress2.h>
+#include <libcmscodec/IPAddress.h>
#include <libcmscodec/IPAddressRange.h>
struct ipv4_prefix {
uint32_t be32_suffix_mask(unsigned int);
void ipv6_suffix_mask(unsigned int, struct in6_addr *);
-int prefix4_decode(IPAddress2_t *, struct ipv4_prefix *);
-int prefix6_decode(IPAddress2_t *, struct ipv6_prefix *);
+int prefix4_decode(IPAddress_t *, struct ipv4_prefix *);
+int prefix6_decode(IPAddress_t *, struct ipv6_prefix *);
int range4_decode(IPAddressRange_t *, struct ipv4_range *);
int range6_decode(IPAddressRange_t *, struct ipv6_range *);
#include <errno.h>
#include <stdint.h> /* SIZE_MAX */
-#include <libcmscodec/SubjectInfoAccessSyntax.h>
#include <libcmscodec/SubjectPublicKeyInfo.h>
#include <libcmscodec/IPAddrBlocks.h>
}
static int
-add_prefix4(struct resources *resources, IPAddress2_t *addr)
+add_prefix4(struct resources *resources, IPAddress_t *addr)
{
struct resources *parent;
struct ipv4_prefix prefix;
}
static int
-add_prefix6(struct resources *resources, IPAddress2_t *addr)
+add_prefix6(struct resources *resources, IPAddress_t *addr)
{
struct resources *parent;
struct ipv6_prefix prefix;
}
static int
-add_prefix(struct resources *resources, int family, IPAddress2_t *addr)
+add_prefix(struct resources *resources, int family, IPAddress_t *addr)
{
switch (family) {
case AF_INET: