aboutsummaryrefslogtreecommitdiffstats
path: root/lib/collect.c
Commit message (Collapse)AuthorAgeFilesLines
* Prevent packet bursting by skipping consecutive onesYunchih Chen2019-03-071-1/+3
| | | | | | If a process (using the same source port) keeps transmitting packets, only insert a log at the end of a time interval
* Minor formatting and copyrightYunchih Chen2019-03-071-2/+3
|
* sqlite3 rewriteYunchih Chen2019-03-071-126/+62
| | | | | | This rewrite intends to simplifies previous design by hosting the storage in sqlite database instead of counting on individual log files.
* Old unfinished modificationsYunchih Chen2018-11-231-3/+3
|
* Checksum in a simple wayYunchih Chen2018-08-301-0/+3
| | | | Otherwise, cksum value mysteriously differs ...
* Add raw_size field into headerYunchih Chen2018-04-281-0/+1
|
* Move netlink socket initialization into separate functionYunchih Chen2018-04-281-36/+41
|
* Fix possible NULL pointer returned by nflog_bind_groupYunchih Chen2018-03-211-0/+6
|
* Simplify variable assignmentsYunchih Chen2018-03-201-7/+5
|
* Batch kernel -> userspace packet deliveryYunchih Chen2018-03-201-6/+8
| | | | | | To reduce #syscall, configure libnetfilter to send packet in batch via netlink. In this way, we also have more effective rate-limitating because the batchly-sent packets will get same timestamp.
* Add simple rate-limitingYunchih Chen2018-03-201-4/+32
|
* Minimize nflog netlink socket receive bufferYunchih Chen2018-03-201-1/+4
| | | | | We only read the meta data and the packet header and ignore packet payload
* Remove pthread cancellation pointsYunchih Chen2018-03-201-3/+0
|
* Add comments && formattingYunchih Chen2018-03-201-3/+3
|
* Consistent variable / type namingYunchih Chen2018-03-181-18/+18
|
* Add header checksumYunchih Chen2018-03-181-0/+3
|
* Fix committer bugYunchih Chen2018-03-171-7/+6
|
* Apply clang-format changesYunchih Chen2018-03-051-25/+30
|
* Switch to new project layoutYunchih Chen2018-03-051-0/+236