1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Properly set ifi_datalen for compat32 struct if_data32.

PR:	kern/149240
Submitted by:	Stef Walter <stef memberwebs com>
MFC after:	1 weeks
This commit is contained in:
Konstantin Belousov 2010-08-03 15:40:42 +00:00
parent 3ab42a25a9
commit 04f3205755
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210805

View File

@ -1439,7 +1439,7 @@ copy_ifdata32(struct if_data *src, struct if_data32 *dst)
CP(*src, *dst, ifi_addrlen);
CP(*src, *dst, ifi_hdrlen);
CP(*src, *dst, ifi_link_state);
CP(*src, *dst, ifi_datalen);
dst->ifi_datalen = sizeof(struct if_data32);
CP(*src, *dst, ifi_mtu);
CP(*src, *dst, ifi_metric);
CP(*src, *dst, ifi_baudrate);