Index | Thread | Search

From:
greg <gnezdo@openbsd.org>
Subject:
netstart hilarity
To:
tech@openbsd.org
Date:
Sun, 24 Mar 2024 13:38:48 -0700

Download raw body.

Thread
  • greg:

    netstart hilarity

I was puzzled to find this in my `ifconfig qwx0` output:
	inet 0.188.97.78 netmask 0xff000000 broadcast 0.255.255.255
	inet 192.168.86.28 netmask 0xffffff00 broadcast 192.168.86.255

It took me quite a while to figure out that the reason I get this weird
IP happens to be these lines in /etc/netstart's parse_hn_line():
	*)	_cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]}"
		;;

Not that I know how to validate the `join` lines in hostname.if better,
but it certainly is a surprising behavior.

Thanks
Greg

P.S. If you need a hint, I missed the "wpakey" in that line and now you
can figure out my super-secret tethering key.