Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

route-hpux.c File Reference

#include "config.h"
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/mib.h>
#include <sys/socket.h>
#include <net/route.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "dnet.h"

Go to the source code of this file.

Classes

struct  route_handle

Defines

#define ADDR_ISHOST(a)
#define MAX_RTENTRIES   256

Functions

route_troute_open (void)
int route_add (route_t *r, const struct route_entry *entry)
int route_delete (route_t *r, const struct route_entry *entry)
int route_get (route_t *r, struct route_entry *entry)
int route_loop (route_t *r, route_handler callback, void *arg)
route_troute_close (route_t *r)


Define Documentation

#define ADDR_ISHOST  ) 
 

Value:

(((a)->addr_type == ADDR_TYPE_IP &&     \
                          (a)->addr_bits == IP_ADDR_BITS) ||    \
                         ((a)->addr_type == ADDR_TYPE_IP6 &&    \
                          (a)->addr_bits == IP6_ADDR_BITS))

Definition at line 26 of file route-hpux.c.

Referenced by route_add(), and route_delete().

#define MAX_RTENTRIES   256
 

Definition at line 126 of file route-hpux.c.

Referenced by route_loop().


Function Documentation

int route_add route_t r,
const struct route_entry entry
 

Definition at line 48 of file route-hpux.c.

References addr::addr_bits, addr_btom(), ADDR_ISHOST, addr_net(), addr_ntos(), IP_ADDR_LEN, memcpy, memset, route_entry::route_dst, and route_entry::route_gw.

route_t* route_close route_t r  ) 
 

Definition at line 172 of file route-hpux.c.

References NULL.

int route_delete route_t r,
const struct route_entry entry
 

Definition at line 72 of file route-hpux.c.

References addr::addr_bits, addr_btom(), ADDR_ISHOST, addr_net(), addr_ntos(), IP_ADDR_LEN, memcpy, memset, and route_entry::route_dst.

int route_get route_t r,
struct route_entry entry
 

Definition at line 95 of file route-hpux.c.

References addr::addr_bits, addr_btom(), addr::addr_type, ADDR_TYPE_IP, errno, IP_ADDR_ANY, IP_ADDR_BITS, IP_ADDR_LEN, memcpy, memset, route_entry::route_dst, and route_entry::route_gw.

int route_loop route_t r,
route_handler  callback,
void *  arg
 

Definition at line 129 of file route-hpux.c.

References addr::addr_bits, addr_mtob(), addr::addr_type, ADDR_TYPE_IP, IP_ADDR_BITS, IP_ADDR_LEN, MAX_RTENTRIES, route_entry::route_dst, and route_entry::route_gw.

route_t* route_open void   ) 
 

Definition at line 36 of file route-hpux.c.

References NULL, and route_close().


Generated on Sun May 14 14:51:22 2006 by  doxygen 1.4.2