I would like to know if it's possible to completely remove a packet payload from a packet inside a .p4 program or at least modify it to random data. The reason behind this is that I'm cloning a packet and sending it to a different host (monitor) and this host does not need the packets payload.
Can I remove a packet payload inside a .p4 program?
537 Views Asked by Henrique Becker Brum At
1
There are 1 best solutions below
Related Questions in NETWORK-PROGRAMMING
- "(Reason: CORS header ‘Access-Control-Allow-Origin’ missing)" while trying to access Actix webserver from Wix site
- My server TCP doesn't receive messages from the client in C
- I am currently trying to implement a rudimentary firewall from a video I watched but the nimda worm detection is not working and i do not know why?
- Is there a way to trigger a network buffer flush in Python?
- Redirect outbound traffic to a different port
- Post request response time spikes
- How to connect docker container to vpn site to site
- EADDRNOTAVAIL Node JS
- How to handle Okhttp3 POST Failing after changing location? Roaming issue?
- Why my message doesn't write into the socket when I try to read the response after sending it?
- Networkx Multiple Circular Layouts Combined Together
- trivial socket program failing at accept() with errno 22
- getaddrinfo() returning unexpected results
- JmDNS create() function not working on my device
- What C code will determine the network adapter being used by an open socket?
Related Questions in SWITCHING
- Can not switch camera while recording with camera plugin, setDescription working but preview doesn't change
- How do I know when the dsa_loop and dsa_loop_bdinfo linux kernel modules are working?
- Handling Ansible prompt validation with netcommon.cli
- TACACS+ Deployment Issue on HPE 5120 Switches: Active User Sessions Prevent Configuration
- NextJS intl set wrong font changing locale
- How to implement multicast/broadcast function in omnet++ inet switch model?
- Switching block PNGs in PyGame
- Phantom MEASURE value in Table
- Dynamic Layout Cloning
- How to switch routing protocol midway from aodv to olsr in ns3?
- Hybrid OF Ports on Allied Telesis Switches
- Simulating Memristors and RRAM in Silvaco: Exploring I-V Hysteresis and Oxygen Vacancy Effects
- Not able to switch between activities in android studio
- Thread creation and implementation of mutual exclusion by use switching
- Do UDP/TCP packets get sent to router/firewall if its on same network segment of same switch?
Related Questions in P4-LANG
- How to debug P4 Mininet switches?
- P4 Simple switch for linking two VMs
- grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC
- P4 tutorials/basic make run : No module named 'p4'
- Compile a p4 file in mininet
- Can I remove a packet payload inside a .p4 program?
- What does the current(0,4) mean in parser.p4?
- Viewing P4 packet counter
- How can I read bmv2 queueing state with P4 language?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Depends on what are you trying to do. If you would like to remove the some kind of header then it's enough to call
if you call that in Egress it should remove fields of the header from the packet. If you have len fields in headers you might also use
when you know the size of packet without payload. If you already know easier option please share it here.