summaryrefslogtreecommitdiff
path: root/ripngd/ripng_interface.c
diff options
context:
space:
mode:
authorsri-mohan1 <sri.mohan@samsung.com>2023-06-21 22:26:43 +0530
committersri-mohan1 <sri.mohan@samsung.com>2023-06-21 22:39:13 +0530
commit3a40f78305a9fd1ada66ca8fc34e45018b1a273a (patch)
treecaf976593b3368804710d9f99f9d4c1ea7982429 /ripngd/ripng_interface.c
parentfd8a8b759629003d98d03b4ab5e5f8ef7cd0768e (diff)
ripngd: changes for code maintainability
these changes are for improving the code maintainability and readability Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
Diffstat (limited to 'ripngd/ripng_interface.c')
-rw-r--r--ripngd/ripng_interface.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c
index 1d9d53e47a..a37cb7d092 100644
--- a/ripngd/ripng_interface.c
+++ b/ripngd/ripng_interface.c
@@ -136,8 +136,8 @@ static int ripng_if_ipv6_lladdress_check(struct interface *ifp)
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++;
}
@@ -634,9 +634,9 @@ static void ripng_connect_set(struct interface *ifp, int set)
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,