The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
endianness.h File Reference
#include <linux/byteorder/little_endian.h>
Include dependency graph for endianness.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  int_info
 

Macros

#define MAX_INTS_PER_STRUCT
 
#define IINFO_DYNAMIC_VALUE
 
#define INT_TYPE_VOID
 
#define INT_TYPE_32BIT   1 /* The int var is of 32 bits */
 
#define INT_TYPE_16BIT   (1<<1) /* The int var is of 16 bits */
 
#define INT_TYPE_WORDS
 
#define INT_TYPE_NETWORK   (1<<3) /* The int var is stored in network order */
 
#define INT_INFO   const static int_info
 

Functions

void * int_info_copy (int_info *dst, const int_info *src)
 
void ints_array_htons (short *netshort, int nmemb)
 
void ints_array_ntohs (short *hostshort, int nmemb)
 
void ints_array_htonl (int *netlong, int nmemb)
 
void ints_array_ntohl (int *hostlong, int nmemb)
 
void ints_network_to_host (void *s, int_info iinfo)
 
void ints_host_to_network (void *s, int_info iinfo)
 
void ints_printf (void *s, int_info iinfo, void(*print_func(const char *,...)))
 

Macro Definition Documentation

#define IINFO_DYNAMIC_VALUE
Value:
-1 /* This define is used to fill part in a
int_info struct that must be set each time.
If that part is not set, -1 will remain, and
the int_info functions will call fatal().
Therefore this is useful to track bugs. */
#define INT_INFO   const static int_info
#define INT_TYPE_16BIT   (1<<1) /* The int var is of 16 bits */
#define INT_TYPE_32BIT   1 /* The int var is of 32 bits */
#define INT_TYPE_NETWORK   (1<<3) /* The int var is stored in network order */
#define INT_TYPE_VOID
Value:
0 /* Emptiness is loneliness, and loneliness is
cleanliness */
#define INT_TYPE_WORDS
Value:
(1<<2) /* The int var is composed by an array of ints,
like the ipv6 ip (struct in6_addr) */
#define MAX_INTS_PER_STRUCT
Value:
8 /* The maximum number of short/int variables
present in a struct */

Function Documentation

void* int_info_copy ( int_info dst,
const int_info src 
)

Here is the caller graph for this function:

void ints_array_htonl ( int *  netlong,
int  nmemb 
)

Here is the caller graph for this function:

void ints_array_htons ( short *  netshort,
int  nmemb 
)

Here is the caller graph for this function:

void ints_array_ntohl ( int *  hostlong,
int  nmemb 
)

Here is the caller graph for this function:

void ints_array_ntohs ( short *  hostshort,
int  nmemb 
)

Here is the caller graph for this function:

void ints_host_to_network ( void *  s,
int_info  iinfo 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ints_network_to_host ( void *  s,
int_info  iinfo 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ints_printf ( void *  s,
int_info  iinfo,
void(**,...  char 
)