From nobody Thu Aug 31 16:39:13 2023 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rc6Lz2qKbz4rM3k for ; Thu, 31 Aug 2023 16:39:23 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [80.241.59.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rc6Lx6s4lz4Nfd for ; Thu, 31 Aug 2023 16:39:21 +0000 (UTC) (envelope-from herbert@gojira.at) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gojira.at header.s=MBO0001 header.b=fil1mrB2; spf=pass (mx1.freebsd.org: domain of herbert@gojira.at designates 80.241.59.207 as permitted sender) smtp.mailfrom=herbert@gojira.at; dmarc=none Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4Rc6Lr6SMZz9sR0 for ; Thu, 31 Aug 2023 18:39:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gojira.at; s=MBO0001; t=1693499956; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oQ1hTFYP11JcvWvtt468K3KA7Bo1vmLSSUiCNkFEdpk=; b=fil1mrB2h6glzx9IxnFX3gy/g5i81g5wfIZCjqdI6CrIoBk7THrlLqzsni6Q8D74/KD3Da tOir2kVSEeKoKcaQ4EuE0vtYr3M+XyKSiD8GjyqqdqNlnIJZgyfahBbwBclTxeL04qZXEh l/b1jxjgTApW/wyQJ8TI2uRuET9bqFlM7+PV91lFjzsq8AEpzup4yElykEPM9utuQ4yyiF 5AFGv0yEiR3fycLPjPGhMmXnkJ+TurATGbefTY3U7QxNvr2xBA/9de08IpdBwVfVfjk2kT Sb5Wyv6YA7pGdd/CSbICjGQNXngiBedKJkADwe/cCFZoeogX6/iZcjQ+VyHyqg== Date: Thu, 31 Aug 2023 18:39:13 +0200 Message-ID: <87h6ofkvym.wl-herbert@gojira.at> From: "Herbert J. Skuhra" To: current@FreeBSD.org Subject: Re: net/mpd5 on stable/14 - COMPAT_FREEBSD12 required? In-Reply-To: <87zg28prqx.wl-herbert@gojira.at> References: <871qfkr747.wl-herbert@gojira.at> <87zg28prqx.wl-herbert@gojira.at> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: - X-Spamd-Result: default: False [-1.60 / 15.00]; MID_CONTAINS_FROM(1.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[gojira.at:s=MBO0001]; R_SPF_ALLOW(-0.20)[+ip4:80.241.56.0/21]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[80.241.59.207:from]; MLMMJ_DEST(0.00)[current@FreeBSD.org]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:199118, ipnet:80.241.56.0/21, country:DE]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[gojira.at]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gojira.at:+]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4Rc6Lx6s4lz4Nfd On Wed, 30 Aug 2023 15:46:46 +0200, "Herbert J. Skuhra" wrote: > > On Wed, 30 Aug 2023 15:29:28 +0200, "Herbert J. Skuhra" wrote: > > > > Hi, > > > > after updating from stable/13 to (main and later to) stable/14 > > net/mpd5 only connects to my ISP (VDSL with VLAN) if I enable "options > > COMPAT_FREEBSD12" in my kernel. Without I get only: > > > > Aug 30 15:08:06 gw mpd[59876]: [L1] PPPoE connection timeout after 9 seconds > > Aug 30 15:08:06 gw mpd[59876]: [L1] Link: DOWN event > > Aug 30 15:08:06 gw mpd[59876]: [L1] LCP: Down event > > Aug 30 15:08:06 gw mpd[59876]: [L1] Link: reconnection attempt 1 in 7 seconds > > Aug 30 15:08:14 gw mpd[59876]: [L1] Link: reconnection attempt 1 > > Aug 30 15:08:14 gw mpd[59876]: [L1] PPPoE: Connecting to '' > > Aug 30 15:08:23 gw mpd[59876]: [L1] PPPoE connection timeout after 9 seconds > > Aug 30 15:08:23 gw mpd[59876]: [L1] Link: DOWN event > > Aug 30 15:08:23 gw mpd[59876]: [L1] LCP: Down event > > [..] > > > > I guess the problem is: > > > > Without "COMPAT_FREEBSD12" vlanproto = 0x0000. If I run "ifconfig > > vlan31 vlanproto 802.1q" mpd5 works. > > Maybe this commit is related: > > commit afbb64f1d85b7d8c2938031c3567946b5d10da4f > Author: Alexander V. Chernikov > Date: Sun Apr 11 17:47:03 2021 +0100 > > Fix vlan creation for the older ifconfig(8) binaries. > > Reported by: allanjude > MFC after: immediately > > ? On stable/13 (GENERIC without COMPAT_FREEBSD12): # ifconfig vlan99 create ==> vlanproto: 0x0000 # ifconfig vlan99 vlan 99 vlandev igb0 ==> vlanproto: 802.1q # ifconfig vlan99 destroy # ifconfig vlan99 create vlan 99 vlandev igb0 ==> vlanproto: 802.1q On stable/14 or main (GENERIC without COMPAT_FREEBSD12): # ifconfig vlan99 create ==> vlanproto 0x0000 # ifconfig vlan99 vlan 99 vlandev igb0 ==> vlanproto 0x0000# # ifconfig vlan99 create vlan 99 vlandev igb0 ==> vlanproto: 802.1q I guess that's why the following lines in my /etc/rc.conf no longer work on stable/14 or main (without COMPAT_FREEBSD12): cloned_interfaces="vlan99" ifconfig_vlan99="vlan 99 vlandev igb0" I have to replace the ifconfig line with: ifconfig_vlan99="vlan 99 vlandev igb0 vlanproto 802.1q" It also works if I remove the following lines in sys/net/if_vlan.c: 1110 #ifdef COMPAT_FREEBSD12 1113 #endif 2265 #ifdef COMPAT_FREEBSD12 2268 #endif -- Herbert