problem with checking dhcp-packet type
Alexander Kubatkin
kaa at kaa.su
Tue Jul 7 11:59:28 CEST 2009
On Вторник 07 июля 2009 12:08:06 Alan DeKok wrote:
> Alexander Kubatkin wrote:
> > Below of the message translated and not translated code of dhcp-packet
> > from client soho-router TrendNet 631BRP.
> > As i can see, the main problem is a wrong order (for freeradius rules) of
> > dhcp options and that's why such packet did not recognized and did not
> > accepted. When packet is arriving i see "Unknown, or badly formatted DHCP
> > packet".
> >
> > How to fix this?
>
> http://git.freeradius.org/pre/
>
> Download the pre-release of 2.1.7. It should fix this problem.
problem with build:
cc -O2 -fno-strict-aliasing -pipe -march=pentium4 -I/usr/local/include -L/usr/local/lib -pthread -Wall -D_GNU_SOURCE -DNDEBUG -I/usr/ports/net/freeradius2/work/freeradius-server-2.1.7/src -
DHOSTINFO=\"i386-portbld-freebsd7.0\" -DRADIUSD_VERSION=\"2.1.7\" -I/usr/local/include -DOPENSSL_NO_KRB5 -c listen.c -fPIC -DPIC -o .libs/listen.o
listen.c: In function 'client_listener_find':
listen.c:129: warning: passing argument 1 of 'listener->print' discards qualifiers from pointer target type
listen.c:209: warning: assignment discards qualifiers from pointer target type
In file included from listen.c:1305:
dhcpd.c: In function 'dhcp_process':
dhcpd.c:88: error: 'packet' undeclared (first use in this function)
dhcpd.c:88: error: (Each undeclared identifier is reported only once
dhcpd.c:88: error: for each function it appears in.)
dhcpd.c:100: error: 'union <anonymous>' has no member named 's_addr'
dhcpd.c:107: error: 'data_len' undeclared (first use in this function)
In file included from listen.c:1307:
command.c: In function 'command_show_client_config':
command.c:845: warning: passing argument 2 of 'cf_section2file' discards qualifiers from pointer target type
gmake[4]: *** [listen.lo] Error 1
--
__________________________________________________
Alexander Kubatkin
More information about the Freeradius-Users
mailing list