summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/iplist.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/iplist.h')
-rw-r--r--usr.sbin/ppp/iplist.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/usr.sbin/ppp/iplist.h b/usr.sbin/ppp/iplist.h
new file mode 100644
index 00000000000..00923a03cb5
--- /dev/null
+++ b/usr.sbin/ppp/iplist.h
@@ -0,0 +1,24 @@
+/*
+ * $Id: iplist.h,v 1.1 1997/12/15 22:44:54 brian Exp $
+ */
+
+struct iplist {
+ struct iplist_cur {
+ struct in_addr ip;
+ int pos;
+ char *srcptr;
+ int srcitem;
+ u_long lstart, nItems;
+ } cur;
+ int nItems;
+ char src[LINE_LEN];
+};
+
+extern int iplist_setsrc(struct iplist *, const char *);
+extern void iplist_reset(struct iplist *);
+extern struct in_addr iplist_setcurpos(struct iplist *, int);
+extern struct in_addr iplist_setrandpos(struct iplist *);
+extern int iplist_ip2pos(struct iplist *, struct in_addr);
+extern struct in_addr iplist_next(struct iplist *);
+
+#define iplist_isvalid(x) ((x)->src[0] != '\0')