Subject: variable length "struct ifnet" is bad
To: None <>
From: Matthias Drochner <>
List: tech-net
Date: 06/23/2006 18:09:32
Hi -
"struct ifnet" has an "#if NAGR > 0" in it. This can cause that
it has a different length for kernel and userland. What makes it
worse is that there are other structures (eg "struct ethercom")
which embed "ifnet" and thus change their layout. This breaks eg
"ifconfig -a" and "ifmcstat" for me.

Just delete the "ifdef" or is there a way to make "if_agrprivate"
really agr private?

best regards