Skip to content

Commit 40ac38a

Browse files
committed
netdissect: improve a comment.
Describe ND_BYTES_BETWEEN() more completely, and fix the required order of the pointers.
1 parent 7a13c07 commit 40ac38a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netdissect.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ if (!ND_TTEST_LEN(p, l)) goto trunc; \
402402
#define ND_TCHECK_SIZE(p) ND_TCHECK_LEN(p, sizeof(*(p)))
403403

404404
/*
405-
* Number of bytes between two pointers, if p1 points to an address after
406-
* p2; zero otherwise.
405+
* Number of bytes between the two pointers arguments p1 and p2, with
406+
* p2 being equal to or beyond p1; if it isn't, the result is zero.
407407
*
408408
* The result must fit in a u_int; the difference is never negative,
409409
* and must be able to handle the full size of an address space, so

0 commit comments

Comments
 (0)