Date: Fri, 14 Apr 2017 14:55:15 +0300 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: Ed Schouten <ed@nuxi.nl> Cc: src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r316825 - head/sys/netpfil/ipfw Message-ID: <0be15fbe-ede3-804f-e844-dd75beef69ab@yandex.ru> In-Reply-To: <CABh_MKn%2BCZ=xfQJP4UKfQjQCMNVzGw0tAS99RLZRYS5X14B3pg@mail.gmail.com> References: <201704141141.v3EBf9MC097085@repo.freebsd.org> <CABh_MKn%2BCZ=xfQJP4UKfQjQCMNVzGw0tAS99RLZRYS5X14B3pg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MGD7QnffHXeINlkLRMdWm5h7vgjNVh2Be Content-Type: multipart/mixed; boundary="VpFmwvFChMvEMHVqLwMkR4hVKeNccDpiX"; protected-headers="v1" From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: Ed Schouten <ed@nuxi.nl> Cc: src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: <0be15fbe-ede3-804f-e844-dd75beef69ab@yandex.ru> Subject: Re: svn commit: r316825 - head/sys/netpfil/ipfw References: <201704141141.v3EBf9MC097085@repo.freebsd.org> <CABh_MKn+CZ=xfQJP4UKfQjQCMNVzGw0tAS99RLZRYS5X14B3pg@mail.gmail.com> In-Reply-To: <CABh_MKn+CZ=xfQJP4UKfQjQCMNVzGw0tAS99RLZRYS5X14B3pg@mail.gmail.com> --VpFmwvFChMvEMHVqLwMkR4hVKeNccDpiX Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 14.04.2017 14:52, Ed Schouten wrote: > Hi there, >=20 > 2017-04-14 13:41 GMT+02:00 Andrey V. Elsukov <ae@freebsd.org>: >> - memcpy(&tent->k, &xn->addr6.sin6_addr, sizeof(struct i= n6_addr)); >> + memcpy(&tent->k.addr6, &xn->addr6.sin6_addr, >> + sizeof(struct in6_addr)); >=20 > In this case the code could be abbreviated by simply using assignment, = right? >=20 > tent->k.addr6 =3D xn->addr6.sin6_addr; Yes. --=20 WBR, Andrey V. Elsukov --VpFmwvFChMvEMHVqLwMkR4hVKeNccDpiX-- --MGD7QnffHXeINlkLRMdWm5h7vgjNVh2Be Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAljwuKMACgkQAcXqBBDI oXrPiAgAnu+BGS9OaGl1IgS33+keDSowl70bhtxUup2D/TKWY7Lb4aGDKFX/qsnF dNQw1xKUqGPnmKIFs9QJ6nb+uEzbBkiXbVuyDqkgBzvnt3EorKA9FL1HGMBe3AKY XpSW9T4fhZ9TzCUfmgp6hiY9jbzMb8agsOMu2QgLzZ8D/EAVMdR3wKdqeO/ZSJUe CRuyoW785Ojo4CU2HyptdVh8eA93zwXRUe+e2B8837IqHoDAayAnOgT3ivdRs/5k jMogTRRWUDSsZao9Gh4Hoao6ribg0No859deZOIevHXZ087qRRAxLSY3ISO11DlD EBBW5KnC8s9T/rdmxtUUyzN1nyqMBQ== =qy0D -----END PGP SIGNATURE----- --MGD7QnffHXeINlkLRMdWm5h7vgjNVh2Be--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0be15fbe-ede3-804f-e844-dd75beef69ab>