]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
6 years agorust/gen: turn *mut*const T into const T **
Victor Julien [Mon, 3 Jun 2019 14:21:15 +0000 (16:21 +0200)] 
rust/gen: turn *mut*const T into const T **

6 years agouserguide: Document app-layer anomaly items
Jeff Lucovsky [Sat, 1 Jun 2019 14:45:42 +0000 (07:45 -0700)] 
userguide: Document app-layer anomaly items

This changeset expands the anomaly section to include newly added
app-layer items.

6 years agoeve/logging: 2991 Optimize logging by TX
Jeff Lucovsky [Sat, 25 May 2019 20:38:45 +0000 (13:38 -0700)] 
eve/logging: 2991 Optimize logging by TX

This changeset makes changes to the TX logging path. Since the txn
is passed to the TX logger, the TX can be used directly instead of
through the TX id.

6 years agologging/anomaly: Track event log progress
Jeff Lucovsky [Tue, 21 May 2019 21:56:32 +0000 (14:56 -0700)] 
logging/anomaly: Track event log progress

This changeset adds a mechanism to track when individual events
are logged. Transactions can be provided more than once; track
events to prevent event re-logging.

6 years agoapp-layer: Extend event container with progress
Jeff Lucovsky [Tue, 21 May 2019 21:55:45 +0000 (14:55 -0700)] 
app-layer: Extend event container with progress

6 years agologging/anomaly: TX based logging addition
Jeff Lucovsky [Fri, 17 May 2019 00:11:49 +0000 (17:11 -0700)] 
logging/anomaly: TX based logging addition

6 years agoapp-layer/logging Add TX packet logging support
Jeff Lucovsky [Fri, 17 May 2019 00:10:56 +0000 (17:10 -0700)] 
app-layer/logging Add TX packet logging support

Add transactional logging support for packet based loggers, like
the anomaly logger.

6 years agoapp-layer/logging: protocol parser updates
Jeff Lucovsky [Tue, 14 May 2019 23:58:47 +0000 (16:58 -0700)] 
app-layer/logging: protocol parser updates

6 years agologging: anomaly log updates
Jeff Lucovsky [Tue, 14 May 2019 23:57:51 +0000 (16:57 -0700)] 
logging: anomaly log updates

6 years agoapp-layer: Initial app layer logging
Jeff Lucovsky [Mon, 13 May 2019 21:58:21 +0000 (14:58 -0700)] 
app-layer: Initial app layer logging

6 years agoflow: no bypass manager for Windows 3961/head
Victor Julien [Thu, 20 Jun 2019 07:16:41 +0000 (09:16 +0200)] 
flow: no bypass manager for Windows

6 years agobypass: switch to gettimeofday
Victor Julien [Wed, 19 Jun 2019 17:39:52 +0000 (19:39 +0200)] 
bypass: switch to gettimeofday

6 years agomingw: fix compile error
Victor Julien [Tue, 18 Jun 2019 13:58:36 +0000 (15:58 +0200)] 
mingw: fix compile error

Declare _POSIX_C_SOURCE before sys/time.h to avoid:

util-time.c: In function 'SCUtcTime':
util-time.c:222:12: error: implicit declaration of function 'gmtime_r'; did you mean 'gmtime_s'? [-Werror=implicit-function-declaration]
  222 |     return gmtime_r(&timep, result);
      |            ^~~~~~~~
      |            gmtime_s
util-time.c:222:12: warning: returning 'int' from a function with return type 'struct tm *' makes pointer from integer without a cast [-Wint-conversion]
  222 |     return gmtime_r(&timep, result);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
util-time.c: In function 'SCLocalTime':
util-time.c:305:9: error: implicit declaration of function 'localtime_r'; did you mean 'localtime_s'? [-Werror=implicit-function-declaration]
  305 |         localtime_r(&timep, &cached_local_tm[lru]);
      |         ^~~~~~~~~~~
      |         localtime_s
util-time.c:321:56: warning: comparison between pointer and integer
  321 |         if (localtime_r(&timep, &cached_local_tm[lru]) == NULL)
      |                                                        ^~
cc1.exe: some warnings being treated as errors

Tickets: #2994 #3051

6 years agodoc: address norg comments on eBPF doc 3952/head
Eric Leblond [Fri, 14 Jun 2019 20:08:51 +0000 (22:08 +0200)] 
doc: address norg comments on eBPF doc

