ebt_ppp extension module for ebtables
Eric delalandes <[email protected]> Thu, 17 Jun 2010 09:08:18 +0000
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============8186855416243132645==
Content-Type: multipart/alternative;
boundary="_1af54a02-3afb-498b-b8d8-f7aebe7260ec_"
--_1af54a02-3afb-498b-b8d8-f7aebe7260ec_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Hello All=2C
I have=20
added the kernel part on my module like this:
I
have add in Makefile EXT_FUNC+=3D802_3 nat arp arpreply=20
ip ip6 standard log redirect vlan mark_m mark ppp \
pkttype stp=20
among limit ulog nflog=20
It compiles but I have many errors :
gcc -Wall -Wunused -fPIC=20
-DPROGVERSION=3D\"2.0.9-2\" -DPROGNAME=3D\"ebtables\" -DPROGDATE=3D\"June\=
=20
2009\" -D_PATH_ETHERTYPES=3D\"/etc/ethertypes\" -DEBTD_ARGC_MAX=3D50=20
-DEBTD_CMDLINE_MAXLN=3D2048 -c -o extensions/ebt_ppp.o=20
extensions/ebt_ppp.c -Iinclude/
In file included from=20
extensions/../include/ebtables.h:16=2C
from=20
extensions/ebt_ppp.c:15:
/usr/include/linux/if.h:166: error: field=20
=91ifru_addr=92 has incomplete type
/usr/include/linux/if.h:167: error:=20
field =91ifru_dstaddr=92 has incomplete type
/usr/include/linux/if.h:168:
error: field =91ifru_broadaddr=92 has incomplete type
/usr/include/linux/if.h:169:
error: field =91ifru_netmask=92 has incomplete type
/usr/include/linux/if.h:170:
error: field =91ifru_hwaddr=92 has incomplete type
In file included from
include/linux/netfilter_bridge.h:7=2C
from=20
extensions/../include/ebtables.h:17=2C
from=20
extensions/ebt_ppp.c:15:
/usr/include/linux/netfilter.h:44: error:=20
field =91in=92 has incomplete type
/usr/include/linux/netfilter.h:45:=20
error: field =91in6=92 has incomplete type
In file included from=20
/usr/include/linux/if_pppox.h:23=2C
from=20
include/linux/netfilter_bridge.h:10=2C
from=20
extensions/../include/ebtables.h:17=2C
from=20
extensions/ebt_ppp.c:15:
/usr/include/linux/if_pppol2tp.h:30: error:=20
field =91addr=92 has incomplete type
In file included from=20
include/linux/netfilter_bridge.h:10=2C
from=20
extensions/../include/ebtables.h:17=2C
from=20
extensions/ebt_ppp.c:15:
/usr/include/linux/if_pppox.h:51: error:=20
expected specifier-qualifier-list before =91sa_family_t=92
/usr/include/linux/if_pppox.h:64:
error: expected specifier-qualifier-list before =91sa_family_t=92
In=20
file included from extensions/ebt_ppp.c:15:
extensions/../include/ebtables.h:37:
error: expected specifier-qualifier-list before =91uint64_t=92
extensions/../include/ebtables.h:170:
error: expected specifier-qualifier-list before =91uint16_t=92
extensions/ebt_ppp.c:198:
warning: =91struct net_device=92 declared inside parameter list
extensions/ebt_ppp.c:198:
warning: its scope is only this definition or declaration=2C which is=20
probably not what you want
extensions/ebt_ppp.c:198: warning: =91struct
sk_buff=92 declared inside parameter list
extensions/ebt_ppp.c: In=20
function =91ebt_filter_ppp=92:
extensions/ebt_ppp.c:204: warning:=20
implicit declaration of function =91skb_copy_bits=92
extensions/ebt_ppp.c:205:
error: =91EBT_NOMATCH=92 undeclared (first use in this function)
extensions/ebt_ppp.c:205:
error: (Each undeclared identifier is reported only once
extensions/ebt_ppp.c:205:
error: for each function it appears in.)
extensions/ebt_ppp.c:207:=20
warning: implicit declaration of function =91FWINV=92
extensions/ebt_ppp.c:218:
warning: control reaches end of non-void function
extensions/ebt_ppp.c:
In function =91ebt_ppp_check=92:
extensions/ebt_ppp.c:225: error:=20
=91EINVAL=92 undeclared (first use in this function)
extensions/ebt_ppp.c:226:
error: =91const struct ebt_entry=92 has no member named =91ethproto=92
extensions/ebt_ppp.c:
At top level:
extensions/ebt_ppp.c:234: error: variable =91filter_ppp=92
has initializer but incomplete type
extensions/ebt_ppp.c:236: error:
unknown field =91name=92 specified in initializer
extensions/ebt_ppp.c:236:
warning: excess elements in struct initializer
extensions/ebt_ppp.c:236:
warning: (near initialization for =91filter_ppp=92)
extensions/ebt_ppp.c:237:
error: unknown field =91match=92 specified in initializer
extensions/ebt_ppp.c:237:
warning: excess elements in struct initializer
extensions/ebt_ppp.c:237:
warning: (near initialization for =91filter_ppp=92)
extensions/ebt_ppp.c:238:
error: unknown field =91check=92 specified in initializer
extensions/ebt_ppp.c:238:
warning: excess elements in struct initializer
extensions/ebt_ppp.c:238:
warning: (near initialization for =91filter_ppp=92)
extensions/ebt_ppp.c:239:
error: unknown field =91me=92 specified in initializer
extensions/ebt_ppp.c:239:
error: =91THIS_MODULE=92 undeclared here (not in a function)
extensions/ebt_ppp.c:239:
warning: excess elements in struct initializer
extensions/ebt_ppp.c:239:
warning: (near initialization for =91filter_ppp=92)
extensions/ebt_ppp.c:242:
error: expected =91=3D=92=2C =91=2C=92=2C =91=3B=92=2C =91asm=92 or =91__a=
ttribute__=92 before =91init=92
extensions/ebt_ppp.c:247:
error: expected =91=3D=92=2C =91=2C=92=2C =91=3B=92=2C =91asm=92 or =91__a=
ttribute__=92 before =91fini=92
extensions/ebt_ppp.c:252:
warning: data definition has no type or storage class
extensions/ebt_ppp.c:252:
warning: type defaults to =91int=92 in declaration of =91module_init=92
extensions/ebt_ppp.c:252:
warning: parameter names (without types) in function declaration
extensions/ebt_ppp.c:253:
warning: data definition has no type or storage class
extensions/ebt_ppp.c:253:
warning: type defaults to =91int=92 in declaration of =91module_exit=92
extensions/ebt_ppp.c:253:
warning: parameter names (without types) in function declaration
make:
*** [extensions/ebt_ppp.o] Erreur 1
Can anybody help me please?
=20
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=3D60969=
--_1af54a02-3afb-498b-b8d8-f7aebe7260ec_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Verdana
}
--></style>
</head>
<body class=3D'hmmessage'>
 =3BHello All=2C<br><br>I have=20
