-
Notifications
You must be signed in to change notification settings - Fork 852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Printing function for VXLAN GPE and NSH #490
Conversation
draft-quinn-vxlan-gpe has been replaced with draft-ietf-nvo3-vxlan-gpe, does this code still stand for the latest revision? |
Yes, draft-ietf-nvo3-vxlan-gpe did not change the alignment of the header. Only the latest draft allows MPLS payload. I will commit a supported version. |
f823638
to
2c21490
Compare
OK, now this pull request stands for the latest draft. |
Thank you, please allow some time for somebody to review in better detail. Meanwhile it would help if you could add a |
I also think that. I will add a test case and am waiting for some comments. Thank you. |
2c21490
to
ecb4ea7
Compare
OK, I added a test case for my code. |
Build test: there are some warnings. |
Please update according to f25ed1f. |
ecb4ea7
to
1005fc7
Compare
OK, I updated the code according to f25ed1f and correct warnings with -Wall -Wmissing-prototypes -Wstrict-prototypes. Thank you. |
1005fc7
to
192f1e5
Compare
824fd12
to
b67ec52
Compare
This pull request merged a upa's contribution which enable to display MD-type 2 NSH Header. |
Thanks, I will review in a few days. |
Some comments after a first review: A. A bound test was missing in B. print-nsh.c, line 89: The loop is only for MD Type == 0x01 ? C. Which code for MD Type == 0x02? D. print-nsh.c, line 90: before extracting 32 bits you need to check for remaining data with f.e. ND_TCHECK2. E. The usual way to print the VXLAN-GPE flags is:
Same for print-nsh.c. F. print-nsh.c, line 109 & print-vxlan-gpe.c, line 98: Is it truncated? Not just invalid next protocol? G. As the output depend on vflag, you should add more test cases with f.e.:
H. print-nsh.c & print-vxlan-gpe.c: Remove space at end of line 5. I. |
First, Thank you for your review.
Sure. I will correct.
This code is for both MD Types 0x01 and 0x02. They have the same syntax except for MD Type 0x01 fixes Length field == 0x06. But I noticed that the draft specifies the format for Optional Variable Length Metadata. I will support it.
I will correct my code using bittok2str_nosep.
Yes, It just invalid or unknown next protocol.
Yes.
Yes.
OK. |
8d0c191
to
f585762
Compare
and Network Service Header. This code stands for following internet drafts: - VXLAN GPE: draft-ietf-nvo3-vxlan-gpe-01 - NSH: draft-ietf-sfc-nsh-01
f585762
to
f91683c
Compare
I fixed my code according to the comment. |
Thanks. Please give me a few days to check once again. |
Merged with space editing. |
This pull request is the repost of #487.
I squashed the verbose commit logs and rebased on the current master branch.
Would it be acceptable?
I Added verbose output for encapsulated packets with Generic Protocol Extension for VXLAN and Network Service Header.
they are described in following documents.
draft-quinn-vxlan-gpe-04.txt ( https://datatracker.ietf.org/doc/draft-quinn-vxlan-gpe/ )
draft-ietf-sfc-nsh-01.txt ( http://datatracker.ietf.org/doc/draft-ietf-sfc-nsh/ )
I think that researchers and developers related on Service Function Chaining will be happy if this patch is merged.