JulianSchmid / etherparse

A rust library for parsing ethernet & ethernet using protocols.
Apache License 2.0
285 stars 54 forks source link

Added PacketBuilder::tcp_header() #66

Closed robs-zeynet closed 1 year ago

robs-zeynet commented 1 year ago

Allows caller to fux with the full tcp_header and not just the four parameters that go into TcpHeader::new().

Doc code passes test.

Hopefully this is an easy merge.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: -0.03 :warning:

Comparison is base (5078f13) 99.32% compared to head (aca4242) 99.29%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #66 +/- ## ========================================== - Coverage 99.32% 99.29% -0.03% ========================================== Files 142 142 Lines 35218 35229 +11 ========================================== + Hits 34980 34981 +1 - Misses 238 248 +10 ``` | [Impacted Files](https://app.codecov.io/gh/JulianSchmid/etherparse/pull/66?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Julian+Schmid) | Coverage Δ | | |---|---|---| | [etherparse/src/packet\_builder.rs](https://app.codecov.io/gh/JulianSchmid/etherparse/pull/66?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Julian+Schmid#diff-ZXRoZXJwYXJzZS9zcmMvcGFja2V0X2J1aWxkZXIucnM=) | `95.95% <0.00%> (-1.55%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/JulianSchmid/etherparse/pull/66/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Julian+Schmid)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.