From owner-freebsd-hackers Fri Sep 4 13:06:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA24617 for freebsd-hackers-outgoing; Fri, 4 Sep 1998 13:06:54 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id NAA24561 for ; Fri, 4 Sep 1998 13:06:41 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id UAA13475; Fri, 4 Sep 1998 20:10:52 +0200 From: Luigi Rizzo Message-Id: <199809041810.UAA13475@labinfo.iet.unipi.it> Subject: Re: bcmp abuse in networking code ? To: jonny@jonny.eng.br (Joao Carlos Mendes Luis) Date: Fri, 4 Sep 1998 20:10:52 +0200 (MET DST) Cc: hackers@FreeBSD.ORG In-Reply-To: <199809041739.OAA20958@roma.coe.ufrj.br> from "Joao Carlos Mendes Luis" at Sep 4, 98 02:39:27 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > // 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