tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]


On Sat, 27 Apr 2019, Paul Goyette wrote:

So, I decided to try a little bit harder. I installed a stock 8.0 system in a qemu vm, and then loaded 5.2's base.tgz into a chroot directory.

Using the stock 8.0 ifconfig, I see
	# ifconfig -l
	wm0 lo0
	# ifconfig -a
	wm0: flags=0x8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500

	        address: 52:54:00:12:34:56
	        media: Ethernet autoselect (none)
	lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33624
	        inet flags 0x0
	        inet6 ::1/128 flags 0x20<NODAD>
	        inet6 fe80::1%lo0/64 flags 0x0 scopeid 0x2

When I chroot into the 5.2 directory, I get no output of any sort:

	# chroot /chroot-52/
	# ifconfig -l

	# ifconfig -a

So, there's definitely something wrong in 8.0 with the compat sysctl.

I probably changed the behavior with my work on the compat branch, which is likely why -current gets ENOENT errors.

OK, I dug a little bit further, and I know why there is a difference
between 8.0 and -current.  Yep, I broke it on the [pgoyette-compat]
branch.  I will see if I can fix it.  (Please note that real-life is
getting very complex right now, and I don't know how soon I will be
able to work on this.)

(Short version is that I removed the code that created multiple
versions of the sysctl nodes.)

I still cannot explain how things got broken between 5.2 and 8.0.  I
will defer to those who are more expert in this area than am I.  My
suspicion is that the breakage is related to sys/socket.h rev 1.99
which versioned AF_{,O}ROUTE for some 64-bit cleanliness.

| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 |     |
| Software Developer | 0786 F758 55DE 53BA 7731 |   |

Home | Main Index | Thread Index | Old Index