6 years agodoc: specify config file in ebpf doc
Eloïse Brocas [Wed, 12 Jun 2019 09:37:10 +0000 (11:37 +0200)] 
doc: specify config file in ebpf doc

This patch updates the ebpf-xdp.rst file to specify which
configuration file has to be modified.

6 years agoutil-ebpf: fix creation of flow from pinned maps
Eric Leblond [Wed, 12 Jun 2019 00:52:56 +0000 (02:52 +0200)] 
util-ebpf: fix creation of flow from pinned maps

6 years agoaf-packet: xdp pinned maps need to be read
Eric Leblond [Tue, 11 Jun 2019 22:43:47 +0000 (00:43 +0200)] 
af-packet: xdp pinned maps need to be read

6 years agoflow-bypass: registration of non periodic check
Eric Leblond [Tue, 11 Jun 2019 22:40:23 +0000 (00:40 +0200)] 
flow-bypass: registration of non periodic check

This patch adds the capability to register a set of functions
without providing a periodic check function. This permit to
run a task only at init.

6 years agoflow-hash: real hash computation for FlowKey
Eric Leblond [Tue, 11 Jun 2019 21:38:55 +0000 (23:38 +0200)] 
flow-hash: real hash computation for FlowKey

6 years agoutil-ebpf: log bypassed flow maps count
Eric Leblond [Tue, 11 Jun 2019 21:38:25 +0000 (23:38 +0200)] 
util-ebpf: log bypassed flow maps count

6 years agodoc: info for new bypass counters
Eric Leblond [Tue, 11 Jun 2019 21:01:22 +0000 (23:01 +0200)] 
doc: info for new bypass counters

6 years agobypass: add counter for local captured bypass
Eric Leblond [Tue, 11 Jun 2019 20:21:45 +0000 (22:21 +0200)] 
bypass: add counter for local captured bypass

Packets from captured bypassed flows that are received by Suricata
before the capture method start to bypass them can represent an
important part due to various buffer and insertion delay.

This patch adds a two counters to know the number of packets and
bytes in this case.

6 years agobypass: flow bypass is not ebpf only
Eric Leblond [Tue, 11 Jun 2019 20:05:59 +0000 (22:05 +0200)] 
bypass: flow bypass is not ebpf only

6 years agoutil-ebpf: early exit if no map
Eric Leblond [Tue, 11 Jun 2019 20:05:34 +0000 (22:05 +0200)] 
util-ebpf: early exit if no map

6 years agoutil-ebpf: reindex
Eric Leblond [Tue, 11 Jun 2019 18:30:14 +0000 (20:30 +0200)] 
util-ebpf: reindex

6 years agoaf-packet: some conditional fields
Eric Leblond [Tue, 11 Jun 2019 14:53:28 +0000 (16:53 +0200)] 
af-packet: some conditional fields

6 years agodoc: update bypass stats doc
Eric Leblond [Mon, 10 Jun 2019 21:20:25 +0000 (23:20 +0200)] 
doc: update bypass stats doc

6 years agobypass: bytes and pkts counters for local bypass
Eric Leblond [Mon, 10 Jun 2019 20:48:10 +0000 (22:48 +0200)] 
bypass: bytes and pkts counters for local bypass

6 years agoaf-packet: better accounting and error handling
Eric Leblond [Mon, 10 Jun 2019 14:40:47 +0000 (16:40 +0200)] 
af-packet: better accounting and error handling

This patch improves the bypass error handling add adds more counters
to the interface so it is possible to get a view on success and
failure of insertion in the eBPF maps via the `iface-bypassed-stat`
command.

6 years agoutil-ebpf: optimization on flow storage queries
Eric Leblond [Mon, 10 Jun 2019 12:55:20 +0000 (14:55 +0200)] 
util-ebpf: optimization on flow storage queries

6 years agoutil-ebpf: simplify free function
Eric Leblond [Mon, 10 Jun 2019 10:23:11 +0000 (12:23 +0200)] 
util-ebpf: simplify free function

First key can't be null.

6 years agoutil-ebpf: set livedev in flow
Eric Leblond [Mon, 10 Jun 2019 10:18:21 +0000 (12:18 +0200)] 
util-ebpf: set livedev in flow

This will fix the accounting for pinned maps as the livedev field
of Flow is used to do the accounting of bypass flows.

