Date: Sun, 21 Mar 2004 15:45:28 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: "Matthew N. Dodd" <mdodd@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net if_arcsubr.c Message-ID: <20040321144528.GF8930@darkness.comp.waw.pl> In-Reply-To: <200403210634.i2L6YYj4087193@repoman.freebsd.org> References: <200403210634.i2L6YYj4087193@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--1ugEqy3masBx2OgH Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 20, 2004 at 10:34:34PM -0800, Matthew N. Dodd wrote: +> mdodd 2004/03/20 22:34:34 PST +>=20 +> FreeBSD src repository +>=20 +> Modified files: +> sys/net if_arcsubr.c=20 +> Log: +> Handle AF_ARP. [...] +> + switch(ntohs(ah->ar_op)) { +> + case ARPOP_REVREQUEST: +> + case ARPOP_REVREPLY: +> + type =3D htons(ARCTYPE_REVARP); +> + break; +> + case ARPOP_REQUEST: +> + case ARPOP_REPLY: +> + default: +> + type =3D htons(ARCTYPE_ARP); +> + break; +> + } [...] Tinderbox is reporting failures, probably because you planned to use 'atype' here, instead of 'type', but I don't want to fix it, because I don't understand this: 'atype' is a u_int8_t, so I think htons() will transform in to '0' on some archs (e.g. i386) and I don't think it was your intention. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --1ugEqy3masBx2OgH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAXaqIForvXbEpPzQRAhysAKC3I0Gpk2fd8K9bF4guEBwPFS3r7wCeMZlO 6n9JHsa5dTJuVi7aJphAV90= =stXI -----END PGP SIGNATURE----- --1ugEqy3masBx2OgH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040321144528.GF8930>