Skip to content
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

Do not use Packet::ingress_length in parser for PacketTooShort #627

Conversation

antoninbas
Copy link
Member

This may not be appropriate for architectures with multiple parsers
(e.g. egress parser in PSA).

This commit also ensures that ingress_length is updated properly for
recirculated packets in simple_switch.

Fixes #626

@antoninbas
Copy link
Member Author

Verbose PR because of new test, but really the actual change is quite small

This may not be appropriate for architectures with multiple parsers
(e.g. egress parser in PSA).

This commit also ensures that ingress_length is updated properly for
recirculated packets in simple_switch.

Fixes #626
@antoninbas antoninbas force-pushed the antonin/do-not-use-ingress-length-in-parser-to-check-if-enough-bytes-left branch from 3d00f30 to 530f405 Compare July 9, 2018 23:08
@codecov-io
Copy link

codecov-io commented Jul 9, 2018

Codecov Report

Merging #627 into master will increase coverage by 0.17%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #627      +/-   ##
=========================================
+ Coverage   76.23%   76.4%   +0.17%     
=========================================
  Files         110     110              
  Lines        9252    9252              
=========================================
+ Hits         7053    7069      +16     
+ Misses       2199    2183      -16
Impacted Files Coverage Δ
include/bm/bm_sim/packet.h 100% <ø> (ø) ⬆️
src/bm_sim/deparser.cpp 93.1% <100%> (ø) ⬆️
src/bm_sim/parser.cpp 94.98% <100%> (ø) ⬆️
src/bm_sim/event_logger.cpp 94.66% <0%> (+6.66%) ⬆️
include/bm/bm_sim/conditionals.h 85.71% <0%> (+28.57%) ⬆️
src/bm_sim/conditionals.cpp 100% <0%> (+100%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ee9aee...492b80a. Read the comment docs.

@antoninbas antoninbas merged commit a3f0ebe into master Jul 10, 2018
@antoninbas antoninbas deleted the antonin/do-not-use-ingress-length-in-parser-to-check-if-enough-bytes-left branch July 10, 2018 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants