Bug 266482 - Linprocfs: /proc/net/route would be nice to have
Summary: Linprocfs: /proc/net/route would be nice to have
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: Dmitry Chagin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-18 12:58 UTC by Poul-Henning Kamp
Modified: 2023-01-24 07:37 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Poul-Henning Kamp freebsd_committer freebsd_triage 2022-09-18 12:58:48 UTC
It would be nice if linprocfs supported /proc/net/route.

My specific need is Siemens PLC-configuration tool "LOGO Comfort"

I managed to find a workaround, but it is clunky:

https://wiki.freebsd.org/electronics/plc

Thanks in advance!
Comment 1 John Grafton 2022-09-22 19:11:37 UTC
This seems like an interesting task that's within the scope of my abilities.  I'd like to take a crack at it!
Comment 2 John Grafton 2022-10-05 18:51:12 UTC
Created pull request on freebsd-src github:  https://github.com/freebsd/freebsd-src/pull/616
Comment 3 John Grafton 2022-10-12 14:51:25 UTC
Added to phabricator here:  https://reviews.freebsd.org/D36949
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-10-22 10:54:29 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=4c9db9566e67779905c667c2719e5b1628c3af3d

commit 4c9db9566e67779905c667c2719e5b1628c3af3d
Author:     John Grafton <john.grafton@runbox.com>
AuthorDate: 2022-10-22 10:52:58 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-10-22 10:52:58 +0000

    linprocfs: Add net/route.

    PR:                     266482
    Reviewed by:            melifaro, me
    Differential revision:  https://reviews.freebsd.org/D36949
    MFC after:              1 week

 sys/compat/linprocfs/linprocfs.c | 79 ++++++++++++++++++++++++++++++++++++++++
 sys/modules/linprocfs/Makefile   |  2 +-
 2 files changed, 80 insertions(+), 1 deletion(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2023-01-24 07:35:24 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=dab4775da30809c65df81837c74a9d634375a704

commit dab4775da30809c65df81837c74a9d634375a704
Author:     John Grafton <john.grafton@runbox.com>
AuthorDate: 2022-10-22 10:52:58 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-01-24 07:34:29 +0000

    linprocfs: Add net/route.

    PR:                     266482
    Reviewed by:            melifaro, me
    Differential revision:  https://reviews.freebsd.org/D36949
    MFC after:              1 week

    (cherry picked from commit 4c9db9566e67779905c667c2719e5b1628c3af3d)

 sys/compat/linprocfs/linprocfs.c | 79 ++++++++++++++++++++++++++++++++++++++++
 sys/modules/linprocfs/Makefile   |  2 +-
 2 files changed, 80 insertions(+), 1 deletion(-)
Comment 6 Dmitry Chagin freebsd_committer freebsd_triage 2023-01-24 07:37:47 UTC
thanks!