~mdw
/
fwd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add option to change the listen(2) parameter. Receive `fw'-specific
[fwd]
/
acl.c
diff --git
a/acl.c
b/acl.c
index
4dadc24
..
059ec9c
100644
(file)
--- a/
acl.c
+++ b/
acl.c
@@
-1,10
+1,10
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: acl.c,v 1.
1 1999/07/01 08:56:2
3 mdw Exp $
+ * $Id: acl.c,v 1.
3 1999/07/27 18:30:5
3 mdw Exp $
*
* Access control list handling
*
*
* Access control list handling
*
- * (c) 1999
Mark Wooding
+ * (c) 1999
Straylight/Edgeware
*/
/*----- Licensing notice --------------------------------------------------*
*/
/*----- Licensing notice --------------------------------------------------*
@@
-29,8
+29,14
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: acl.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: acl.c,v $
- * Revision 1.1 1999/07/01 08:56:23 mdw
- * Initial revision
+ * Revision 1.3 1999/07/27 18:30:53 mdw
+ * Various minor portability fixes.
+ *
+ * Revision 1.2 1999/07/26 23:28:15 mdw
+ * Minor modifications for new design.
+ *
+ * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
+ * Initial revision.
*
*/
*
*/
@@
-43,6
+49,9
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@
-110,6
+119,24
@@
void acl_dump(acl_entry *a, FILE *fp)
}
}
}
}
+/* --- @acl_free@ --- *
+ *
+ * Arguments: @acl_entry *a@ = pointer to a list of ACLs
+ *
+ * Returns: ---
+ *
+ * Use: Frees all of the memory used by an ACL.
+ */
+
+void acl_free(acl_entry *a)
+{
+ while (a) {
+ acl_entry *aa = a;
+ a = a->next;
+ DESTROY(aa);
+ }
+}
+
/* --- @acl_add@ --- *
*
* Arguments: @acl_entry ***a@ = address of pointer to list tail
/* --- @acl_add@ --- *
*
* Arguments: @acl_entry ***a@ = address of pointer to list tail