Date: Thu, 05 Feb 2026 09:56:34 +0000 From: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 484bf5a664c4 - stable/14 - ifconfig: fix gre(4) status Message-ID: <69846952.4430c.7632e642@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/14 has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=484bf5a664c40a92b4f3acf9c81c57c62624c0c0 commit 484bf5a664c40a92b4f3acf9c81c57c62624c0c0 Author: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> AuthorDate: 2026-02-04 11:03:22 +0000 Commit: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> CommitDate: 2026-02-05 09:55:59 +0000 ifconfig: fix gre(4) status Set `ifr->ifr_name` to display gre options for the interface. Reviewed by: glebius, zlei Approved by: glebius (mentor) MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D55099 (cherry picked from commit c2ba906fa63982d7aa799466d83716d39fe91d2b) --- sbin/ifconfig/ifgre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/ifconfig/ifgre.c b/sbin/ifconfig/ifgre.c index 6f7bf56f0513..d620a8ae86b0 100644 --- a/sbin/ifconfig/ifgre.c +++ b/sbin/ifconfig/ifgre.c @@ -54,11 +54,11 @@ gre_status(if_ctx *ctx) uint32_t opts = 0, port; struct ifreq ifr = { .ifr_data = (caddr_t)&opts }; - if (ioctl_ctx(ctx, GREGKEY, &ifr) == 0) + if (ioctl_ctx_ifr(ctx, GREGKEY, &ifr) == 0) if (opts != 0) printf("\tgrekey: 0x%x (%u)\n", opts, opts); opts = 0; - if (ioctl_ctx(ctx, GREGOPTS, &ifr) != 0 || opts == 0) + if (ioctl_ctx_ifr(ctx, GREGOPTS, &ifr) != 0 || opts == 0) return; port = 0;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69846952.4430c.7632e642>
