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:
parent
582b6122ab
commit
7e82008762
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user