netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
network.c File Reference
#include "conntrackd.h"
#include "network.h"
#include "log.h"
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "cache.h"
Include dependency graph for network.c:

Macros

#define NETHDR_ALIGNTO   4
 

Functions

int nethdr_align (int value)
 
int nethdr_size (int len)
 
void nethdr_set (struct nethdr *net, int type)
 
void nethdr_set_ack (struct nethdr *net)
 
void nethdr_set_ctl (struct nethdr *net)
 
int nethdr_track_seq (uint32_t seq, uint32_t *exp_seq)
 
void nethdr_track_update_seq (uint32_t seq)
 
int nethdr_track_is_seq_set ()
 
int object_status_to_network_type (struct cache_object *obj)
 

Macro Definition Documentation

#define NETHDR_ALIGNTO   4

Referenced by nethdr_align().

Function Documentation

int nethdr_align ( int  value)

References NETHDR_ALIGNTO.

void nethdr_set ( struct nethdr net,
int  type 
)

References NETHDR_SIZ, nethdr::type, and type.

void nethdr_set_ack ( struct nethdr net)

References NETHDR_ACK_SIZ.

void nethdr_set_ctl ( struct nethdr net)

References NETHDR_SIZ.

int nethdr_size ( int  len)

References len, and NETHDR_SIZ.

int nethdr_track_is_seq_set ( void  )
int nethdr_track_seq ( uint32_t  seq,
uint32_t *  exp_seq 
)
void nethdr_track_update_seq ( uint32_t  seq)

References STATE_SYNC.

int object_status_to_network_type ( struct cache_object obj)