summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/communication.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2002-08-11 11:57:52 +0000
committerBart De Schuymer <bdschuym@pandora.be>2002-08-11 11:57:52 +0000
commit1e25d677ae86548bdd215e0f37baaf07508a2543 (patch)
treee87b9b1a4c55eeed698263aefe924a029bfab123 /userspace/ebtables2/communication.c
parent79502bd43f07907a3a695a971a050b9de632db79 (diff)
remove database
Diffstat (limited to 'userspace/ebtables2/communication.c')
-rw-r--r--userspace/ebtables2/communication.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/userspace/ebtables2/communication.c b/userspace/ebtables2/communication.c
index 02db500..b1e112a 100644
--- a/userspace/ebtables2/communication.c
+++ b/userspace/ebtables2/communication.c
@@ -18,7 +18,6 @@
#include <stdlib.h>
#include <sys/socket.h>
#include <linux/netfilter_bridge/ebtables.h>
-#include <linux/br_db.h>
#include <netinet/in.h> // 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");
-}