added #ifdefs for each ethernet type