#include <ctype.h>
#include <features.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netinet/ether.h>
#include <net/ethernet.h>
#include "ethernetdb.h"
Macros | |
#define | MAXALIASES 35 |
Functions | |
void | setethertypeent (int f) |
void | endethertypeent (void) |
struct ethertypeent * | getethertypeent (void) |
struct ethertypeent * | getethertypebyname (const char *name) |
struct ethertypeent * | getethertypebynumber (int type) |
#define MAXALIASES 35 |
Referenced by getethertypeent().
void endethertypeent | ( | void | ) |
References NULL.
Referenced by getethertypebyname(), and getethertypebynumber().
struct ethertypeent* getethertypebyname | ( | const char * | name | ) |
References ethertypeent::e_aliases, ethertypeent::e_name, endethertypeent(), getethertypeent(), NULL, and setethertypeent().
Referenced by do_command().
struct ethertypeent* getethertypebynumber | ( | int | type | ) |
References ethertypeent::e_ethertype, endethertypeent(), getethertypeent(), NULL, and setethertypeent().
Referenced by parseethertypebynumber().
struct ethertypeent* getethertypeent | ( | void | ) |
References _PATH_ETHERTYPES, ethertypeent::e_aliases, ethertypeent::e_ethertype, ethertypeent::e_name, ETH_ZLEN, line, MAXALIASES, and NULL.
Referenced by getethertypebyname(), and getethertypebynumber().
void setethertypeent | ( | int | f | ) |
References _PATH_ETHERTYPES, and NULL.
Referenced by getethertypebyname(), and getethertypebynumber().