diff options
author | laforge <laforge> | 2000-08-12 07:11:29 +0000 |
---|---|---|
committer | laforge <laforge> | 2000-08-12 07:11:29 +0000 |
commit | 1fb8128d7111dded78bf9445709cd94354f7f5f2 (patch) | |
tree | e9b988f2ad9c3cc887f3f770c786f0efb0d32725 /ulogd/libipulog | |
parent | 9c78000a078b942d97c15d6b6bc12f102a1b9ab6 (diff) |
reversed last change. James Morris corrected the correction (so I was right
in the first place)
Diffstat (limited to 'ulogd/libipulog')
-rw-r--r-- | ulogd/libipulog/libipulog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ulogd/libipulog/libipulog.c b/ulogd/libipulog/libipulog.c index e5e6d2f..dac2115 100644 --- a/ulogd/libipulog/libipulog.c +++ b/ulogd/libipulog/libipulog.c @@ -1,5 +1,5 @@ /* - * libipulog.c, $Revision: 1.2 $ + * libipulog.c, $Revision: 1.3 $ * * netfilter ULOG userspace library. * @@ -9,7 +9,7 @@ * This library is still under development, so be aware of sudden interface * changes * - * $Id: libipulog.c,v 1.2 2000/07/31 14:52:46 laforge Exp $ + * $Id: libipulog.c,v 1.3 2000/08/11 09:56:45 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 = 0; + h->local.nl_pid = getpid(); h->local.nl_groups = gmask; status = bind(h->fd, (struct sockaddr *)&h->local, sizeof(h->local)); if (status == -1) |