autoip.h File Reference

#include "nip_init.h"
#include "net_if.h"
#include "net/arp.h"

Include dependency graph for autoip.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nip_autoip_conf

Defines

#define NIP_AUTOIP_PROBE_WAIT   1
 max.
#define NIP_AUTOIP_PROBE_NUM   3
 number of probes packets to send
#define NIP_AUTOIP_PROBE_MIN   1
 min.
#define NIP_AUTOIP_PROBE_MAX   2
 max.
#define NIP_AUTOIP_ANNOUNCE_WAIT   2
 seconds to wait after last probe packet is sent
#define NIP_AUTOIP_ANNOUNCE_NUM   2
 number of announcements to send
#define NIP_AUTOIP_ANNOUNCE_INTERVAL   2
 seconds to wait inbetween announcements
#define NIP_AUTOIP_MAX_CONFLICTS   10
 number of conflicts after which to limit probe rate
#define NIP_AUTOIP_RATE_LIMIT_INTERVAL   60
 rate at which try new addresses after MAX_CONFLICTS conflicts
#define NIP_AUTOIP_DEFEND_INTERVAL   10
 minimum interval between defensive ARPs

Enumerations

enum  nip_autoip_state_t {
  NIP_AUTOIP_STAT_DISABLED = 0, NIP_AUTOIP_STAT_INIT, NIP_AUTOIP_STAT_PROBE, NIP_AUTOIP_STAT_ANNOUNCE,
  NIP_AUTOIP_STAT_UP, NIP_AUTOIP_STAT_CONFLICT
}

Functions

void nip_autoip_start (nip_net_if_id_t net_if)
void nip_autoip_disp_check (void)
void nip_autoip_arpcheck (nip_net_if_id_t if_id, struct ARP_PACKET *arp)

Variables

struct nip_autoip_conf nip_autoip_conf


Define Documentation

#define NIP_AUTOIP_ANNOUNCE_INTERVAL   2

seconds to wait inbetween announcements

Definition at line 44 of file autoip.h.

#define NIP_AUTOIP_ANNOUNCE_NUM   2

number of announcements to send

Definition at line 43 of file autoip.h.

#define NIP_AUTOIP_ANNOUNCE_WAIT   2

seconds to wait after last probe packet is sent

Definition at line 42 of file autoip.h.

#define NIP_AUTOIP_DEFEND_INTERVAL   10

minimum interval between defensive ARPs

Definition at line 47 of file autoip.h.

#define NIP_AUTOIP_MAX_CONFLICTS   10

number of conflicts after which to limit probe rate

Definition at line 45 of file autoip.h.

#define NIP_AUTOIP_PROBE_MAX   2

max.

seconds to wait in between two probe packets

Definition at line 41 of file autoip.h.

#define NIP_AUTOIP_PROBE_MIN   1

min.

seconds to wait in between two probe packets

Definition at line 40 of file autoip.h.

#define NIP_AUTOIP_PROBE_NUM   3

number of probes packets to send

Definition at line 39 of file autoip.h.

#define NIP_AUTOIP_PROBE_WAIT   1

max.

interval to wait before sending probe packets

Definition at line 38 of file autoip.h.

#define NIP_AUTOIP_RATE_LIMIT_INTERVAL   60

rate at which try new addresses after MAX_CONFLICTS conflicts

Definition at line 46 of file autoip.h.


Enumeration Type Documentation

Enumerator:
NIP_AUTOIP_STAT_DISABLED 
NIP_AUTOIP_STAT_INIT 
NIP_AUTOIP_STAT_PROBE 
NIP_AUTOIP_STAT_ANNOUNCE 
NIP_AUTOIP_STAT_UP 
NIP_AUTOIP_STAT_CONFLICT 

Definition at line 50 of file autoip.h.


Function Documentation

void nip_autoip_arpcheck ( nip_net_if_id_t  if_id,
struct ARP_PACKET arp 
)

void nip_autoip_disp_check ( void   ) 

void nip_autoip_start ( nip_net_if_id_t  net_if  ) 


Variable Documentation


Generated on Thu Jul 10 01:09:44 2008 for NIP by  doxygen 1.5.5