From nobody Sun Jul 30 15:17:43 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 4RDQ3n2vWXz4p8HS for ; Sun, 30 Jul 2023 15:17:53 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RDQ3g70yDz4JJd for ; Sun, 30 Jul 2023 15:17:51 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690730272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=FwsdZpnSJxkgLS1RcB4Ua4TK6BjN0gb0iYnViPBapk4=; b=MVYc+1/k1dPvI8ioZJ+mCx2AtFI1agRxce75nHG0b1hby0LMdeoyKmOvNn5wjc1IuOedX/ WN2pNSluF6VRMn1A7cC5A46C0QiFtDHS5MnsRS5DF6SrRvL+wEEpz8H3CT1VuSeyQyIKj2 1jcbPLDYTnXD0hVtuf0arLVyg+x38bXIIh9+SQCclmdadMq/OS/80iUhCnZ4gMMknPN/64 7gnf8NXFir5DyHvACfGVtog5tKnPGdgHdCbWItT751L+45rfRMEGPYgjOqF0O6suLWYkCQ rkM7NNXPncz+h5qYZGZygCqi5byCg2wE9VKqn32oip24MmJBicFPwIjGw7ifBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690730272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=FwsdZpnSJxkgLS1RcB4Ua4TK6BjN0gb0iYnViPBapk4=; b=qysbFhgELKEx/X/TWKZKgDirr4uQNWXEV5eQq+ackiAMPlboNTi9jkB7cLYO5dDeC4xYSK bdgmPLMFb0FKbp/V3jEnF7zFqjA7edYrBSLtY8xheFwukVd+jLCOfgIutL0ay6il7XAo2Z sGJNLGEX2Hfew2YWMvtSVjbM9mImseKtUNSE+DnUpT7juYxg1DPBg187BrQpGCPjcGBDv3 YcZeHnjXykmsysU2DeH85HPSWHbkgt9t+6cvmD2b+8ycDIL5sQgIuzsDn++eeXcYs6qBp5 G4uP9wQVv5eeJdgmovqHi9BH8r3Kz8tCkxr9hVRocNYwNQa5/8WdCAveePCwOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690730272; a=rsa-sha256; cv=none; b=wkj0bVCW1Rk2sp2ji0/3Tiwb9zVOX95TCAxIVyM0/KOsfOPtlA0UGv83jO+GQu23JGrw/e eMdH7fFepRM86Q/SKa9kHk9E2Etj7ISEgJRXpnQWNisexiHM25HeUm/QhR1QIIp6y7pFlN 9tm2nbnU4RV2KINjOeA0it63VkD0ExRc+AWvpMeTx/Yd4PzDHCGeLelwUheSIkicPfMlfM BQcP4TPmMoF6/v4BR487gIVN2MlFlsuyDUoX65nyHeTtkPQp/NI/p26/pvt+43T/JODEjW lO21emwT7hJZJDqEW9Y3R2VzYl+F6FA8RukCVUPGt1oD99gmkJWtqPBtT5O4Ww== Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com [80.42.66.93]) (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 did not present a certificate) (Authenticated sender: grahamperrin) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RDQ3f2CWqz16Bq for ; Sun, 30 Jul 2023 15:17:49 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) Message-ID: <62d300c8-2c3e-58fa-334e-23a17962279a@freebsd.org> Date: Sun, 30 Jul 2023 16:17:43 +0100 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 To: FreeBSD CURRENT Content-Language: en-US From: Graham Perrin Subject: Unreliability with DHCP Organization: FreeBSD Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------Vl03Tqn9B1qz056ReDSd9oA8" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------Vl03Tqn9B1qz056ReDSd9oA8 Content-Type: multipart/mixed; boundary="------------oU6hlYKmQh0c3Lk9TINI1Cyp"; protected-headers="v1" From: Graham Perrin To: FreeBSD CURRENT Message-ID: <62d300c8-2c3e-58fa-334e-23a17962279a@freebsd.org> Subject: Unreliability with DHCP --------------oU6hlYKmQh0c3Lk9TINI1Cyp Content-Type: multipart/alternative; boundary="------------48ZDuw9jm6zFH4IL0acpjpdA" --------------48ZDuw9jm6zFH4IL0acpjpdA Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 MS4gU2xlZXAgKHN1c3BlbmQpIHdoaWxzdCBjb25uZWN0ZWQgdG8gb25lIG5ldHdvcmsNCg0K Mi4gY29ubmVjdCB0byBhIG5ldHdvcmsgZWxzZXdoZXJlDQoNCjMuIHdha2UgKHJlc3VtZSku DQoNClJlc3VsdDoNCg0KL2V0Yy9yZXNvbHYuY29uZiBmcmVxdWVudGx5IGNvbnRhaW5zIG91 dGRhdGVkIGluZm9ybWF0aW9uLiBJbiBzb21lIA0KKG1heWJlIGFsbCkgc3VjaCBjYXNlcywg dGhlIElQdjQgaW5ldCBhZGRyZXNzIGlzIG91dGRhdGVkOyBhbmQgc28gb24uDQoNCldoaWNo IC9ldGMvcmMuZC8gZmlsZShzKSBzaG91bGQgSSBhdHRlbXB0IHRvIGZpeD8NCg0KSSBpbWFn aW5lIHVzaW5nIHRoZSByZXN1bWUga2V5d29yZCwgd2hpY2ggaXMgY3VycmVudGx5IHVzZWQg Ynkgb25seSBvbmUgDQpzY3JpcHQ6DQoNCiUgcmNvcmRlciAtayByZXN1bWUgL2V0Yy9yYy5k LyoNCi9ldGMvcmMuZC9udHBkDQolDQoNCg0KSSByb3V0aW5lbHkgcnVuIHRoZSBjb21tYW5k IGJlbG93IHRvIHdvcmsgYXJvdW5kIHRoZSBidWcgKGFuZCBvYnNlcnZlIA0KdGhlIHN0YXRl cyBvZiB0aGluZ3MpIOKAkyBydW4gX2FmdGVyXyB0aGUgYnVnIGJpdGVzLiBJJ2QgcHJlZmVy IGEgZml4LCB0byANCnByZXZlbnQgdGhlIGJpdGVzLg0KDQpscyAvdmFyL3J1bi9yZXNvbHZj b25mL2ludGVyZmFjZXMvIDsgcm91dGUgZGVsZXRlIGRlZmF1bHQgOyBpZmNvbmZpZyANCnds YW4wIGRvd24gJiYgaWZjb25maWcgZW0wIGRvd24gJiYgc2xlZXAgNSA7IGxzIA0KL3Zhci9y dW4vcmVzb2x2Y29uZi9pbnRlcmZhY2VzLyA7IGlmY29uZmlnIGVtMCB1cCAmJiBzbGVlcCAx NQ0KOyBscyAvdmFyL3J1bi9yZXNvbHZjb25mL2ludGVyZmFjZXMvIDsgY2F0IC9ldGMvcmVz b2x2LmNvbmYgOyBwaW5nIC1jIDIgDQotNCBmcmVzaHBvcnRzLm9yZw0KDQo= --------------48ZDuw9jm6zFH4IL0acpjpdA Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

