struct prefix_list_entry *pentry)
{
size_t depth, maxdepth = plist->master->trie_depth;
- uint8_t *bytes = &pentry->prefix.u.prefix;
+ uint8_t *bytes = pentry->prefix.u.val;
size_t validbits = pentry->prefix.prefixlen;
struct pltrie_table *table, **tables[PLC_MAXLEVEL];
struct prefix_list_entry *pentry)
{
size_t depth = plist->master->trie_depth;
- uint8_t *bytes = &pentry->prefix.u.prefix;
+ uint8_t *bytes = pentry->prefix.u.val;
size_t validbits = pentry->prefix.prefixlen;
struct pltrie_table *table;
struct prefix_list_entry *pentry, *pbest = NULL;
struct prefix *p = (struct prefix *)object;
- uint8_t *byte = &p->u.prefix;
+ uint8_t *byte = p->u.val;
size_t depth;
size_t validbits = p->prefixlen;
struct pltrie_table *table;
printf(" seq %" PRId64 " %s %s/%d", pentry->seq,
prefix_list_type_str(pentry),
- inet_ntop(p->family, &p->u.prefix, buf, BUFSIZ),
+ inet_ntop(p->family, p->u.val, buf, BUFSIZ),
p->prefixlen);
if (pentry->ge)
printf(" ge %d", pentry->ge);
prefix_entry_dup_check(struct prefix_list *plist, struct prefix_list_entry *new)
{
size_t depth, maxdepth = plist->master->trie_depth;
- uint8_t byte, *bytes = &new->prefix.u.prefix;
+ uint8_t byte, *bytes = new->prefix.u.val;
size_t validbits = new->prefix.prefixlen;
struct pltrie_table *table;
struct prefix_list_entry *pentry;
char buf[BUFSIZ];
vty_out(vty, "%s/%d",
- inet_ntop(p->family, &p->u.prefix, buf,
+ inet_ntop(p->family, p->u.val, buf,
BUFSIZ),
p->prefixlen);
char buf[BUFSIZ];
vty_out(vty, "%s/%d",
- inet_ntop(p->family, &p->u.prefix, buf,
+ inet_ntop(p->family, p->u.val, buf,
BUFSIZ),
p->prefixlen);
char buf[BUFSIZ];
vty_out(vty, "%s/%d",
- inet_ntop(p->family, &p->u.prefix, buf,
+ inet_ntop(p->family, p->u.val, buf,
BUFSIZ),
p->prefixlen);
char buf[BUFSIZ];
vty_out(vty, " %s/%d",
- inet_ntop(p->family, &p->u.prefix, buf,
+ inet_ntop(p->family, p->u.val, buf,
BUFSIZ),
p->prefixlen);
char buf_b[BUFSIZ];
sprintf(buf_a, "%s/%d",
- inet_ntop(p->family, &p->u.prefix, buf_b,
+ inet_ntop(p->family, p->u.val, buf_b,
BUFSIZ),
p->prefixlen);
vty_out(vty, " seq %" PRId64 " %s %s/%d",
pentry->seq,
prefix_list_type_str(pentry),
- inet_ntop(p->family, &p->u.prefix, buf, BUFSIZ),
+ inet_ntop(p->family, p->u.val, buf, BUFSIZ),
p->prefixlen);
if (pentry->ge)