From nobody Wed Aug 16 02:44:29 2023 X-Original-To: freebsd-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 4RQXXs23hTz4q4bS for ; Wed, 16 Aug 2023 02:44:45 +0000 (UTC) (envelope-from ctuffli@gmail.com) Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RQXXr3nCTz4hRT for ; Wed, 16 Aug 2023 02:44:44 +0000 (UTC) (envelope-from ctuffli@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of ctuffli@gmail.com designates 209.85.219.51 as permitted sender) smtp.mailfrom=ctuffli@gmail.com; dmarc=none Received: by mail-qv1-f51.google.com with SMTP id 6a1803df08f44-6473fefcd23so4864666d6.3 for ; Tue, 15 Aug 2023 19:44:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692153883; x=1692758683; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ELhnwMgQ5gveIq39i4lgyeyQptll9eriYAKvMeHiAfw=; b=YarMbJ9I9mxfjrQLBXzyXSVhJVo5a+9K48Abr5wckJoOKm1/6RNVfX+M0aQUML73Xv IWOXdYTrB6Y2mcVpGs0LaKogHCwtUDO6hrktKZ09NI1SLdNdE4uAS+/8Ls8Y5dsWyUoz 68eybfobh7ZA1jrASm/MXMmlED8Tm/l2HKQNG03mQZHv6jdHoRFhDJAJet1CSxJSgcJm dLFy72aHTXT4xfA0gUBZvBW3r12MIw0cxn3C9j6Ki71/fFSiqxF+Vo8SAINIRi9nXN2e d6Av+aXLATSssllK2Au8w4sYekfF3nnxkVQG5oDzrghAcgNPX/q246FBWZe60dwb1hJ8 A6WQ== X-Gm-Message-State: AOJu0YzOwsuD3LXU032CkjEXjOETeA3eEIPVAH/V6xAOpw44TE5etMjb 91wV+3YLYV+YxjYIlRJbfSs55lifOAQ= X-Google-Smtp-Source: AGHT+IEbKStgTfHzN5yUF3oUPthLzYIVDeO2icsFvZHfgDHefEA5TazS3HP+bpOwnvfA/K3AN+Q7Ow== X-Received: by 2002:a0c:f345:0:b0:647:395c:8df9 with SMTP id e5-20020a0cf345000000b00647395c8df9mr498658qvm.46.1692153883038; Tue, 15 Aug 2023 19:44:43 -0700 (PDT) Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com. [209.85.160.179]) by smtp.gmail.com with ESMTPSA id f5-20020a0ccc85000000b0063d252a141dsm4536002qvl.116.2023.08.15.19.44.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Aug 2023 19:44:42 -0700 (PDT) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-40ff82320a7so36933211cf.3 for ; Tue, 15 Aug 2023 19:44:42 -0700 (PDT) X-Received: by 2002:a05:622a:1105:b0:403:fee4:2e7f with SMTP id e5-20020a05622a110500b00403fee42e7fmr854542qty.36.1692153882482; Tue, 15 Aug 2023 19:44:42 -0700 (PDT) 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 References: In-Reply-To: From: Chuck Tuffli Date: Tue, 15 Aug 2023 19:44:29 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Can't assign address to igc To: FreeBSD-Current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-2.63 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.97)[-0.974]; NEURAL_HAM_SHORT(-0.66)[-0.659]; FORGED_SENDER(0.30)[chuck@freebsd.org,ctuffli@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[209.85.219.51:from,209.85.160.179:received]; FROM_NEQ_ENVFROM(0.00)[chuck@freebsd.org,ctuffli@gmail.com]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; R_DKIM_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.219.51:from]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; TO_DOM_EQ_FROM_DOM(0.00)[] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4RQXXr3nCTz4hRT [Adding freebsd-net@] On Tue, Aug 1, 2023 at 10:46=E2=80=AFAM Chuck Tuffli wr= ote: > > Running a recent-ish version (n264266-8f8da1bcc799) on an Intel NUC > (RNUC11PABi5), assigning an IPv4 address to igc0 doesn't work. There > is no error message, and this has been working in the past. Looking > through dmesg only shows: > > igc0: link state changed to UP > igc0: link state changed to DOWN > igc0: link state changed to UP > > The address is set in rc.conf: > ifconfig_igc0=3D"inet 192.168.5.10 netmask 255.255.255.0" > > And manually setting it via > # ifconfig igc0 inet 192.168.5.10/24 up > does not work either. Any suggestions? I spent a little time debugging this but still need some help understanding what might be wrong. Instrumenting dump_sa() in the AF_INET case, the .sin_addr contains the value of the IP address I'm adding (printf shows 0x0a05a8c0 or big endian 192 168 6 10). Switching the log level in sys/netlink/route/iface.c to LOG_DEBUG3 shows messages: [nl_iface] dump_iface_addr: dumping ifa 0xfffff8000db0cd80 type inet(2) for interface igc0 Does this mean the address information was written to the net link buffer? If so, what might make ifconfig not display that address? One other tidbit is, eventually ifconfig reports the address and things like sshd start working. Typically this takes < 100 iterations to do this.