]> The Tcpdump Group git mirrors - tcpdump/commit
From Noritoshi Demizu: memcmp() returns a value = 0 if the two memory
authorguy <guy>
Sun, 16 Oct 2005 06:05:03 +0000 (06:05 +0000)
committerguy <guy>
Sun, 16 Oct 2005 06:05:03 +0000 (06:05 +0000)
commit463199df7a8a5218ada2009d56cc0656a60b3924
tree77dd88a2055e9c553378aaf3d78e580b17c9893c
parent634d7985341ac3650e1337b166320b851f627fe7
From Noritoshi Demizu: memcmp() returns a value = 0 if the two memory
regions are =, < 0 if the first memory region is < the second, or > 0 if
the first memory region is > the second, so to check whether two memory
regions are equal, check whether memcmp()'s return value is == 0.
print-tcp.c