summaryrefslogtreecommitdiffhomepage
path: root/src/router.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-10-13 12:09:28 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-10-13 14:44:33 +0200
commit5dfb716333ad12b86312ef5d8c824ea1ed3df26b (patch)
tree5df50754b419c5dfb95e7a672189ee7f6d0a6c4b /src/router.c
parentf0bce9cdd0f2d0e21e0d64cb7b653521d18040e2 (diff)
treewide: align function naming
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/router.c')
-rw-r--r--src/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/router.c b/src/router.c
index 30f1609..b50df3a 100644
--- a/src/router.c
+++ b/src/router.c
@@ -41,7 +41,7 @@ static FILE *fp_route = NULL;
#define TIME_LEFT(t1, now) ((t1) != UINT32_MAX ? (t1) - (now) : UINT32_MAX)
-int init_router(void)
+int router_init(void)
{
// Open ICMPv6 socket
int sock = socket(AF_INET6, SOCK_RAW | SOCK_CLOEXEC, IPPROTO_ICMPV6);
@@ -88,7 +88,7 @@ int init_router(void)
}
-int setup_router_interface(struct interface *iface, bool enable)
+int router_setup_interface(struct interface *iface, bool enable)
{
if (!fp_route || router_event.uloop.fd < 0)
return -1;