summaryrefslogtreecommitdiffstats
path: root/src/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-01-23 11:28:59 +0000
committerRoy Marples <roy@marples.name>2019-01-23 11:28:59 +0000
commitc9463d17ed1dc7ea1b8e7b55476838c0f0a267e1 (patch)
tree92237f9e968b7605fb270e5bff3250c385db919b /src/if.c
parent16fb7519c3e78d02d4b4279ab39f2f6a2208b7fa (diff)
downloaddhcpcd-c9463d17ed1dc7ea1b8e7b55476838c0f0a267e1.tar.xz
IPv4LL: Remove #defines for functions when IPv4LL is disabled
This allows us to optimise the code better and hopefully become less error prone.
Diffstat (limited to 'src/if.c')
-rw-r--r--src/if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/if.c b/src/if.c
index 2aa28190..fabf99f3 100644
--- a/src/if.c
+++ b/src/if.c
@@ -78,7 +78,9 @@ if_free(struct interface *ifp)
if (ifp == NULL)
return;
+#ifdef IPV4LL
ipv4ll_free(ifp);
+#endif
dhcp_free(ifp);
ipv4_free(ifp);
dhcp6_free(ifp);