3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-07 06:44:18 +00:00
Brooklyn/include/trace/events/udp.h
Scare Crowe 2a709f28fa Auto exploit mitigation feature
* 0day explit mitigation
* Memory corruption prevention
* Privilege escalation prevention
* Buffer over flow prevention
* File System corruption defense
* Thread escape prevention

This may very well be the most intensive inclusion to BrooklynR. This will not be part of an x86 suite nor it will be released as tool kit. The security core toolkit will remain part of kernel base.
2021-11-13 09:26:51 +05:00

33 lines
593 B
C

#undef TRACE_SYSTEM
#define TRACE_SYSTEM udp
#if !defined(_TRACE_UDP_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_UDP_H
#include <linux/udp.h>
#include <linux/tracepoint.h>
TRACE_EVENT(udp_fail_queue_rcv_skb,
TP_PROTO(int rc, struct sock *sk),
TP_ARGS(rc, sk),
TP_STRUCT__entry(
__field(int, rc)
__field(__u16, lport)
),
TP_fast_assign(
__entry->rc = rc;
__entry->lport = inet_sk(sk)->inet_num;
),
TP_printk("rc=%d port=%hu", __entry->rc, __entry->lport)
);
#endif /* _TRACE_UDP_H */
/* This part must be outside protection */
#include <trace/define_trace.h>