Expose groups by default in ifconfig output. This was never hidden by
OpenBSD; unsure why we chose to do so. As groups are a requirement for pf, exposing them by default will make our pf implementation less confusing. While here add a missing free() that OpenBSD fixed 7 years ago. PR: 194925 Differential Revision: https://reviews.freebsd.org/D1185 Approved by: des Obtained from: OpenBSD
This commit is contained in:
parent
7b56cc430a
commit
46ad509bf8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274710
@ -86,9 +86,6 @@ getifgroups(int s)
|
|||||||
struct ifgroupreq ifgr;
|
struct ifgroupreq ifgr;
|
||||||
struct ifg_req *ifg;
|
struct ifg_req *ifg;
|
||||||
|
|
||||||
if (!verbose)
|
|
||||||
return;
|
|
||||||
|
|
||||||
memset(&ifgr, 0, sizeof(ifgr));
|
memset(&ifgr, 0, sizeof(ifgr));
|
||||||
strlcpy(ifgr.ifgr_name, name, IFNAMSIZ);
|
strlcpy(ifgr.ifgr_name, name, IFNAMSIZ);
|
||||||
|
|
||||||
@ -121,6 +118,8 @@ getifgroups(int s)
|
|||||||
}
|
}
|
||||||
if (cnt)
|
if (cnt)
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
free(ifgr.ifgr_groups);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user