if_getalloctype
if (if_getalloctype(ifp) != IFT_ETHER)
int if_getalloctype(const if_t ifp);
switch (if_getalloctype(ifp)) {