RE: DHCP on FreeBSD 8.2

2012-04-22 Thread newuse
>Those definitions are in the system header files. The server should >depend on the header files. It's better than having hard-coded values >in the source. I am new to programming :( Thanks. So this patch also seems working fine on my FreeBSD: [code] *** ./src/lib/dhcp.cTue Apr 17 16:11:05

Re: DHCP on FreeBSD 8.2

2012-04-22 Thread Alan DeKok
new...@qip.ru wrote: > I have get it working, here is my patch, but I have not tested if it will > correctly compile on non-FreeBSD PCs :( I pushed a patch to git. It's cross-platform, and should work. > + typedef unsigned short u_short; > + typedef unsigned long u_long; > + typede

RE: DHCP on FreeBSD 8.2

2012-04-22 Thread newuse
Hi, thanks! I have get it working, here is my patch, but I have not tested if it will correctly compile on non-FreeBSD PCs :( [code] *** ./src/lib/dhcp.cTue Apr 17 16:11:05 2012 --- ./src/lib/dhcp.cSun Apr 22 01:45:08 2012 *** *** 20,27 --- 20,35 * Copyright 2008

Re: DHCP on FreeBSD 8.2

2012-04-22 Thread Alan DeKok
Garber, Neal wrote: > Try adding the following includes before those that are already in the file > freeradius-server/src/lib/dhcp.c: > > #include > #include I'll add a patch. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

RE: DHCP on FreeBSD 8.2

2012-04-21 Thread Garber, Neal
> I am getting the following errors during compilation on my FreeBSD 8.2 OS: > /usr/include/net/if_arp.h:47: error: expected specifier-qualifier-list > before 'u_short' > /usr/include/net/if_arp.h:88: error: field 'arp_pa' has incomplete type > /usr/include/net/if_arp.h:89: error: field 'arp_ha'

DHCP on FreeBSD 8.2

2012-04-21 Thread newuse
Hi all, I am getting the following errors during compilation on my FreeBSD 8.2 OS: /usr/include/net/if_arp.h:47: error: expected specifier-qualifier-list before 'u_short' /usr/include/net/if_arp.h:88: error: field 'arp_pa' has incomplete type /usr/include/net/if_arp.h:89: error: field 'arp_ha' h