Re: interface id and ipfw

Alan Cox (alan@cymru.net)
Wed, 7 Feb 1996 10:10:59 +0000 (GMT)


> 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