Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Mar 1999 07:16:46 +0100 (CET)
From:      Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To:        Andy Doran <ad@psn.ie>
Cc:        hackers@FreeBSD.org
Subject:   Re: /usr/include/net
Message-ID:  <XFMail.990305071646.asmodai@wxs.nl>
In-Reply-To: <Pine.BSF.4.05.9903042153380.2551-100000@mailhub.psn.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04-Mar-99 Andy Doran wrote:
>> But let's say that 3.x and 4.x use the if_var.h, how would I best use
>> this with includes? use #ifndef __FREEBSD_2_2__; #include <net/if_var.h>?
>> 
> See the FAQ/Handbook entry on porting for more information, but basically
> AFAIR:

It's not for a port, it's for native support alongsides Linux and a couple
of other OS's.
 
> -- snip
>#include <sys/param.h>
> 
>#if defined(__FreeBSD__) && __FreeBSD_version >= 300001
>#include <net/if_var.h>
>#endif
> --snip

thanks, will try

> If you're getting interface lists, a lot of stuff has changed from
> 3.0-RELEASE (queues are now used). Take a look interface.c from the
> latest source for fetchmail for an example, which I added FreeBSD support
> to.

Well, the reason the program gets interface lists is because it needs them
for routing, in how much this is a general hack I still need to find out
and I'll be calling on -hackers whenever I need more advice =)

The program is the Zebra project @ www.zebra.org

---
Jeroen Ruigrok van der Werven     <http://www.freebsdzine.org>; 
asmodai(at)wxs.nl        The idea does not replace the work...
Network/Security Specialist      <http://home.wxs.nl/~asmodai>;
*BSD: Powered by Knowledge & Know-how <http://www.freebsd.org>;


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990305071646.asmodai>