diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-12-06 03:18:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-12-06 03:18:24 +0000 |
commit | 9cff0cb1375a1925a65b132304d901f3fa323796 (patch) | |
tree | d4b21450d6d5e8734aa0c0c16af0008a4e28f248 /packet-isakmp.c | |
parent | 0de40f3c42483faf969bde48e5869df06d7e1cf6 (diff) |
When dissecting the reference clock ID field:
if it's stratum 0 or 1, use "memcmp()" to compare it against the
strings in our table, rather than assuming it's aligned on a
4-byte boundary and doing an integral comparison - neither of
the strings being compared are necessarily so aligned - and, if
it doesn't match any of them, include the value in the
"Unidentified reference source" description;
if it's stratum 2 or higher, extract the value with "pntohl()"
before interpreting it as an IP address - IP addresses are in
network byte order, and, again, it's not necessarily neatly
aligned on a 4-byte boundary.
svn path=/trunk/; revision=1223
Diffstat (limited to 'packet-isakmp.c')
0 files changed, 0 insertions, 0 deletions