Update Programmable Flow Protection developer docs#29500
Open
anita-tenjarla wants to merge 1 commit intocloudflare:productionfrom
Open
Update Programmable Flow Protection developer docs#29500anita-tenjarla wants to merge 1 commit intocloudflare:productionfrom
anita-tenjarla wants to merge 1 commit intocloudflare:productionfrom
Conversation
* Update all references to rules and programs to reference UI instead of API * Add new helper functions * Update sample programs in examples
vcfxb
reviewed
Mar 31, 2026
| | Operation | Verb + Endpoint | | ||
| | --- | --- | | ||
| | Debug Packet CAPture (PCAP) | `POST /accounts/{account_id}/magic/programmable_flow_protection/configs/programs/{program_id}/pcap?ip_offset={ip_offset_value}` | No newline at end of file | ||
| | Debug Packet CAPture (PCAP) | `POST /accounts/{account_id}/magic/programmable_flow_protection/configs/programs/{program_id}/pcap` | No newline at end of file |
There was a problem hiding this comment.
Are we no longer taking IP offset in the request params?
vcfxb
reviewed
Mar 31, 2026
|
|
||
| <Steps> | ||
| 1. Write a C program and [upload it via the API](#upload-a-program). | ||
| 1. Upload your eBPF program. |
There was a problem hiding this comment.
We should still probably say "written in C" somewhere here
vcfxb
reviewed
Mar 31, 2026
Comment on lines
+139
to
+141
| Note the iphdr, ipv6hdr, and udphdr match the exact structures defined in Linux [ip.h](https://github.com/torvalds/linux/blob/master/include/uapi/linux/ip.h), [ipv6.h](https://github.com/torvalds/linux/blob/master/include/uapi/linux/ipv6.h) and [udp.h](https://github.com/torvalds/linux/blob/master/include/uapi/linux/udp.h) respectively. | ||
|
|
||
| 6. Write your custom logic. |
There was a problem hiding this comment.
Internally, we currently re-implement some of these structures -- while they should match exactly it might be good to publish that snippet of the headers in the docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
For the Programmable Flow Protection feature:
Documentation checklist