mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-22 08:16:25 -06:00
Fix verifier dislike bpf_probe
This commit is contained in:
parent
951ee4cbe5
commit
810823c8bb
@ -104,7 +104,7 @@ static __always_inline void update_heimdall(struct dissector_t *dissector, __u32
|
||||
event.tsecr = dissector->tsecr;
|
||||
if (size > PACKET_OCTET_SIZE) size = PACKET_OCTET_SIZE;
|
||||
if ((char *)dissector->start + size < dissector->end) {
|
||||
bpf_probe_read_kernel(&event.dump, size, dissector->start);
|
||||
bpf_probe_read_kernel(&event.dump, PACKET_OCTET_SIZE, dissector->start);
|
||||
}
|
||||
long err = bpf_ringbuf_output(&heimdall_events, &event, sizeof(event), 0);
|
||||
if (err != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user