aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPouria Mousavizadeh Tehrani <pouria@FreeBSD.org>2026-02-04 11:03:22 +0000
committerPouria Mousavizadeh Tehrani <pouria@FreeBSD.org>2026-02-04 17:20:21 +0000
commitc2ba906fa63982d7aa799466d83716d39fe91d2b (patch)
treecaff68f6d4748d186e3506316be3a6d6ce4c432e
parenta3ff85e11925ba1e25465c8ba633356f405f9214 (diff)
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
-rw-r--r--sbin/ifconfig/ifgre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifgre.c b/sbin/ifconfig/ifgre.c
index 43c86a546167..c3d3856e0b09 100644
--- a/sbin/ifconfig/ifgre.c
+++ b/sbin/ifconfig/ifgre.c
@@ -53,11 +53,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;