WvStreams
include
wvipaliaser.h
1
/* -*- Mode: C++ -*-
2
* Worldvisions Weaver Software:
3
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4
*
5
*/
6
#ifndef __WVIPALIASER_H
7
#define __WVIPALIASER_H
8
9
#include "wvinterface.h"
10
#include "wvaddr.h"
11
19
class
WvIPAliaser
20
{
21
struct
Alias
22
{
23
int
index, link_count;
24
WvIPAddr
ip;
25
26
Alias(
const
WvIPAddr
&_ip);
27
~Alias();
28
};
29
30
DeclareWvList(Alias);
31
32
static
AliasList all_aliases;
33
AliasList aliases;
34
WvInterfaceDict
interfaces;
35
36
WvIPAliaser::Alias *ipsearch(WvIPAliaser::AliasList &l,
37
const
WvIPAddr
&ip);
38
39
public
:
40
WvIPAliaser
();
41
~
WvIPAliaser
();
42
43
void
dump();
44
67
void
start_edit
();
68
bool
add(
const
WvIPAddr
&ip);
69
bool
done_edit();
70
};
71
72
73
#endif // __WVIPALIASER_H
WvInterfaceDict
Definition:
wvinterface.h:124
WvIPAliaser
WvIPAliaser handles IP aliasing in the Linux kernel.
Definition:
wvipaliaser.h:19
WvIPAliaser::start_edit
void start_edit()
you must call start_edit() once, then add() any number of times, then done_edit() once,...
Definition:
wvipaliaser.cc:86
WvIPAddr
An IP address is made up of a "dotted quad" – four decimal numbers in the form www....
Definition:
wvaddr.h:249
Generated by
1.8.17