Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 1998 13:49:16 +0200 (MET DST)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        kjc@csl.sony.co.jp (Kenjiro Cho)
Cc:        current@FreeBSD.ORG
Subject:   Re: struct ifnet handling...
Message-ID:  <199805191149.NAA09232@labinfo.iet.unipi.it>
In-Reply-To: <199805191038.TAA25933@hotaka.csl.sony.co.jp> from "Kenjiro Cho" at May 19, 98 07:38:06 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> >> When this is done, matching interface names requires only a pointer
> >> comparison (and furthermore, a NULL pointer can be used as an
> >> indication that no interface match is required).
> 
> Use if_index instead of a pointer to the interface name.  if_index is
> a unique interface number start from 1.  Many routing related programs

I also thought of the pointer to struct ifnet as a unique identifier,
except that the current ipfw syntax allows wildcards to selects all
interfaces of the same kind (e.g. all "tun", all "ed", etc.)

I don't think this makes much sense, but maybe someone depends on it.

In any case it is clear that if we want a fast firewall code,
rules must be simplified. We now have CISC rules, should go for RISC
ones :)

	cheers
	luigi

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



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