summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Cappuccio <chris@cvs.openbsd.org>2009-06-05 22:44:52 +0000
committerChris Cappuccio <chris@cvs.openbsd.org>2009-06-05 22:44:52 +0000
commit2e4ff57f91035ff3323a10ba4a3fc99df9e8206b (patch)
treef4d9f7f2d5f2722d57159f1eca6f4f6b82f12533
parent142aa41d9e9f337c6be5a4c56d5e14d54bf4e6c5 (diff)
init rtm_hdrlen
ok claudio@, henning@
-rw-r--r--usr.sbin/hostapd/roaming.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/hostapd/roaming.c b/usr.sbin/hostapd/roaming.c
index e8d8ccf0886..e254b0628b0 100644
--- a/usr.sbin/hostapd/roaming.c
+++ b/usr.sbin/hostapd/roaming.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: roaming.c,v 1.3 2007/02/08 11:15:55 reyk Exp $ */
+/* $OpenBSD: roaming.c,v 1.4 2009/06/05 22:44:51 chris Exp $ */
/*
* Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org>
@@ -225,6 +225,7 @@ hostapd_roaming_rt(struct hostapd_apme *apme, struct hostapd_inaddr *addr,
rm.rm_hdr.rtm_flags = RTF_STATIC;
rm.rm_hdr.rtm_seq = cfg->c_rtseq++;
rm.rm_hdr.rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_LABEL;
+ rm.rm_hdr.rtm_hdrlen = sizeof(struct rt_msghdr);
rm.rm_dst.sin_family = AF_INET;
rm.rm_dst.sin_len = sizeof(rm.rm_dst);