npf icon indicating copy to clipboard operation
npf copied to clipboard

npfctl: fstat: No such file or directory

Open diorgesl opened this issue 5 years ago • 5 comments

Idk whats wrong, everything compiled ok...

Using Debian 10.4.

root@npf:~/npf# npfctl start npfctl: fstat: No such file or directory

npfctl debug works

Thanks in advance.

diorgesl avatar Jun 06 '20 14:06 diorgesl

Please provide a proper problem description when submitting the bug reports.

Are you running the NPF-Router? If yes, then npfctl start is currently not functional / not needed; NPF will be automatically started on spinning up the router, so you can just load your configuration.

rmind avatar Jun 06 '20 15:06 rmind

I had the same issue just now on a host newly upgraded to NetBSD 9.2. After some lucky guessing I resolved this by creating /dev/npf . It would be a lot easier to figure out what's wrong if the error message included the name of the file that wasn't found instead of "fstat" (replace "fstat" with path on npfctl.c line ~348).

perseant avatar Jul 08 '21 15:07 perseant

@perseant: Seems sensible. Would you like to make a PR?

rmind avatar Jul 09 '21 12:07 rmind

@rmind PR 56307. Wasn't sure which one was the canonical source. I'm happy to commit the patch in the PR if it looks good to you. Thanks!

perseant avatar Jul 12 '21 22:07 perseant

@perseant: I meant a pull request (PR) on GitHub since this repository is the source/upstream. :) It will automatically compile-test and run the unit tests for you here.

There are already some new features here (e.g. rate-limiting using the CAR algorithm), so it's best to not diverge the trees, but merge everything here and then perform a sync to NetBSD.

rmind avatar Jul 13 '21 11:07 rmind