The structs ifaliasreq and in_aliasreq have exactly the same layout and

member names, but we really do mean to use in_aliasreq here.

MFC after:	1 week
This commit is contained in:
Brooks Davis 2009-04-15 20:53:34 +00:00
parent 582b6122ab
commit 7e82008762
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191121

View File

@ -52,7 +52,7 @@ static const char rcsid[] =
#include "ifconfig.h"
static struct ifaliasreq in_addreq;
static struct in_aliasreq in_addreq;
static struct ifreq in_ridreq;
static void
@ -169,7 +169,7 @@ in_status_tunnel(int s)
static void
in_set_tunnel(int s, struct addrinfo *srcres, struct addrinfo *dstres)
{
struct ifaliasreq addreq;
struct in_aliasreq addreq;
memset(&addreq, 0, sizeof(addreq));
strncpy(addreq.ifra_name, name, IFNAMSIZ);