Summary: | ip_fragment() does not call IPSTAT() in one error case | ||
---|---|---|---|
Product: | Base System | Reporter: | Ivan Rozhuk <rozhuk.im> |
Component: | kern | Assignee: | Gleb Smirnoff <glebius> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | emaste, glebius, rozhuk.im |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Ivan Rozhuk
2022-08-08 14:39:29 UTC
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=da6715bbb125ebe5d3ca7fd7656e8409b2d31921 commit da6715bbb125ebe5d3ca7fd7656e8409b2d31921 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2022-09-15 02:22:40 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2022-09-15 02:22:40 +0000 ip_output: always increase "cantfrag" stat if ip_fragment() fails While here, join two unlikely cases into one if clause. Submitted by: Ivan Rozhuk <rozhuk.im gmail.com> PR: 265718 Reviewed by: mjg, melifaro Differential revision: https://reviews.freebsd.org/D36584 sys/netinet/ip_output.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) Thanks! Hope see it soon in stable/13. (In reply to Ivan Rozhuk from comment #2) Then I would ask you to cherry-pick the patch exactly as it is in main and test it on stable/13. |