6 years agoutil-device: introduce bypassed stats sub function
Eric Leblond [Mon, 10 Jun 2019 10:11:43 +0000 (12:11 +0200)] 
util-device: introduce bypassed stats sub function

6 years agoflow-manager: move bypass timeout to a inline func
Eric Leblond [Mon, 10 Jun 2019 09:45:33 +0000 (11:45 +0200)] 
flow-manager: move bypass timeout to a inline func

6 years agoutil-ebpf: case is not possible so remove warning
Eric Leblond [Sun, 9 Jun 2019 23:11:17 +0000 (01:11 +0200)] 
util-ebpf: case is not possible so remove warning

6 years agobypass: implement iface-bypassed-stat for callback
Eric Leblond [Sun, 9 Jun 2019 22:55:17 +0000 (00:55 +0200)] 
bypass: implement iface-bypassed-stat for callback

6 years agobypass: account callback method in stats
Eric Leblond [Sun, 9 Jun 2019 22:03:57 +0000 (00:03 +0200)] 
bypass: account callback method in stats

6 years agobypass: restore interface counter
Eric Leblond [Sun, 9 Jun 2019 21:32:36 +0000 (23:32 +0200)] 
bypass: restore interface counter

6 years agobypass: compress flow keys structure
Eric Leblond [Sun, 9 Jun 2019 21:00:53 +0000 (23:00 +0200)] 
bypass: compress flow keys structure

6 years agoebpf: get rid of hash in map value
Eric Leblond [Sun, 9 Jun 2019 20:09:42 +0000 (22:09 +0200)] 
ebpf: get rid of hash in map value

6 years agobypass: new callback stragegy
Eric Leblond [Sat, 8 Jun 2019 16:11:22 +0000 (18:11 +0200)] 
bypass: new callback stragegy

This patch introduces and uses a new bypass strategy
based on a callback. EBPF bypass implementation is
updated to use this new strategy.

Once the flow manager detect that a flow should be timeouted,
it asks the capture method if it has seen packets in the interval.
If it is the case the lastts of the flow is updated and the timeout
is postponed.

6 years agoaf-packet: improve error handling for some hw
Eric Leblond [Wed, 5 Jun 2019 21:33:17 +0000 (23:33 +0200)] 
af-packet: improve error handling for some hw

Some cards seems to return EAGAIN when there is no more place in
the hash table.

6 years agobypass: fix accounting
Eric Leblond [Wed, 5 Jun 2019 13:12:13 +0000 (15:12 +0200)] 
bypass: fix accounting

The flow bypass stats is computed at every pass so the accounting
needs to be done at each pass. This patch fixes the accounting
in the flow_bypassed counters.

6 years agoebpf: only display that file is loaded if we do it
Eric Leblond [Tue, 4 Jun 2019 14:22:52 +0000 (16:22 +0200)] 
ebpf: only display that file is loaded if we do it

6 years agoaf-packet: avoid error flooding when bypass fails
Eric Leblond [Tue, 4 Jun 2019 12:48:03 +0000 (14:48 +0200)] 
af-packet: avoid error flooding when bypass fails

6 years agoutil-ebpf: more useful error message
Eric Leblond [Tue, 4 Jun 2019 11:49:32 +0000 (13:49 +0200)] 
util-ebpf: more useful error message

At the time of the writing, libbpf output useful error message
on strdout only and errno is not really interesting. So let's
tell user to look at stdout.

6 years agoebpf: don't use nexthdr to build hash
Eric Leblond [Sat, 1 Jun 2019 15:04:40 +0000 (17:04 +0200)] 
ebpf: don't use nexthdr to build hash

As pointed by Victor Julien, it is not a good idea to use the
nexthdr value, as init key for the hash as it could contain some
other headers and can be changed for a session.

6 years agoutil-ebpf: improve code readability
Eric Leblond [Fri, 31 May 2019 11:20:34 +0000 (13:20 +0200)] 
util-ebpf: improve code readability

As pointed by Victor Julien, the pkts_cnt usage was quite confusing
so functions are now returning a bool.

6 years agoutil-ebpf: discard flow if no Flow storage
Eric Leblond [Fri, 31 May 2019 10:58:50 +0000 (12:58 +0200)] 
util-ebpf: discard flow if no Flow storage

6 years agodoc: document flow event_type
Eric Leblond [Tue, 28 May 2019 21:54:08 +0000 (23:54 +0200)] 
doc: document flow event_type

