]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
rtm_hdrlen is OpenBSD only and doesn't appear to be needed.
authorRoy Marples <roy@marples.name>
Fri, 7 Mar 2014 07:17:44 +0000 (07:17 +0000)
committerRoy Marples <roy@marples.name>
Fri, 7 Mar 2014 07:17:44 +0000 (07:17 +0000)
if-bsd.c

index 5a74b401c6f7006e6363170bf8fd17d1f8478f3e..a39304edb3ebcf26b9738d2ca1e6d239d2e75bd3 100644 (file)
--- a/if-bsd.c
+++ b/if-bsd.c
@@ -295,7 +295,6 @@ if_route(const struct rt *rt, int action)
 #ifdef SIOCGIFPRIORITY
        rtm.hdr.rtm_priority = rt->metric;
 #endif
-       rtm.hdr.rtm_hdrlen = sizeof(rtm.hdr);
 
        /* None interface subnet routes are static. */
        if (rt->gate.s_addr != INADDR_ANY ||