Date: Fri, 4 Sep 1998 20:10:52 +0200 (MET DST) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: jonny@jonny.eng.br (Joao Carlos Mendes Luis) Cc: hackers@FreeBSD.ORG Subject: Re: bcmp abuse in networking code ? Message-ID: <199809041810.UAA13475@labinfo.iet.unipi.it> In-Reply-To: <199809041739.OAA20958@roma.coe.ufrj.br> from "Joao Carlos Mendes Luis" at Sep 4, 98 02:39:27 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> // In my revised bridge code i have the following macros > // > // #define ETH_MATCH(a,b) ( \ ... > Indeed very good, but why not adhere to older interfaces ? SunOS and > Solaris have defined this as ether_cmp() for a long time. in principle no problem, provided they are sufficiently common... but i have two objections in practice, #1 i want it to return 1 in case of a match because it is different from bcmp and doesn't return what address is "greater", and #2 (maybe a personal preference) i would like it uppercase to make it clear that it is a macro. cheers luigi 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?199809041810.UAA13475>