6 years agoutil-ebpf: fix ebpf bypass
Eric Leblond [Tue, 28 May 2019 21:10:53 +0000 (23:10 +0200)] 
util-ebpf: fix ebpf bypass

Fix endian order in eBPF bypass. It has to be updated after the
bypassed flows handling change.

6 years agobypass: fix wait time at exit
Eric Leblond [Tue, 28 May 2019 10:26:23 +0000 (12:26 +0200)] 
bypass: fix wait time at exit

The loop on bypassed flow maps can take a few seconds on heavily
loaded system causing Suricata to not honor a stop before a few
seconds.

This patch adds the code needed to detect the need to exit from
the check loop.

6 years agoaf-packet: fix use after free on config
Eric Leblond [Sun, 26 May 2019 21:44:03 +0000 (23:44 +0200)] 
af-packet: fix use after free on config

ASAN did find that afp config was used after free. This was in
fact done in the Flow bypass manager hence this patch.

6 years agobypass: allow bypass for packet without flow
Eric Leblond [Sat, 25 May 2019 14:04:03 +0000 (16:04 +0200)] 
bypass: allow bypass for packet without flow

For capture method that have their own flow structure (not maintained
by Suricata), it can make sense to bypass a packet even if there is
no Flow in Suricata.

For AF_PACKET it does not make sense as the eBPF map entry will
be destroyed as soon as it will be checked by the flow bypass
manager. Thus we shortcut the bypass function if ever no Flow is
attached to the packet.

This path also removes reference to Flow in the bypass functions
for AF_PACKET. It was not necessary and we possibly could benefit
of it if ever we change the bypass algorithm.

6 years agoebpf: fix bypass filter vlan
Eric Leblond [Sun, 19 May 2019 10:37:58 +0000 (12:37 +0200)] 
ebpf: fix bypass filter vlan

6 years agodoc: update ebpf doc following bypass_filter change
Eric Leblond [Fri, 17 May 2019 18:01:36 +0000 (20:01 +0200)] 
doc: update ebpf doc following bypass_filter change

6 years agoebpf: complete vlan support for ebpf bypass filter
Eric Leblond [Fri, 17 May 2019 17:55:39 +0000 (19:55 +0200)] 
ebpf: complete vlan support for ebpf bypass filter

6 years agodoc: update for latest xdp_filter.c change
Eric Leblond [Sun, 12 May 2019 07:52:51 +0000 (09:52 +0200)] 
doc: update for latest xdp_filter.c change

6 years agobypass: use flow storage for bypass counter
Eric Leblond [Sun, 24 Mar 2019 18:47:02 +0000 (19:47 +0100)] 
bypass: use flow storage for bypass counter

There is a synchronization issue occuring when a flow is
added to the eBPF bypass maps. The flow can have packets
in the ring buffer that have already passed the eBPF stage.
By consequences, they are not accounted in the eBPF counter
but are accounted by Suricata flow engine.

This was causing counters to be completely wrong. This code
fixes the issue by avoiding the counter change in invalid
case.

To avoid adding 4 64bits integers to the Flow structure for the
bypass accounting, we use instead a FlowStorage. This limits the
memory usage to the size of a pointer.

6 years agoebpf: add vlan tracking option to xdp_filter
Eric Leblond [Sat, 11 May 2019 09:43:59 +0000 (11:43 +0200)] 
ebpf: add vlan tracking option to xdp_filter

If vlan is not use for tracking in Suricata this result in vlan not
being used in the flow key in Suricata and we need to adjust that
in the XDP filter to avoid any problem.

6 years agoebpf: tls encrypted bypass in xdp_filter
Eric Leblond [Sat, 11 May 2019 09:14:23 +0000 (11:14 +0200)] 
ebpf: tls encrypted bypass in xdp_filter

Tests have shown that when we bypass encrypted traffic a non
neglicteable amount of encrypted  packets of the session are already in the
capture ring buffer. Result is that Suricata is doing unnecessary
work on these packets.

These packets can be identified via the first bytes of their payloads
so we can bypass them directly in the XDP code. This is done here
for application data packets on port 443 and for TLS 1.2.

6 years agoebpf: fix UDP bypass in xdp_filter
Eric Leblond [Sat, 11 May 2019 09:09:40 +0000 (11:09 +0200)] 
ebpf: fix UDP bypass in xdp_filter

