DHCP on FreeBSD 8.2

newuse at qip.ru newuse at qip.ru
Sun Apr 22 11:46:27 CEST 2012


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.c	Tue Apr 17 16:11:05 2012
--- ./src/lib/dhcp.c	Sun Apr 22 01:45:08 2012
***************
*** 20,27 ****
--- 20,35 ----
   * Copyright 2008 The FreeRADIUS server project
   * Copyright 2008 Alan DeKok <aland at deployingradius.com>
   */
+  
+  
+ typedef unsigned short	u_short;
+ typedef unsigned long	u_long;
+ typedef unsigned char	u_char;
+ typedef unsigned int	u_int;
+ 
  
  #include <sys/ioctl.h>
+ #include <sys/socket.h>
  #include <net/if_arp.h>
  
  #include	<freeradius-devel/ident.h>
[/code]





>Garber, Neal wrote:
>> Try adding the following includes before those that are already in the file
>> freeradius-server/src/lib/dhcp.c:
>> 
>> #include <sys/socket.h>
>> #include <sys/types.h>

> I'll add a patch.

> Alan DeKok.




More information about the Freeradius-Users mailing list