summaryrefslogtreecommitdiffhomepage
path: root/contrib/fwd/src/fwd_addr.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-12-20 02:37:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-12-20 02:37:26 +0000
commit19980872755027ab9fe3ca514d2053ab7b2a4c70 (patch)
tree5f8fa04af58fcb68da20d651ecf42c726bda5ed2 /contrib/fwd/src/fwd_addr.h
parentce40fff288e28c5d758789d25cb76f1f617e105b (diff)
contrib/fwd: renamed struct fwd_{addr,network}_list to struct fwd_{network,addr}
Diffstat (limited to 'contrib/fwd/src/fwd_addr.h')
-rw-r--r--contrib/fwd/src/fwd_addr.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/fwd/src/fwd_addr.h b/contrib/fwd/src/fwd_addr.h
index 44465705af..3cabe09a01 100644
--- a/contrib/fwd/src/fwd_addr.h
+++ b/contrib/fwd/src/fwd_addr.h
@@ -28,19 +28,21 @@
#include <arpa/inet.h>
-struct fwd_addr_list {
+struct fwd_addr {
char ifname[IFNAMSIZ];
char label[IFNAMSIZ];
int family;
int index;
struct fwd_cidr ipaddr;
- struct fwd_addr_list *next;
+ struct fwd_addr *next;
};
-struct fwd_addr_list * fwd_get_addrs(int, int);
-struct fwd_addr_list * fwd_append_addrs(struct fwd_addr_list *, struct fwd_addr_list *);
-void fwd_free_addrs(struct fwd_addr_list *);
+struct fwd_addr * fwd_get_addrs(int, int);
+struct fwd_addr * fwd_append_addrs(struct fwd_addr *, struct fwd_addr *);
+void fwd_free_addrs(struct fwd_addr *);
+
+struct fwd_cidr * fwd_lookup_addr(struct fwd_addr *, const char *);
#define fwd_foreach_addrs(head, entry) for(entry = head; entry; entry = entry->next)