6 years agoebpf: fix typo in xdp_filter.c comment
Eric Leblond [Tue, 23 Apr 2019 08:51:05 +0000 (10:51 +0200)] 
ebpf: fix typo in xdp_filter.c comment

6 years agobypass: generalize iface bypass stats
Eric Leblond [Tue, 23 Apr 2019 07:40:47 +0000 (09:40 +0200)] 
bypass: generalize iface bypass stats

Introduce functions in util-device.c to be able to manage the
flow bypassed count stats.

6 years agoebpf: add comment for some define in XDP filter
Eric Leblond [Sun, 21 Apr 2019 18:57:03 +0000 (20:57 +0200)] 
ebpf: add comment for some define in XDP filter

6 years agoebpf: remove useless var in xdp_filter
Eric Leblond [Sat, 23 Mar 2019 09:44:51 +0000 (10:44 +0100)] 
ebpf: remove useless var in xdp_filter

6 years agoutil-ebpf: change flow accounting logic
Eric Leblond [Sat, 23 Mar 2019 09:40:33 +0000 (10:40 +0100)] 
util-ebpf: change flow accounting logic

Update the flow counters during the life of a bypassed flow
instead of just accounting at the end of it.

6 years agoutil-ebpf: better error handling
Eric Leblond [Sun, 17 Mar 2019 20:11:25 +0000 (21:11 +0100)] 
util-ebpf: better error handling

6 years agoutil-ebpf: better error handling of map unlink
Eric Leblond [Sun, 17 Mar 2019 20:07:51 +0000 (21:07 +0100)] 
util-ebpf: better error handling of map unlink

6 years agoutil-ebpf: rename field 'unlink' to avoid confusion
Eric Leblond [Sun, 17 Mar 2019 20:00:50 +0000 (21:00 +0100)] 
util-ebpf: rename field 'unlink' to avoid confusion

6 years agoaf-packet: improve warning message
Eric Leblond [Sun, 17 Mar 2019 19:58:42 +0000 (20:58 +0100)] 
af-packet: improve warning message

6 years agoaf-packet: rename option 'no-percpu-hash'
Eric Leblond [Sun, 17 Mar 2019 19:50:29 +0000 (20:50 +0100)] 
af-packet: rename option 'no-percpu-hash'

6 years agoaf-packet: warn when XDP is not supported
Eric Leblond [Sun, 17 Mar 2019 19:34:52 +0000 (20:34 +0100)] 
af-packet: warn when XDP is not supported

6 years agoaf-packet: remove question from code
Eric Leblond [Sun, 17 Mar 2019 19:32:39 +0000 (20:32 +0100)] 
af-packet: remove question from code

6 years agoflow-bypass: rename variables
Eric Leblond [Sun, 17 Mar 2019 19:24:58 +0000 (20:24 +0100)] 
flow-bypass: rename variables

6 years agoflow-hash: doc and code cleaning
Eric Leblond [Sun, 17 Mar 2019 19:22:55 +0000 (20:22 +0100)] 
flow-hash: doc and code cleaning

6 years agoflow-bypass: clock_gettime error handling
Eric Leblond [Sun, 17 Mar 2019 19:00:04 +0000 (20:00 +0100)] 
flow-bypass: clock_gettime error handling

Only reason clock_gettime could fail is a permission so let's
error and leave the flow bypass manager if it is the case.

Also let's suppress the error message if ever the error appear in
the middle of a run (which is unlikely).

6 years agoutil-ebpf: log level fixes and code cleaning
Eric Leblond [Sun, 17 Mar 2019 18:51:14 +0000 (19:51 +0100)] 
util-ebpf: log level fixes and code cleaning

6 years agoutil-ebpf: init code optimization
Eric Leblond [Sun, 17 Mar 2019 18:45:58 +0000 (19:45 +0100)] 
util-ebpf: init code optimization

6 years agoconfigure: libbpf path
Eric Leblond [Wed, 13 Mar 2019 08:01:04 +0000 (09:01 +0100)] 
configure: libbpf path

6 years agoebpf: reindent xdp_filter.c
Eric Leblond [Sun, 10 Mar 2019 19:47:06 +0000 (20:47 +0100)] 
ebpf: reindent xdp_filter.c

