Comments (3)
TCP options are very similar to IPv4 options AFAIK. So I invite you to take a look at the TLV parsing example in this repo: https://github.com/p4lang/tutorials/tree/master/examples/TLV_parsing
Please be sure to read the README for that example, as there is one important caveat.
from tutorials.
Really sorry about the other tow duplicate posts,I thought there were different people maintain different repositories .
There are a some details about the P4 source code confusing me
-
(line 96) header ipv4_option_NOP_t ipv4_option_NOP[3];
why the array count is3
? can other number work ? -
(line 137、144) extract(ipv4_option_EOL[next]);
what doesnext
mean?
Appreciate your help , thank you .
John.
from tutorials.
-
You have to pick a size for the array / stack, which will be the maximum number of NOP options in any given packet. You can choose any number that works for you, keeping in mind that in real hardware a higher number would mean more resources utilized.
-
The answer should be in the P4_14 spec.
from tutorials.
Related Issues (20)
- VM Image link issue HOT 9
- VM installation issue HOT 4
- Run the p4c tests HOT 3
- Issue with p4lang tutorials/exercises/basic HOT 2
- error:Invalid JSON file: build/ HOT 1
- xxx.p4.p4info.txt is empty HOT 2
- doubt HOT 1
- Incorrect output when using HashAlgorithm.crc16_custom consecutive times HOT 1
- [build error]When I want to compile the ECN project,error interrupt after I input 'make' command HOT 1
- running bmv2 on DPU BlueField-2 HOT 5
- MRI example,how does the P4 get theinformationof the switch when it is running? HOT 1
- Output format problem of flow table item in mycontroller.py in P4 runtime HOT 2
- IPv6 issue HOT 1
- Connection refused HOT 1
- How to obtain higher-precision processing delay HOT 4
- Get queues length HOT 1
- Test the programs in the exercises folder with PTF HOT 2
- make run mkdir -p build pcaps logs sudo python3 ../../utils/run_exercise.py -t topology.json -j build/ python3: can't open file '/home/chinni12/tutorials/utils/../../utils/run_exercise.py': [Errno 2] No such file or directory make: *** [Makefile:35: run] Error 2 HOT 2
- Building mininet topology. Traceback (most recent call last): File "/home/snsrl3/Documents/tutorials-master/exercises/basic_tunnel/../../utils/run_exercise.py", line 387, in <module> exercise.run_exercise() File "/home/snsrl3/Documents/tutorials-master/exercises/basic_tunnel/../../utils/run_exercise.py", line 195, in run_exercise self.create_network() File "/home/snsrl3/Documents/tutorials-master/exercises/basic_tunnel/../../utils/run_exercise.py", line 256, in create_network self.net = Mininet(topo = self.topo, File "/usr/local/lib/python3.10/dist-packages/mininet/net.py", line 178, in __init__ self.build() HOT 1
- ping issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tutorials.