[1872] in linux-net channel archive
Re: interface id and ipfw
daemon@ATHENA.MIT.EDU (Alan Cox)
Wed Feb 7 05:30:19 1996
From: Alan Cox <alan@cymru.net>
To: news@meerkat.xs4all.nl (Miss News)
Date: Wed, 7 Feb 1996 10:10:59 +0000 (GMT)
Cc: submit-linux-dev-net@ratatosk.yggdrasil.com
In-Reply-To: <m0tjst6-0010y0C@meerkat.xs4all.nl> from "Miss News" at Feb 6, 96 08:17:00 pm
> After looking at the source code in ip_fw.c (ip_fw_chk()) I have a
> question. Why was the interface address chosen to identify an
> interface instead of the interface name? The name is guarenteed to be
> unique but the address isn't. Am I overseeing something?
At the time there was no safe way to cache a device pointer and compare
that. (You _DONT_ want to compare strings each time). Now we have the
device notifiers it could be changed.
Alan