Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12111
b: refs/heads/master
c: 6b7d31f
h: refs/heads/master
i:
  12109: 7537f47
  12107: 232ec8c
  12103: e120a5b
  12095: 4d32673
v: v3
  • Loading branch information
Harald Welte authored and Arnaldo Carvalho de Melo committed Oct 31, 2005
1 parent 2695f9e commit 9ca2f02
Show file tree
Hide file tree
Showing 6 changed files with 363 additions and 193 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ede2463c8d7ea949f8e7ef35243490c415ddc2f
refs/heads/master: 6b7d31fcdda5938e5d3f1f8b0922cc25aa200dfc
20 changes: 17 additions & 3 deletions trunk/include/linux/netfilter_arp/arp_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ struct arpt_entry_target
u_int16_t target_size;

/* Used by userspace */
char name[ARPT_FUNCTION_MAXNAMELEN];
char name[ARPT_FUNCTION_MAXNAMELEN-1];
u_int8_t revision;
} user;
struct {
u_int16_t target_size;
Expand Down Expand Up @@ -148,7 +149,9 @@ struct arpt_entry

#define ARPT_SO_GET_INFO (ARPT_BASE_CTL)
#define ARPT_SO_GET_ENTRIES (ARPT_BASE_CTL + 1)
#define ARPT_SO_GET_MAX ARPT_SO_GET_ENTRIES
/* #define ARPT_SO_GET_REVISION_MATCH (ARPT_BASE_CTL + 2)*/
#define ARPT_SO_GET_REVISION_TARGET (ARPT_BASE_CTL + 3)
#define ARPT_SO_GET_MAX ARPT_SO_GET_REVISION_TARGET

/* CONTINUE verdict for targets */
#define ARPT_CONTINUE 0xFFFFFFFF
Expand Down Expand Up @@ -236,6 +239,15 @@ struct arpt_get_entries
struct arpt_entry entrytable[0];
};

/* The argument to ARPT_SO_GET_REVISION_*. Returns highest revision
* kernel supports, if >= revision. */
struct arpt_get_revision
{
char name[ARPT_FUNCTION_MAXNAMELEN-1];

u_int8_t revision;
};

/* Standard return verdict, or do jump. */
#define ARPT_STANDARD_TARGET ""
/* Error verdict. */
Expand Down Expand Up @@ -274,7 +286,9 @@ struct arpt_target
{
struct list_head list;

const char name[ARPT_FUNCTION_MAXNAMELEN];
const char name[ARPT_FUNCTION_MAXNAMELEN-1];

u_int8_t revision;

/* Returns verdict. */
unsigned int (*target)(struct sk_buff **pskb,
Expand Down
27 changes: 22 additions & 5 deletions trunk/include/linux/netfilter_ipv6/ip6_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ struct ip6t_entry_match
u_int16_t match_size;

/* Used by userspace */
char name[IP6T_FUNCTION_MAXNAMELEN];
char name[IP6T_FUNCTION_MAXNAMELEN-1];
u_int8_t revision;
} user;
struct {
u_int16_t match_size;
Expand All @@ -80,7 +81,8 @@ struct ip6t_entry_target
u_int16_t target_size;

/* Used by userspace */
char name[IP6T_FUNCTION_MAXNAMELEN];
char name[IP6T_FUNCTION_MAXNAMELEN-1];
u_int8_t revision;
} user;
struct {
u_int16_t target_size;
Expand Down Expand Up @@ -161,7 +163,9 @@ struct ip6t_entry

#define IP6T_SO_GET_INFO (IP6T_BASE_CTL)
#define IP6T_SO_GET_ENTRIES (IP6T_BASE_CTL + 1)
#define IP6T_SO_GET_MAX IP6T_SO_GET_ENTRIES
#define IP6T_SO_GET_REVISION_MATCH (IP6T_BASE_CTL + 2)
#define IP6T_SO_GET_REVISION_TARGET (IP6T_BASE_CTL + 3)
#define IP6T_SO_GET_MAX IP6T_SO_GET_REVISION_TARGET

/* CONTINUE verdict for targets */
#define IP6T_CONTINUE 0xFFFFFFFF
Expand Down Expand Up @@ -291,6 +295,15 @@ struct ip6t_get_entries
struct ip6t_entry entrytable[0];
};

/* The argument to IP6T_SO_GET_REVISION_*. Returns highest revision
* kernel supports, if >= revision. */
struct ip6t_get_revision
{
char name[IP6T_FUNCTION_MAXNAMELEN-1];

u_int8_t revision;
};

/* Standard return verdict, or do jump. */
#define IP6T_STANDARD_TARGET ""
/* Error verdict. */
Expand Down Expand Up @@ -352,7 +365,9 @@ struct ip6t_match
{
struct list_head list;

const char name[IP6T_FUNCTION_MAXNAMELEN];
const char name[IP6T_FUNCTION_MAXNAMELEN-1];

u_int8_t revision;

/* Return true or false: return FALSE and set *hotdrop = 1 to
force immediate packet drop. */
Expand Down Expand Up @@ -387,7 +402,9 @@ struct ip6t_target
{
struct list_head list;

const char name[IP6T_FUNCTION_MAXNAMELEN];
const char name[IP6T_FUNCTION_MAXNAMELEN-1];

u_int8_t revision;

/* Returns verdict. Argument order changed since 2.6.9, as this
must now handle non-linear skbs, using skb_copy_bits and
Expand Down
Loading

0 comments on commit 9ca2f02

Please sign in to comment.