]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
Various fixes due to Jan Echternachs comments on the mailinglist.
authorlaforge <laforge>
Fri, 11 Aug 2000 09:56:42 +0000 (09:56 +0000)
committerlaforge <laforge>
Fri, 11 Aug 2000 09:56:42 +0000 (09:56 +0000)
libipulog/libipulog.c
ulogd.c

index 5d111f6d830f8420424efe5ba29b8acdfda23709..e5e6d2f5be56645285fecc1d8ba7f0411b0e984d 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * libipulog.c, $Revision$
+ * libipulog.c, $Revision: 1.2 $
  *
  * netfilter ULOG userspace library.
  *
@@ -9,7 +9,7 @@
  * This library is still under development, so be aware of sudden interface
  * changes
  *
- * $Id$
+ * $Id: libipulog.c,v 1.2 2000/07/31 14:52:46 laforge Exp $
  */
 
 #include <stdlib.h>
@@ -146,7 +146,7 @@ struct ipulog_handle *ipulog_create_handle(unsigned int gmask)
        }
        memset(&h->local, 0, sizeof(struct sockaddr_nl));
        h->local.nl_family = AF_NETLINK;
-       h->local.nl_pid = getpid();
+       h->local.nl_pid = 0;
        h->local.nl_groups = gmask;
        status = bind(h->fd, (struct sockaddr *)&h->local, sizeof(h->local));
        if (status == -1)
diff --git a/ulogd.c b/ulogd.c
index e9c470337ae1e82f45c98ad2213dd38173f5ff9e..abee09ab072f7fe12307eed51d76d1e6a95aefbb 100644 (file)
--- a/ulogd.c
+++ b/ulogd.c
@@ -1,4 +1,4 @@
-/* ulogd, Version $Revision: 1.3 $
+/* ulogd, Version $Revision: 1.4 $
  *
  * first try of a logging daemon for my netfilter ULOG target
  * for the linux 2.4 netfilter subsystem.
@@ -7,7 +7,7 @@
  *
  * this code is released under the terms of GNU GPL
  *
- * $Id: ulogd.c,v 1.3 2000/08/02 12:20:46 laforge Exp root $
+ * $Id: ulogd.c,v 1.4 2000/08/09 16:26:34 root Exp $
  */
 
 #include <stdio.h>
@@ -236,7 +236,7 @@ int main(int argc, char* argv[])
                 * handle_packet */
                while(1)
                {
-                       len = ipulog_read(h, buf, BUFSIZ, 1);
+                       len = ipulog_read(h, buf, MYBUFSIZ, 1);
                        upkt = ipulog_get_packet(buf);  
                        DEBUGP("==> packet received\n");
                        handle_packet(upkt);