]> git.pld-linux.org Git - packages/linux-libc-headers.git/commitdiff
- headers for osf and u32 from netfilter snap 20040907 auto/ac/linux-libc-headers-2_6_8_1-2
authorcieciwa <cieciwa@pld-linux.org>
Tue, 14 Sep 2004 08:58:55 +0000 (08:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    linux-libc-headers-pom-ng-20040907.patch -> 1.1

linux-libc-headers-pom-ng-20040907.patch [new file with mode: 0644]

diff --git a/linux-libc-headers-pom-ng-20040907.patch b/linux-libc-headers-pom-ng-20040907.patch
new file mode 100644 (file)
index 0000000..002c783
--- /dev/null
@@ -0,0 +1,125 @@
+diff -Nur linux-libc-headers-2.6.8.1.org/include/linux/netfilter_ipv4/ipt_osf.h linux-libc-headers-2.6.8.1/include/linux/netfilter_ipv4/ipt_osf.h
+--- linux-libc-headers-2.6.8.1.org/include/linux/netfilter_ipv4/ipt_osf.h      1970-01-01 01:00:00.000000000 +0100
++++ linux-libc-headers-2.6.8.1/include/linux/netfilter_ipv4/ipt_osf.h  2004-09-13 11:41:05.000000000 +0200
+@@ -0,0 +1,77 @@
++
++#ifndef _IPT_OSF_H
++#define _IPT_OSF_H
++
++#define MAXGENRELEN            32
++#define MAXDETLEN              64
++
++#define IPT_OSF_GENRE          1
++#define        IPT_OSF_SMART           2
++#define IPT_OSF_LOG            4
++#define IPT_OSF_NETLINK                8
++
++#define IPT_OSF_LOGLEVEL_ALL   0
++#define IPT_OSF_LOGLEVEL_FIRST 1
++
++//#include <linux/list.h>
++//#include <net/tcp.h>
++
++//#include <netinet/ip.h>
++//#include <netinet/tcp.h>
++
++struct list_head
++{
++       struct list_head *prev, *next;
++};
++
++struct ipt_osf_info
++{
++       char                    genre[MAXGENRELEN];
++       int                     len;
++       unsigned long           flags;
++       int                     loglevel;
++       int                     invert; /* UNSUPPORTED */
++};
++
++struct osf_wc
++{
++       char                    wc;
++       unsigned long           val;
++};
++
++/* This struct represents IANA options
++ * http://www.iana.org/assignments/tcp-parameters
++ */
++struct osf_opt
++{
++       unsigned char           kind;
++       unsigned char           length;
++       struct osf_wc           wc;
++};
++
++struct osf_finger
++{
++       struct list_head        flist;
++       struct osf_wc           wss;
++       unsigned char           ttl;
++       unsigned char           df;
++       unsigned long           ss;
++       unsigned char           genre[MAXGENRELEN];
++       unsigned char           version[MAXGENRELEN], subtype[MAXGENRELEN];
++
++       /* Not needed, but for consistency with original table from Michal Zalewski */
++       unsigned char           details[MAXDETLEN]; 
++
++       int                     opt_num;
++       struct osf_opt          opt[MAX_IPOPTLEN]; /* In case it is all NOP or EOL */
++
++};
++
++struct ipt_osf_nlmsg
++{
++       struct osf_finger       f;
++       struct iphdr            ip;
++       struct tcphdr           tcp;
++};
++
++#endif /* _IPT_OSF_H */
+diff -Nur linux-libc-headers-2.6.8.1.org/include/linux/netfilter_ipv4/ipt_u32.h linux-libc-headers-2.6.8.1/include/linux/netfilter_ipv4/ipt_u32.h
+--- linux-libc-headers-2.6.8.1.org/include/linux/netfilter_ipv4/ipt_u32.h      1970-01-01 01:00:00.000000000 +0100
++++ linux-libc-headers-2.6.8.1/include/linux/netfilter_ipv4/ipt_u32.h  2004-09-13 12:02:51.000000000 +0200
+@@ -0,0 +1,40 @@
++#ifndef _IPT_U32_H
++#define _IPT_U32_H
++#include <linux/netfilter_ipv4/ip_tables.h>
++
++enum ipt_u32_ops
++{
++      IPT_U32_AND,
++      IPT_U32_LEFTSH,
++      IPT_U32_RIGHTSH,
++      IPT_U32_AT
++};
++
++struct ipt_u32_location_element
++{
++      u_int32_t number;
++      u_int8_t nextop;
++};
++struct ipt_u32_value_element
++{
++      u_int32_t min;
++      u_int32_t max;
++};
++/* *** any way to allow for an arbitrary number of elements?
++   for now I settle for a limit of 10 of each */
++#define U32MAXSIZE 10
++struct ipt_u32_test
++{
++      u_int8_t nnums;
++      struct ipt_u32_location_element location[U32MAXSIZE+1];
++      u_int8_t nvalues;
++      struct ipt_u32_value_element value[U32MAXSIZE+1];
++};
++
++struct ipt_u32
++{
++      u_int8_t ntests;
++      struct ipt_u32_test tests[U32MAXSIZE+1];
++};
++
++#endif /*_IPT_U32_H*/
This page took 0.044964 seconds and 4 git commands to generate.