diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-01-05 15:18:59 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-01-05 15:18:59 +0300 |
commit | f28cb1b0a926f1ea98700b7871537ad1793511fd (patch) | |
tree | baf35570bc6b38b6fab5b6524e8f19f58f71e57f /accel-pppd/ipdb.h | |
parent | 2fdf3586c13a72c36f9530084962e29d57dc0329 (diff) | |
download | accel-ppp-xebd-f28cb1b0a926f1ea98700b7871537ad1793511fd.tar.gz accel-ppp-xebd-f28cb1b0a926f1ea98700b7871537ad1793511fd.zip |
rename accel-pptp to accel-ppp
Diffstat (limited to 'accel-pppd/ipdb.h')
-rw-r--r-- | accel-pppd/ipdb.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/accel-pppd/ipdb.h b/accel-pppd/ipdb.h new file mode 100644 index 0000000..ebf3885 --- /dev/null +++ b/accel-pppd/ipdb.h @@ -0,0 +1,29 @@ +#ifndef IPDB_H +#define IPDB_H + +#include <netinet/in.h> + +#include "ppp.h" +#include "list.h" + +struct ipdb_item_t +{ + struct ipdb_t *owner; + in_addr_t addr; + in_addr_t peer_addr; +}; + +struct ipdb_t +{ + struct list_head entry; + struct ipdb_item_t *(*get)(struct ppp_t *ppp); + void (*put)(struct ppp_t *ppp, struct ipdb_item_t *); +}; + +struct ipdb_item_t *ipdb_get(struct ppp_t *ppp); +void ipdb_put(struct ppp_t *ppp, struct ipdb_item_t *); + +void ipdb_register(struct ipdb_t *); + +#endif + |