Direct assignments to C integer array members are in host endianness,
so preserve network endianness of a value returned by getnameinfo().
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 75336 Build 72219: arc lint + arc unit
Event Timeline
| usr.sbin/mtest/mtest.c | ||
|---|---|---|
| 162 | Emm, the internet addresses ( in this case both a4 and a6 ) shall always be stored with network byte order. So is this extra ntohl really required ? | |
Comment Actions
Good catch, this was being munged elsewhere. The ntohl() for the 0x0000FFFF component is definitely needed.