Files
makronix/docs/reference/netconfig.txt
T
lotherkandClaude Opus 5.5 1b524eb94c MCDE: the bar after dtsession, its menus only for the focused program, a Network pane
Konrad, 2026-11-13: "panel fehlt, top leiste is lila", the network settings
"zu rudimentaer, keine ip config, kein dns", the global menu only while a
program that has one is in front.

The bar (and the launcher, the drop-down terminal, the login items) came
from Xsession.d, before dtsession had loaded the session's resources and
the colour server: dtbar took *background from ~/.Xdefaults (#6e1e7d, the
user's base16 theme; dtbar PID 1270788 started before dtsession 1270795).
Restarting dtbar in the running session gave the palette's colours.  Now
dtsession runs sys.sessionetc -- the first of CDE_CONFIGURATION_TOP/config
and CDE_INSTALLATION_TOP/config, as sys.session is found -- before the
user's sessionetc (SmRestore.c, StartEtc); it sources config/sessionetc.d,
where 0080.dtlaunch, 0085.dtdropdown, 0090.dtbar and 0095.loginitems moved.
The bar takes colour set 5, the programs' background, not set 6 of a menu
bar (Dtbar*secondaryColorSetId: 5; measured #c6b2a8 with Default.dp).

dtwm publishes the focused client as _NET_ACTIVE_WINDOW (EWMH, WmEwmh.c
SetNetActiveWindow from SetKeyboardFocus and where the focus is dropped);
dtbar shows a program's menus only while the active window is the menus'
owner, a dialog of it (WM_TRANSIENT_FOR) or a window of the same program
(WM_CLIENT_LEADER).  Measured on Xvfb with dtwm, dtbar, dtpad and xterm,
clicking: dtpad -> its menus, xterm -> M only, dtpad -> its menus again.

Network (dtsystemsettings/network.c, docs/reference/netconfig.txt): Show:
Network Status (a light and a sentence per card, Configure...) or one card
with the tabs TCP/IP (Using DHCP, with manual address, Manually, Off;
address, mask, router, DHCP client ID, Renew DHCP Lease; IPv6), DNS
(servers, search domains, what resolv.conf has now), Wi-Fi and Ethernet;
the lock and Apply Now as Accounts.  McdeSys mcde_sys_net_config,
_configure, _renew (replacing mcde_sys_net_dhcp, which was declared and
implemented nowhere): NetBSD one block per interface in dhcpcd.conf, as
ifconfig.if(5) recommends, sysinst's static address in ifconfig.IF read and
moved there, applied with dhcpcd -n IF (cross-compiled with the tree's
x86_64--netbsd-gcc, not run); Linux the NetworkManager profile (nmcli).
mcde_sys_interfaces took the last IPv4 address (the secondary one), now the
first.  Measured on this host, read only: the pane shows the three cards,
172.20.10.2/28 by DHCP, router 172.20.10.1, DNS 1.1.1.1, MAC, MTU 1500;
test_sysinfo (new checks: settings read, 300.1.2.3 refused) exit 0.
Nothing was applied on the development host.

From the review of 2026-11-12's commits: libDtTerm links libMcdeSound
(977a7347c made the bell call McdeSoundEvent; dtcodegen did not link); the
PLIST lacked dtphoto, dtpaint, dttoolbox, mcdesoundd, libMcdeSound, their
data and the sound themes (51 entries, from the installed tree); mcdesoundd
was started by nothing (sessionetc.d/0075.mcdesoundd) and took the
selection from a running server; dttoolbox kept only the first line of the
Selected menu and rebuilt it every 500 ms, and NewMenu returned an
uninitialised pointer past 64 menus.

Built and installed with make mcde-host MCDE_DIRS=install, exit 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 06:26:21 +00:00

109 lines
5.5 KiB
Plaintext

The network settings of an interface -- where each system keeps them
Read 2026-11-13 for System Settings > Network (MCDE: McdeSys
mcde_sys_net_config / mcde_sys_net_configure).
== NetBSD: dhcpcd.conf, one block per interface ==
src/share/man/man5/ifconfig.if.5, DESCRIPTION, 4th paragraph:
If the line is equal to "dhcp", dhcpcd(8) will be started for the
interface. However, it is instead recommended that dhcpcd is set to true
in rc.conf(5) and any per interface configuration or restriction is done
in dhcpcd.conf(5).
So: rc.conf dhcpcd=YES, and per interface a block in /etc/dhcpcd.conf.
sysinst (src/usr.sbin/sysinst/net.c:1154-1205) still writes a static
address as "ADDR netmask MASK" into /etc/ifconfig.IF and defaultroute= into
rc.conf, DHCP as dhcpcd=YES with dhcpcd_flags="-qM IF". McdeSys reads both
(an inet line in ifconfig.IF means "Manually") and writes the recommended
form; the inet lines of ifconfig.IF are taken out when it does, "up" and
"media" stay.
src/external/bsd/dhcpcd/dist/src/dhcpcd.conf.5 (dhcpcd 10.5.2):
interface interface
Subsequent options are only parsed for this interface.
static value
Configures a static value. If you set ip_address then dhcpcd will
not attempt to obtain a lease and will just use the value for the
address with an infinite lease time. [...] For IPv4, you should use
the inform ipaddress option instead of setting a static address.
interface eth0
noipv6rs
static ip_address=192.168.0.10/24
static ip6_address=fd51:42f8:caae:d92e::ff/64
static routers=192.168.0.1
static domain_name_servers=192.168.0.1 fd51:42f8:caae:d92e::1
inform [address[/cidr[/broadcast_address]]]
Behaves like request as above, but sends a DHCP INFORM instead of
DISCOVER/REQUEST. This does not get a lease as such, just notifies
the DHCP server of the address in use.
clientid string
Send the clientid.
noipv4 Don't attempt to configure an IPv4 address.
noipv6 Don't solicit or accept IPv6 Router Advertisements and DHCPv6.
How the pane's choices map (the block between "# MCDE network IF begin" and
"# MCDE network IF end"):
Using DHCP (no block, or only clientid)
Using DHCP with manual address inform ADDR/PREFIX
Manually static ip_address=ADDR/PREFIX
static routers=ROUTER
Off noipv4
IPv6 Automatically (nothing)
IPv6 Manually static ip6_address=ADDR/PREFIX
IPv6 Off noipv6
DNS servers, search domains static domain_name_servers=A B ...
static domain_search=D E ...
dhcpcd hands DNS to resolvconf(8) (openresolv), which writes
/etc/resolv.conf; the current servers are read from that file.
Applied now by "/etc/rc.d/dhcpcd restart" (rc.subr(8)).
src/share/man/man5/rc.conf.5:
defaultroute A string. Default IPv4 network route.
dhcpcd Boolean value. Set true to configure some or all network
interfaces using dhcpcd. [...] If you need to restrict
dhcpcd to one or a number of interfaces, or need a separate
configuration per interface, then this should be done in
the configuration file - see dhcpcd.conf(5)
== Linux: NetworkManager, nmcli(1) 1.56.1 ==
man 5 nm-settings-nmcli (Debian 14 host):
ipv4.method "auto" - Enables automatic IPv4 address assignment from
DHCP [...] "manual" - [...] you must set at least one IP
address and subnet mask in the "ipv4.addresses" property.
"disabled" - Disables the IPv4 protocol in this connection
profile.
ipv4.addresses A list of IPv4 addresses and their prefix length.
ipv6.method "auto" [...] "manual" [...] "disabled" [...]
Using DHCP ipv4.method auto, ipv4.addresses ""
Using DHCP with manual address ipv4.method auto, ipv4.addresses ADDR/P
Manually ipv4.method manual, ipv4.addresses,
ipv4.gateway
Off ipv4.method disabled
DNS ipv4.dns, ipv4.dns-search
DHCP client ID ipv4.dhcp-client-id
Read with "nmcli -t -g PROPS connection show NAME" (configured) and
"nmcli -t -g IP4.ADDRESS,... device show IF" (current); written with
"nmcli connection modify NAME ..." and applied with "nmcli connection up
NAME". Measured on this host 2026-11-13: device enxde5285b18f9e,
connection "Wired connection 1", ipv4.method auto, ipv4.dns 1.1.1.1,
IP4.ADDRESS 172.20.10.3/28, IP4.GATEWAY 172.20.10.1.
== The look: the Network pane of the 10.4 generation ==
Konrad 2026-11-13: "nimm mac os x 10.4 network config as inspiration";
https://devices.eduroam.ac.ke/mediawiki-1.25.1/index.php?title=Mac_OS_X_10.4_-_Tiger
(screenshots of the pane, read 2026-11-13). What that pane has: "Show:"
chooses Network Status or one port; a port has the tabs AirPort, TCP/IP,
DNS, WINS, AppleTalk, 802.1X, Proxies, Ethernet; TCP/IP has "Configure
IPv4:" (Using DHCP, Using DHCP with manual address, Manually, Off), IP
Address, Subnet Mask, Router, DHCP Client ID, "Renew DHCP Lease",
"Configure IPv6"; DNS has DNS Servers and Search Domains; the lock ("Click
the lock to prevent further changes") and "Apply Now" at the bottom.
MCDE takes Network Status, TCP/IP, DNS, Wi-Fi, Ethernet, the lock and
Apply Now; WINS, AppleTalk, 802.1X and Proxies are not drawn yet.