]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Consistently use the byteorder functions in the correct direction
authorasomers <asomers@FreeBSD.org>
Tue, 13 Aug 2019 16:22:43 +0000 (16:22 +0000)
committerasomers <asomers@FreeBSD.org>
Tue, 13 Aug 2019 16:22:43 +0000 (16:22 +0000)
commit433fadf2ac64df23d485f553089a0c26cdb9cc1d
treeefdbcf89062f56dbda2ead9ec9e2c3f78d35aec4
parentc2eb45216130ebf4c5d7017d9a9971577c1b4c76
Consistently use the byteorder functions in the correct direction

Though ntohs and htons are functionally identical, they have different meanings.Using the correct one helps to document the code.

Submitted by: Ján Sučan <sucanjan@gmail.com>
MFC after: 2 weeks
Sponsored by: Google, inc. (Google Summer of Code 2019)
Differential Revision: https://reviews.freebsd.org/D21219
sbin/ping6/ping6.c