1. Sleep (suspend) whilst connected to one network

2. connect to= a network elsewhere

3. wake (resume).

Result:

/etc/resolv.c= onf frequently contains outdated information. In some (maybe all) such cases, the IPv4 inet address is outdated; and so on.

Which /etc/rc.d/ file(s) should I attempt to fix?

I imagine using the resume keyword, which is currently used by only one script:

% rcorder -k resume /etc/rc.d/*
/etc/rc.d/ntpd
%


I routinely run the command below to work around the bug (and observe the states of things) =E2=80=93 run _after_ the bug bites. I'd prefer a fix, to prevent= the bites.

ls /var/run/resolvconf/interfaces/ ; route delete default ; ifconfig wlan0 down && ifconfig em0 down && sleep 5 ; ls /var/run/resolvconf/interfaces/ ; ifconfig em0 up && sleep 15
; ls /var/run/resolvconf/interfaces/ ; cat /etc/resolv.conf ; ping -c 2 -4 freshports.org

--------------48ZDuw9jm6zFH4IL0acpjpdA-- --------------oU6hlYKmQh0c3Lk9TINI1Cyp-- --------------Vl03Tqn9B1qz056ReDSd9oA8 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEWT/lssMHB+28ly8Kt2dIb0oY1AsFAmTGfxgFAwAAAAAACgkQt2dIb0oY1AtG Pg//TRTpulK/Ux2KggmQuhjJ20sxAJ0TZb2M6tpplpFc3B3bqBvzo4gct/OzrBae0ycnbq/e7JQj h8vfIrqJzEWDVT2PP8Ks7MFOBoh3z3nh7LtKjAYSS7r7y3jmZSVq2187QPX4cHc4sUpFlYVVW4Dp eWWNS2iyjN+7qb59nDTeODLiYz3ssn/kEpPJIOBBlW7wXAqRsR6u03vmpZmgvG6bbWE35lyWxGYS 6kepN8s2O+lXaubCD/ZKGgzDXhEDAdcZqqTarZ1L16bW+3sCEg5hUlVaU0+CJVBnprLFvpGvkLrG 6whHxsGIq6CetKIbhSF9Ka0Uym7iW+o53NnyzPRn/0gPK0tW9m0rpUm95nTwNa7spmbgu4i0HbZV Le5hDyTdEckeawHl6XkSIpLWDeN10d8YZpTcc75mwK4DphF4NOKbUU+1TOUXdihn8le98J8iMsYE KpN6vgMsJU7EVWD5+8A2WMZk2GXwJn5/2TcZ0Y1LJhSBiwknn58UGwSANpdZd83d5fr5NmhUwoRQ i8yMopr3VW4TjvlfNC834eIQnrattm/oONemnIwLiflO4+Dn23DG0u1q1HzI5gd8N8m6URG12p8C 4/he9wJqXsoPA88riIP4IrN72lMW+JuPFDRkOFp7paK5LM4GpwuwX8gx9SZHRKdzWtayAiIjtHQ5 iqg= =E4o/ -----END PGP SIGNATURE----- --------------Vl03Tqn9B1qz056ReDSd9oA8--