Lines 22-27
Link Here
|
22 |
#include <linux/ip.h> |
22 |
#include <linux/ip.h> |
23 |
#include <linux/skbuff.h> |
23 |
#include <linux/skbuff.h> |
24 |
#endif |
24 |
#endif |
|
|
25 |
#include <linux/compiler.h> /* __user */ |
25 |
#include <linux/netfilter_ipv4.h> |
26 |
#include <linux/netfilter_ipv4.h> |
26 |
|
27 |
|
27 |
#define IPT_FUNCTION_MAXNAMELEN 30 |
28 |
#define IPT_FUNCTION_MAXNAMELEN 30 |
Lines 283-290
Link Here
|
283 |
struct ipt_entry entrytable[0]; |
284 |
struct ipt_entry entrytable[0]; |
284 |
}; |
285 |
}; |
285 |
|
286 |
|
286 |
extern struct semaphore ipt_mutex; |
|
|
287 |
|
288 |
/* Standard return verdict, or do jump. */ |
287 |
/* Standard return verdict, or do jump. */ |
289 |
#define IPT_STANDARD_TARGET "" |
288 |
#define IPT_STANDARD_TARGET "" |
290 |
/* Error verdict. */ |
289 |
/* Error verdict. */ |
Lines 336-344
Link Here
|
336 |
/* |
335 |
/* |
337 |
* Main firewall chains definitions and global var's definitions. |
336 |
* Main firewall chains definitions and global var's definitions. |
338 |
*/ |
337 |
*/ |
339 |
static DECLARE_MUTEX(ipt_mutex); |
|
|
340 |
#ifdef __KERNEL__ |
338 |
#ifdef __KERNEL__ |
341 |
|
339 |
|
|
|
340 |
extern struct semaphore ipt_mutex; |
341 |
static DECLARE_MUTEX(ipt_mutex); |
342 |
|
342 |
#include <linux/init.h> |
343 |
#include <linux/init.h> |
343 |
extern void ipt_init(void) __init; |
344 |
extern void ipt_init(void) __init; |
344 |
|
345 |
|