Commit Graph

9 Commits

Author SHA1 Message Date
Arnout Engelen
d30c5226a0 Format source code
It appears we have failed to run `make format` in the last few
commits. Doing it now. We should really add it to CI
2023-01-09 12:39:07 +01:00
Vladimir Panteleev
92fb73116a Replace ConnList linked list with multiset
Keeping a sorted multi-set allows faster search by source /
source+destination address.

Fixes O(n^2) complexity when handling a lot of connections (now it's
O(n log n)).
2022-03-23 17:28:09 +00:00
Vladimir Panteleev
f46954525d packet: Fix matchSource not checking address family 2022-03-23 01:57:45 +00:00
Andreas Wieland
2cd523868d run make format with clang-format:
* reformats the repo as adviced in the readme
2019-06-12 15:00:40 +02:00
Hajimu UMEMOTO
a359d1bbd4 Support for FreeBSD 2016-05-16 14:46:39 +09:00
Arnout Engelen
ef74014094 Include stdio.h in packet.cpp (fixes #70)
I guess we want to think about handling output consistently anyway (iostream vs
printf, what to do when we're in library mode), but that's for later.
2016-04-14 09:07:27 +02:00
Arnout Engelen
db2da627df Don't redefine TH_FLAGS
Fixes compiler warning:

packet.cpp:127:9: warning: 'TH_FLAGS' macro redefined
        ^
/usr/include/netinet/tcp.h:103:9: note: previous definition is here
2016-03-31 07:56:09 +02:00
Arnout Engelen
8b245e1be0 Fix packet matching for packets with IPv6 addresses 2016-03-28 00:30:53 +02:00
Arnout Engelen
e7a74b00fb Move sources to 'src' directory 2016-03-27 23:14:33 +02:00