struct prefix *p;
p = connected->address;
- if ((p->family == AF_INET6)
- && IN6_IS_ADDR_LINKLOCAL(&p->u.prefix6))
+ if ((p->family == AF_INET6) &&
+ IN6_IS_ADDR_LINKLOCAL(&p->u.prefix6))
count++;
}
if (set) {
/* Check once more whether this prefix is within a
* "network IF_OR_PREF" one */
- if ((ripng_enable_if_lookup(ripng, connected->ifp->name)
- >= 0)
- || (ripng_enable_network_lookup2(connected) >= 0))
+ if ((ripng_enable_if_lookup(
+ ripng, connected->ifp->name) >= 0) ||
+ (ripng_enable_network_lookup2(connected) >= 0))
ripng_redistribute_add(
ripng, ZEBRA_ROUTE_CONNECT,
RIPNG_ROUTE_INTERFACE, &address,
alist = access_list_lookup(AFI_IP6,
OFFSET_LIST_IN_NAME(offset));
- if (alist
- && access_list_apply(alist, (struct prefix *)p)
- == FILTER_PERMIT) {
+ if (alist && access_list_apply(alist, (struct prefix *)p) ==
+ FILTER_PERMIT) {
*metric += OFFSET_LIST_IN_METRIC(offset);
return 1;
}
alist = access_list_lookup(AFI_IP6,
OFFSET_LIST_IN_NAME(offset));
- if (alist
- && access_list_apply(alist, (struct prefix *)p)
- == FILTER_PERMIT) {
+ if (alist && access_list_apply(alist, (struct prefix *)p) ==
+ FILTER_PERMIT) {
*metric += OFFSET_LIST_IN_METRIC(offset);
return 1;
}
alist = access_list_lookup(AFI_IP6,
OFFSET_LIST_OUT_NAME(offset));
- if (alist
- && access_list_apply(alist, (struct prefix *)p)
- == FILTER_PERMIT) {
+ if (alist && access_list_apply(alist, (struct prefix *)p) ==
+ FILTER_PERMIT) {
*metric += OFFSET_LIST_OUT_METRIC(offset);
return 1;
}
alist = access_list_lookup(AFI_IP6,
OFFSET_LIST_OUT_NAME(offset));
- if (alist
- && access_list_apply(alist, (struct prefix *)p)
- == FILTER_PERMIT) {
+ if (alist && access_list_apply(alist, (struct prefix *)p) ==
+ FILTER_PERMIT) {
*metric += OFFSET_LIST_OUT_METRIC(offset);
return 1;
}