Skip to content

clean up string manipulation in error exit#648

Merged
fklassen merged 3 commits intoappneta:4.3.4from
guijan:master
Apr 1, 2021
Merged

clean up string manipulation in error exit#648
fklassen merged 3 commits intoappneta:4.3.4from
guijan:master

Conversation

@guijan
Copy link
Copy Markdown
Contributor

@guijan guijan commented Mar 16, 2021

Hello, I think it's self evident this is a better way to manipulate strings.

A quick grep for 'EBUF' in the source tree says there could be other places that could be improved on, I could send more patches if so.

GabrielGanne and others added 3 commits July 13, 2020 10:16
Instead of hard failing on malformed packets, treat them as soft errors
and skip them. This concerns both malformed packets (eg. too short to
contain the expected protocol headers) and unsupported packets (eg.
fragmented IPv6 packets).

This is a partial fix for appneta#611

Signed-off-by: Gabriel Ganne <gabriel.ganne@gmail.com>
…ported

tcprewrite: handle malformed and unsupported packets as soft errors
@fklassen
Copy link
Copy Markdown
Member

fklassen commented Apr 1, 2021

Hello, I think it's self evident this is a better way to manipulate strings.

A quick grep for 'EBUF' in the source tree says there could be other places that could be improved on, I could send more patches if so.

Yes, more PR's like this are welcome. They may or may not make it for 4.3.4 release (coming soon).

Feel free to add your name to docs/CREDITS, or if you give me your name I'll add it.

@fklassen fklassen changed the base branch from master to 4.3.4 April 1, 2021 19:39
@fklassen fklassen merged commit 23d4ee0 into appneta:4.3.4 Apr 1, 2021
@guijan guijan mentioned this pull request Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants