From aac311473fb4753db236e40f3f5c3865e491cb56 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sun, 11 Aug 2002 11:57:52 +0000 Subject: remove database --- communication.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'communication.c') diff --git a/communication.c b/communication.c index 02db500..b1e112a 100644 --- a/communication.c +++ b/communication.c @@ -18,7 +18,6 @@ #include #include #include -#include #include // IPPROTO_IP #include "include/ebtables_u.h" @@ -684,37 +683,3 @@ int get_table(struct ebt_u_replace *u_repl) print_bug("Wrong total nentries"); return 0; } - -void get_dbinfo(struct brdb_dbinfo *nr) -{ - socklen_t optlen = sizeof(struct brdb_dbinfo); - - get_sockfd(); - - if (getsockopt(sockfd, IPPROTO_IP, BRDB_SO_GET_DBINFO, nr, &optlen)) - print_error("Sorry, br_db code probably not in kernel, " - "try insmod br_db"); -} - -void get_db(int len, struct brdb_dbentry *db) -{ - socklen_t optlen = len; - - get_sockfd(); - - if ( getsockopt(sockfd, IPPROTO_IP, BRDB_SO_GET_DB, db, &optlen) ) { - print_bug("hmm, what is wrong??? bug#2"); - } -} - -void deliver_allowdb(__u16 *decision) -{ - socklen_t optlen = sizeof(__u16); - - get_sockfd(); - - if (setsockopt(sockfd, IPPROTO_IP, BRDB_SO_SET_ALLOWDB, - decision, optlen)) - print_error("Sorry, br_db code probably not in kernel, " - "try insmod br_db"); -} -- cgit v1.2.3