From 0086034dedf2a8d655db67ba4b5987e70d9dd5b1 Mon Sep 17 00:00:00 2001 From: dlg Date: Sat, 29 Nov 2025 10:51:16 +0000 Subject: [PATCH] don't complain about a driver not supporting pvlans. found by denis@ with vxlan(4). ok denis@ --- sbin/ifconfig/brconfig.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sbin/ifconfig/brconfig.c b/sbin/ifconfig/brconfig.c index c6b3cd8bb17..82562911984 100644 --- a/sbin/ifconfig/brconfig.c +++ b/sbin/ifconfig/brconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: brconfig.c,v 1.44 2025/11/22 06:07:36 dlg Exp $ */ +/* $OpenBSD: brconfig.c,v 1.45 2025/11/29 10:51:16 dlg Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -1358,12 +1358,16 @@ bridge_pvlans(const char *delim) ifbrpv.ifbrpv_type = IFBRPV_T_PRIMARY; if (ioctl(sock, SIOCBRDGNFINDPV, &ifbrpv) == -1) { - if (errno == ENOENT) { + switch (errno) { + case ENOTTY: + case ENOENT: /* all done */ - return; + break; + default: + warn("%s SIOCBRDGNFINDPV %u", ifname, vp); + break; } - warn("%s SIOCBRDGNFINDPV %u", ifname, vp); return; }