From 2e4ff57f91035ff3323a10ba4a3fc99df9e8206b Mon Sep 17 00:00:00 2001 From: Chris Cappuccio Date: Fri, 5 Jun 2009 22:44:52 +0000 Subject: init rtm_hdrlen ok claudio@, henning@ --- usr.sbin/hostapd/roaming.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -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); -- cgit v1.2.3