added the kernel part on my module like this:<br><br><font style=3D"font-si=
ze: 8pt=3B" size=3D"1"><font style=3D"font-size: 10pt=3B" size=3D"2">I
have =3B add in Makefile =3B </font></font>EXT_FUNC+=3D802_3 nat a=
rp arpreply=20
ip ip6 standard log redirect vlan mark_m mark ppp \<br> =3Bpkttype stp=
=20
among limit ulog nflog <br><br>It compiles but I =3B have many errors :=
<br><br>gcc -Wall -Wunused -fPIC=20
-DPROGVERSION=3D\"2.0.9-2\" -DPROGNAME=3D\"ebtables\" -DPROGDATE=3D\"June\=
=20
2009\" -D_PATH_ETHERTYPES=3D\"/etc/ethertypes\" -DEBTD_ARGC_MAX=3D50=20
-DEBTD_CMDLINE_MAXLN=3D2048 -c -o extensions/ebt_ppp.o=20
extensions/ebt_ppp.c -Iinclude/<br>In file included from=20
extensions/../include/ebtables.h:16=2C<br> =3B =3B =3B =3B&=
nbsp=3B =3B =3B =3B =3B =3B =3B =3B =3B&nbs=
p=3B =3B =3B from=20
extensions/ebt_ppp.c:15:<br>/usr/include/linux/if.h:166: error: field=20
=91ifru_addr=92 has incomplete type<br>/usr/include/linux/if.h:167: error:=
=20
field =91ifru_dstaddr=92 has incomplete type<br>/usr/include/linux/if.h:168=
:
error: field =91ifru_broadaddr=92 has incomplete type<br>/usr/include/linu=
x/if.h:169:
error: field =91ifru_netmask=92 has incomplete type<br>/usr/include/linux/=
if.h:170:
error: field =91ifru_hwaddr=92 has incomplete type<br>In file included fro=
m
include/linux/netfilter_bridge.h:7=2C<br> =3B =3B =3B =3B&=
nbsp=3B =3B =3B =3B =3B =3B =3B =3B =3B&nbs=
p=3B =3B =3B from=20
extensions/../include/ebtables.h:17=2C<br> =3B =3B =3B =3B&=
nbsp=3B =3B =3B =3B =3B =3B =3B =3B =3B&nbs=
p=3B =3B =3B from=20
extensions/ebt_ppp.c:15:<br>/usr/include/linux/netfilter.h:44: error:=20
field =91in=92 has incomplete type<br>/usr/include/linux/netfilter.h:45:=20
error: field =91in6=92 has incomplete type<br>In file included from=20
/usr/include/linux/if_pppox.h:23=2C<br> =3B =3B =3B =3B&nbs=
p=3B =3B =3B =3B =3B =3B =3B =3B =3B =
=3B =3B =3B from=20
include/linux/netfilter_bridge.h:10=2C<br> =3B =3B =3B =3B&=
nbsp=3B =3B =3B =3B =3B =3B =3B =3B =3B&nbs=
p=3B =3B =3B from=20
extensions/../include/ebtables.h:17=2C<br> =3B =3B =3B =3B&=
nbsp=3B =3B =3B =3B =3B =3B =3B =3B =3B&nbs=
p=3B =3B =3B from=20
extensions/ebt_ppp.c:15:<br>/usr/include/linux/if_pppol2tp.h:30: error:=20
field =91addr=92 has incomplete type<br>In file included from=20
include/linux/netfilter_bridge.h:10=2C<br> =3B =3B =3B =3B&=
nbsp=3B =3B =3B =3B =3B =3B =3B =3B =3B&nbs=
p=3B =3B =3B from=20
extensions/../include/ebtables.h:17=2C<br> =3B =3B =3B =3B&=
nbsp=3B =3B =3B =3B =3B =3B =3B =3B =3B&nbs=
p=3B =3B =3B from=20
extensions/ebt_ppp.c:15:<br>/usr/include/linux/if_pppox.h:51: error:=20
expected specifier-qualifier-list before =91sa_family_t=92<br>/usr/include/=
linux/if_pppox.h:64:
error: expected specifier-qualifier-list before =91sa_family_t=92<br>In=20
file included from extensions/ebt_ppp.c:15:<br>extensions/../include/ebtabl=
es.h:37:
error: expected specifier-qualifier-list before =91uint64_t=92<br>extensio=
ns/../include/ebtables.h:170:
error: expected specifier-qualifier-list before =91uint16_t=92<br>extensio=
ns/ebt_ppp.c:198:
warning: =91struct net_device=92 declared inside parameter list<br>extensi=
ons/ebt_ppp.c:198:
warning: its scope is only this definition or declaration=2C which is=20
probably not what you want<br>extensions/ebt_ppp.c:198: warning: =91struct
sk_buff=92 declared inside parameter list<br>extensions/ebt_ppp.c: In=20
function =91ebt_filter_ppp=92:<br>extensions/ebt_ppp.c:204: warning:=20
implicit declaration of function =91skb_copy_bits=92<br>extensions/ebt_ppp.=
c:205:
error: =91EBT_NOMATCH=92 undeclared (first use in this function)<br>extens=
ions/ebt_ppp.c:205:
error: (Each undeclared identifier is reported only once<br>extensions/ebt=
_ppp.c:205:
error: for each function it appears in.)<br>extensions/ebt_ppp.c:207:=20
warning: implicit declaration of function =91FWINV=92<br>extensions/ebt_ppp=
.c:218:
warning: control reaches end of non-void function<br>extensions/ebt_ppp.c:
In function =91ebt_ppp_check=92:<br>extensions/ebt_ppp.c:225: error:=20
=91EINVAL=92 undeclared (first use in this function)<br>extensions/ebt_ppp.=
c:226:
error: =91const struct ebt_entry=92 has no member named =91ethproto=92<br>=
extensions/ebt_ppp.c:
At top level:<br>extensions/ebt_ppp.c:234: error: variable =91filter_ppp=
=92
has initializer but incomplete type<br>extensions/ebt_ppp.c:236: error:
unknown field =91name=92 specified in initializer<br>extensions/ebt_ppp.c:=
236:
warning: excess elements in struct initializer<br>extensions/ebt_ppp.c:236=
:
warning: (near initialization for =91filter_ppp=92)<br>extensions/ebt_ppp.=
c:237:
error: unknown field =91match=92 specified in initializer<br>extensions/eb=
t_ppp.c:237:
warning: excess elements in struct initializer<br>extensions/ebt_ppp.c:237=
:
warning: (near initialization for =91filter_ppp=92)<br>extensions/ebt_ppp.=
c:238:
error: unknown field =91check=92 specified in initializer<br>extensions/eb=
t_ppp.c:238:
warning: excess elements in struct initializer<br>extensions/ebt_ppp.c:238=
:
warning: (near initialization for =91filter_ppp=92)<br>extensions/ebt_ppp.=
c:239:
error: unknown field =91me=92 specified in initializer<br>extensions/ebt_p=
pp.c:239:
error: =91THIS_MODULE=92 undeclared here (not in a function)<br>extensions=
/ebt_ppp.c:239:
warning: excess elements in struct initializer<br>extensions/ebt_ppp.c:239=
:
warning: (near initialization for =91filter_ppp=92)<br>extensions/ebt_ppp.=
c:242:
error: expected =91=3D=92=2C =91=2C=92=2C =91=3B=92=2C =91asm=92 or =91__a=
ttribute__=92 before =91init=92<br>extensions/ebt_ppp.c:247:
error: expected =91=3D=92=2C =91=2C=92=2C =91=3B=92=2C =91asm=92 or =91__a=
ttribute__=92 before =91fini=92<br>extensions/ebt_ppp.c:252:
warning: data definition has no type or storage class<br>extensions/ebt_pp=
p.c:252:
warning: type defaults to =91int=92 in declaration of =91module_init=92<br=
>extensions/ebt_ppp.c:252:
warning: parameter names (without types) in function declaration<br>extens=
ions/ebt_ppp.c:253:
warning: data definition has no type or storage class<br>extensions/ebt_pp=
p.c:253:
warning: type defaults to =91int=92 in declaration of =91module_exit=92<br=
>extensions/ebt_ppp.c:253:
warning: parameter names (without types) in function declaration<br>make:
*** [extensions/ebt_ppp.o] Erreur 1<br><br>Can anybody help me please?<br>=
<br> <br /><hr />Hotmail: Powerful Free email with security by M=
icrosoft. <a href=3D'https://signup.live.com/signup.aspx?id=3D60969' target=
=3D'_new'>Get it now.</a></body>
</html>=
--_1af54a02-3afb-498b-b8d8-f7aebe7260ec_--
--===============8186855416243132645==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
--===============8186855416243132645==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Ebtables-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ebtables-devel
--===============8186855416243132645==--