6 years agodoc: improve ebpf doc
Eric Leblond [Sun, 10 Mar 2019 15:58:25 +0000 (16:58 +0100)] 
doc: improve ebpf doc

Add example of bypass rules and explain clang dependency.

6 years agodoc: document netronome hardware bypass usage
Eric Leblond [Sat, 9 Mar 2019 23:01:39 +0000 (00:01 +0100)] 
doc: document netronome hardware bypass usage

6 years agoutil-ebpf: fix error reported by coccinelle check
Eric Leblond [Sun, 10 Mar 2019 10:53:22 +0000 (11:53 +0100)] 
util-ebpf: fix error reported by coccinelle check

Some allocation errors were not checked during init phase.

6 years agoaf-packet: add vlan_id in bypass key
Eric Leblond [Sat, 9 Mar 2019 20:47:40 +0000 (21:47 +0100)] 
af-packet: add vlan_id in bypass key

Bypassing on vlan was not supported due to the missing key.

6 years agoebpf: fix percpu hash handling
Eric Leblond [Sat, 9 Mar 2019 14:13:26 +0000 (15:13 +0100)] 
ebpf: fix percpu hash handling

An alignement issue was preventing the code to work properly.
We introduce macros taken from Linux source code sample to get
something that should work on the long term.

6 years agoflow-bypass: increase bypass timeout
Eric Leblond [Tue, 5 Mar 2019 23:16:33 +0000 (00:16 +0100)] 
flow-bypass: increase bypass timeout

This is needed as we did switch from counter maintained in kernel
to internal polling so we need a bigger value.

6 years agoflow-bypass: fix timeout of maps bypassed flows
Eric Leblond [Tue, 5 Mar 2019 22:54:36 +0000 (23:54 +0100)] 
flow-bypass: fix timeout of maps bypassed flows

The time is taken from the parameter and is checked against real
flow entries so we need a standard time.

6 years agoutil-ebpf: fix IPv6 deletion loop
Eric Leblond [Tue, 5 Mar 2019 22:28:26 +0000 (23:28 +0100)] 
util-ebpf: fix IPv6 deletion loop

6 years agoaf-packet: fix bypass for IPv6
Eric Leblond [Tue, 5 Mar 2019 22:12:12 +0000 (23:12 +0100)] 
af-packet: fix bypass for IPv6

6 years agoutil-ebpf: add message if key deletion fails
Eric Leblond [Tue, 5 Mar 2019 21:09:29 +0000 (22:09 +0100)] 
util-ebpf: add message if key deletion fails

6 years agoutil-ebpf: can't delete in place so update algo
Eric Leblond [Mon, 4 Mar 2019 23:44:11 +0000 (00:44 +0100)] 
util-ebpf: can't delete in place so update algo

6 years agoaf-packet: fix default in pinned maps name
Eric Leblond [Mon, 4 Mar 2019 22:34:04 +0000 (23:34 +0100)] 
af-packet: fix default in pinned maps name

6 years agoaf-packet: be sure to nullify option if not set
Eric Leblond [Mon, 4 Mar 2019 22:18:36 +0000 (23:18 +0100)] 
af-packet: be sure to nullify option if not set

6 years agoutil-ebpf: simplify function declarations
Eric Leblond [Mon, 4 Mar 2019 21:37:50 +0000 (22:37 +0100)] 
util-ebpf: simplify function declarations

6 years agoutil-ebpf: micro optimization
Eric Leblond [Mon, 4 Mar 2019 21:17:50 +0000 (22:17 +0100)] 
util-ebpf: micro optimization

6 years agoutil-ebpf: create flow from bypassed flows
Eric Leblond [Sun, 3 Mar 2019 23:11:36 +0000 (00:11 +0100)] 
util-ebpf: create flow from bypassed flows

6 years agoflow-hash: new function to get flow from flowkey
Eric Leblond [Sun, 3 Mar 2019 23:10:54 +0000 (00:10 +0100)] 
flow-hash: new function to get flow from flowkey

6 years agoebpf: make table iterator generic
Eric Leblond [Sun, 3 Mar 2019 20:06:53 +0000 (21:06 +0100)] 
ebpf: make table iterator generic

Also adds a basic skeleton for flow creation loop.

6 years agoaf-packet: bypass with init function
Eric Leblond [Sun, 3 Mar 2019 19:42:06 +0000 (20:42 +0100)] 
af-packet: bypass with init function