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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191121
@ -52,7 +52,7 @@ static const char rcsid[] =
|
|||||||
|
|
||||||
#include "ifconfig.h"
|
#include "ifconfig.h"
|
||||||
|
|
||||||
static struct ifaliasreq in_addreq;
|
static struct in_aliasreq in_addreq;
|
||||||
static struct ifreq in_ridreq;
|
static struct ifreq in_ridreq;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -169,7 +169,7 @@ in_status_tunnel(int s)
|
|||||||
static void
|
static void
|
||||||
in_set_tunnel(int s, struct addrinfo *srcres, struct addrinfo *dstres)
|
in_set_tunnel(int s, struct addrinfo *srcres, struct addrinfo *dstres)
|
||||||
{
|
{
|
||||||
struct ifaliasreq addreq;
|
struct in_aliasreq addreq;
|
||||||
|
|
||||||
memset(&addreq, 0, sizeof(addreq));
|
memset(&addreq, 0, sizeof(addreq));
|
||||||
strncpy(addreq.ifra_name, name, IFNAMSIZ);
|
strncpy(addreq.ifra_name, name, IFNAMSIZ);
|
||||||
|
Loading…
Reference in New Issue
Block a user