Bug 264402 - net/fping: Avoid ident collisions
Summary: net/fping: Avoid ident collisions
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Craig Leres
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-01 23:17 UTC by Craig Leres
Modified: 2022-06-02 00:50 UTC (History)
1 user (show)

See Also:
jharris: maintainer-feedback+


Attachments
patch (1.50 KB, patch)
2022-06-02 00:02 UTC, Craig Leres
jharris: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Leres freebsd_committer freebsd_triage 2022-06-01 23:17:26 UTC
We have a busy nagios server and its not unusual for there to be 200 fping's running simultaneously. Since fping derives the ident it puts in the outbound packet to from the low 16 bits of the process id, we see collisions.

Here's a github pull request that fixes this issue:

    https://github.com/schweikert/fping/issues/206

If I create a patch for the fping port to make this change would you prefer a patch an an optional patch?
Comment 1 jharris 2022-06-01 23:46:18 UTC
Approved, albeit with personally testing it.  A regular patch is fine.  Thanks!
Comment 2 Craig Leres freebsd_committer freebsd_triage 2022-06-02 00:02:03 UTC
Created attachment 234386 [details]
patch
Comment 3 jharris 2022-06-02 00:11:01 UTC
Comment on attachment 234386 [details]
patch

Looks good to me.
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-06-02 00:47:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=65d71ce9bdd96d79b5c9cffafc144fe23ebf6b15

commit 65d71ce9bdd96d79b5c9cffafc144fe23ebf6b15
Author:     Craig Leres <leres@FreeBSD.org>
AuthorDate: 2022-06-02 00:46:21 +0000
Commit:     Craig Leres <leres@FreeBSD.org>
CommitDate: 2022-06-02 00:46:21 +0000

    net/fping: Avoid ident collisions

    fping derives the ident it puts in the outbound packet to from the
    low 16 bits of the process id. This means a busy nagios server can
    see collisions. More details on this issue and a patch to solve it
    here:

        https://github.com/schweikert/fping/issues/206

    Apply the patch from the github issue:

    PR:             264402
    Reported by:    Case Larsen
    Approved by:    jharris (maintainer)

 net/fping/Makefile            |  2 +-
 net/fping/files/patch-fping.c | 23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)
Comment 5 Craig Leres freebsd_committer freebsd_triage 2022-06-02 00:50:19 UTC
Thanks for the fast resolution; committed!