netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
getethertype.c File Reference
#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"
Include dependency graph for getethertype.c:

Macros

#define MAXALIASES   35
 

Functions

void setethertypeent (int f)
 
void endethertypeent (void)
 
struct ethertypeentgetethertypeent (void)
 
struct ethertypeentgetethertypebyname (const char *name)
 
struct ethertypeentgetethertypebynumber (int type)
 

Macro Definition Documentation

#define MAXALIASES   35

Referenced by getethertypeent().

Function Documentation

void endethertypeent ( void  )

References NULL.

Referenced by getethertypebyname(), and getethertypebynumber().

Here is the caller graph for this function:

struct ethertypeent* getethertypebyname ( const char *  name)

References ethertypeent::e_aliases, ethertypeent::e_name, endethertypeent(), getethertypeent(), NULL, and setethertypeent().

Referenced by do_command().

Here is the call graph for this function:

Here is the caller graph for this function:

struct ethertypeent* getethertypebynumber ( int  type)

References ethertypeent::e_ethertype, endethertypeent(), getethertypeent(), NULL, and setethertypeent().

Referenced by parseethertypebynumber().

Here is the call graph for this function:

Here is the caller graph for this function:

struct ethertypeent* getethertypeent ( void  )
void setethertypeent ( int  f)

References _PATH_ETHERTYPES, and NULL.

Referenced by getethertypebyname(), and getethertypebynumber().

Here is the caller graph for this function: