~csurbhi/ubuntu/maverick/iptables/iptable-fix.600195

« back to all changes in this revision

Viewing changes to include/libipulog/libipulog.h

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2008-06-24 15:06:04 UTC
  • mfrom: (5.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080624150604-5t7r1o1kxq0ycz81
Tags: 1.4.0-4ubuntu1
* Merge from debian unstable, remaining changes:
  - Took references to 2.4 kernel out of doc-base control files (Jordan
    Mantha, Malone #25972) (patches/all/091-fix-2.4-references.patch)
  - Use linux-libc-dev instead of local copy of kernel-headers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _LIBIPULOG_H
 
2
#define _LIBIPULOG_H
 
3
 
 
4
/* libipulog.h,v 1.3 2001/05/21 19:15:16 laforge Exp */
 
5
 
 
6
#include <errno.h>
 
7
#include <unistd.h>
 
8
#include <fcntl.h>
 
9
#include <sys/types.h>
 
10
#include <sys/socket.h>
 
11
#include <sys/uio.h>
 
12
#include <asm/types.h>
 
13
#include <linux/netlink.h>
 
14
#include <net/if.h>
 
15
#include <linux/netfilter_ipv4/ipt_ULOG.h>
 
16
 
 
17
/* FIXME: glibc sucks */
 
18
#ifndef MSG_TRUNC 
 
19
#define MSG_TRUNC       0x20
 
20
#endif
 
21
 
 
22
struct ipulog_handle;
 
23
 
 
24
u_int32_t ipulog_group2gmask(u_int32_t group);
 
25
 
 
26
struct ipulog_handle *ipulog_create_handle(u_int32_t gmask);
 
27
 
 
28
void ipulog_destroy_handle(struct ipulog_handle *h);
 
29
 
 
30
ssize_t ipulog_read(struct ipulog_handle *h,
 
31
                    unsigned char *buf, size_t len, int timeout);
 
32
 
 
33
ulog_packet_msg_t *ipulog_get_packet(struct ipulog_handle *h,
 
34
                                     const unsigned char *buf,
 
35
                                     size_t len);
 
36
 
 
37
void ipulog_perror(const char *s);
 
38
 
 
39
#endif /* _LIBULOG_H */