From nobody Wed Aug 16 02:46:21 2023 X-Original-To: freebsd-net@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 4RQXb24XFcz4q4Nf; Wed, 16 Aug 2023 02:46:38 +0000 (UTC) (envelope-from ctuffli@gmail.com) Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (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 4RQXb120YNz4jNf; Wed, 16 Aug 2023 02:46:37 +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.160.181 as permitted sender) smtp.mailfrom=ctuffli@gmail.com; dmarc=none Received: by mail-qt1-f181.google.com with SMTP id d75a77b69052e-40fd6da0325so36471281cf.3; Tue, 15 Aug 2023 19:46:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692153995; x=1692758795; 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=/C8ArVJPnTcSxhqoTBF26Ii7i/A6X6F2VznlSi/1wQI=; b=jR1bfVWot/c7NK12+YNW3CKcKeobF95kP6LdY/TNnbLOJghZXGU9brRZfLI4RDPlLi VTb6vUO/MUNVf2ZX4+l0avEIdvdObEqHivt6tvIZbknsgyboptufL+oYThXgn4WXW+5p Giyq+VtCEcuArhUJLYE6Z+NQWDvBDAj9nio7Y2CCZSWLeEDO+EremzbxdQcCsIjkluGs QEHxrShnObVxpPFCWRQo15Q/ueYzJ4hsWxxmbvVZ8lM5y/ukDr4GfpC7PErivEUnkW3S UwsGcrr1hWHArq/YnLo5bzPf0IiVWptgTxuKScT45HfAbId0ToQKMLWRzbHO/NI/Ww3e e+TQ== X-Gm-Message-State: AOJu0Yzuxg5Thor22BVQC3dw8sCQG3OhZhRdpg12ADCUxVQK0G+Wzb6S w48yClMclDn/w7bL1z9QQo1xs0WRLUo= X-Google-Smtp-Source: AGHT+IGBzkS8VucktJF0m4cI9eutsTE0/esgZXehDYUaiXXZvetfbDbfVPwsaOOJORBORkAKn/wZeA== X-Received: by 2002:ac8:5716:0:b0:403:fdf7:2e90 with SMTP id 22-20020ac85716000000b00403fdf72e90mr821869qtw.29.1692153995295; Tue, 15 Aug 2023 19:46:35 -0700 (PDT) Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com. [209.85.219.48]) by smtp.gmail.com with ESMTPSA id ff10-20020a05622a4d8a00b0040ff0590fd2sm4230797qtb.87.2023.08.15.19.46.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Aug 2023 19:46:35 -0700 (PDT) Received: by mail-qv1-f48.google.com with SMTP id 6a1803df08f44-640c5df2e6eso30709386d6.1; Tue, 15 Aug 2023 19:46:34 -0700 (PDT) X-Received: by 2002:ac8:5904:0:b0:40f:db31:3a8e with SMTP id 4-20020ac85904000000b0040fdb313a8emr606537qty.46.1692153994696; Tue, 15 Aug 2023 19:46:34 -0700 (PDT) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Chuck Tuffli Date: Tue, 15 Aug 2023 19:46:21 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Can't assign address to igc To: FreeBSD-Current , freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-2.74 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.64)[-0.645]; FORGED_SENDER(0.30)[chuck@freebsd.org,ctuffli@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; RWL_MAILSPIKE_GOOD(-0.10)[209.85.160.181:from]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.181:from,209.85.219.48:received]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org,freebsd-net@freebsd.org]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[freebsd.org]; FROM_NEQ_ENVFROM(0.00)[chuck@freebsd.org,ctuffli@gmail.com] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4RQXb120YNz4jNf Bah, actually adding freebsd-net this time On Tue, Aug 15, 2023 at 7:44=E2=80=AFPM Chuck Tuffli wr= ote: > > [Adding freebsd-net@] > > On Tue, Aug 1, 2023 at 10:46=E2=80=AFAM Chuck Tuffli = wrote: > > > > 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.