Searched refs:etherf (Results 1 – 1 of 1) sorted by relevance
50 static FILE *etherf = NULL; variable58 if (etherf == NULL) in setethertypeent()59 etherf = fopen(_PATH_ETHERTYPES, "r"); in setethertypeent()61 rewind(etherf); in setethertypeent()67 if (etherf) { in endethertypeent()68 fclose(etherf); in endethertypeent()69 etherf = NULL; in endethertypeent()80 if (etherf == NULL in getethertypeent()81 && (etherf = fopen(_PATH_ETHERTYPES, "r")) == NULL) { in getethertypeent()86 if ((e = fgets(line, BUFSIZ, etherf)) == NULL) { in getethertypeent()