History log of /external/tcpdump/print-nflog.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1e934293342295d33b11ccc6e9c132139aef2788 10-May-2016 Aurimas Liutikas <aurimas@google.com> Clean up version test.

!(nfhdr->nflog_version) is equivalent to (nfhdr->nflog_version == 0).

That will evaluate to 1 if nfhdr->nflog_version is 0 and to 0 otherwise.

So !(nfhdr->nflog_version) == 0 is equivalent to nfhdr->nflog_version != 0,
but 1) it's more obvious what it means and 2) compilers don't point out
that it may not mean what you intended.

Upstream patch https://github.com/the-tcpdump-group/tcpdump/commit/39e332e70d48995195d271cabd459894e4713d64

Change-Id: I71bd5c506082e8494661dcdffdb3e0b8e5fe9863
/external/tcpdump/print-nflog.c
892a68bdf2f50b40781212e4d7ee7369c8165953 19-Oct-2015 Elliott Hughes <enh@google.com> Upgrade to tcpdump 4.7.4.

Bug: http://b/24902618
Change-Id: I7c3605015d90453b0a8c339b1774e285796f8775
/external/tcpdump/print-nflog.c
53f17a9db278d33517d9888dd77848f554522a38 12-Feb-2014 JP Abgrall <jpa@google.com> Merge remote-tracking branch 'goog/tcpdump'

* goog/tcpdump: (3066 commits)
Remove old version. Getting ready for new tcpdump 4.5
Support -Q for setting the capture direction.
Clean up the TLV processing loop.
With -A and -AA, don't send CRs to the standard output.
Use the new libpcap <pcap/nflog.h> for NFLOG definitions and declarations.
Do our own isascii(), isprint(), isgraph(), and toascii().
Fix a compiler warning.
Don't use the __attribute__((packed)) on most platforms.
The interval in an AODV HELLO extension is not aligned on a 4-byte boundary.
As with memcpy, so with memcmp.
More UNALIGNED_MEM{CPY,CMP} on IP addresses.
Another case where UNALIGNED_MEMCPY() is probably necessary.
No need for casting back and forth.
Only do the unaligned_mem{cpy,cmp} hack if necessary.
No need to declare unaligned_mem{cpy,cmp} in netdissect.h *and* interface.h.
More possibly-unaligned memcpy()s and assignments - use unaligned_memcpy().
Check for compiling for IPv6; don't check whether we can create an IPv6 socket.
Use unaligned_memcmp() to compare with IPv{4,6} addresses in a packet.
Use EXTRACT_nBITS even when just testing against zero.
Fix some more unaligned accesses.
...

Change-Id: I9e98707d30c989b9e32dcd5af798bd0746ab4434
/external/tcpdump/print-nflog.c