<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Programmable Filter on BIFIT Mitigator</title>
    <link>https://docs.mitigator.ru/v26.04/en/kb/bpf/</link>
    <description>Recent content in Programmable Filter on BIFIT Mitigator</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language><atom:link href="https://docs.mitigator.ru/v26.04/en/kb/bpf/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Example: MCR UDP</title>
      <link>https://docs.mitigator.ru/v26.04/en/kb/bpf/tutorial/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.04/en/kb/bpf/tutorial/</guid>
      <description>This is a step‑by‑step example of how to write an MCR countermeasure with UDP authentication (protocol description) to get hands‑on experience with BPF countermeasure programming. The final program will be under 100 lines of code.
You will need:
MITIGATOR v20.06 or higher. Ability to run commands from the terminal. Basic knowledge of the C language (explanations will be provided as we go). Understanding that packets have protocols, headers, and payloads. Environment Setup Any operating system will work, but Linux is recommended.</description>
    </item>
    <item>
      <title>BPF Guide</title>
      <link>https://docs.mitigator.ru/v26.04/en/kb/bpf/api/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.04/en/kb/bpf/api/</guid>
      <description>API Documentation Overview Programs are loaded into MITIGATOR as ELF object files. They can use the API functions from mitigator_bpf.h (download).
The compatibility policy applies to BPF.
A minimal program must place metadata and code into the correct sections of the object file using macros:
#include &amp;#34;mitigator_bpf.h&amp;#34; ENTRYPOINT enum Result program(Context ctx) { return RESULT_PASS; } PROGRAM_DISPLAY_ID(&amp;#34;Example v0.1&amp;#34;) Typically, programs are written in C and compiled with clang (EBPF support added in GCC 10).</description>
    </item>
  </channel>
</rss>