tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NPF LOAD





On 11 Oct 2024, at 4:30 PM, Martin Husemann <martin%duskware.de@localhost> wrote:

On Fri, Oct 11, 2024 at 03:18:09PM +0000, Emmanuel Nyarko wrote:
https://github.com/NetBSD/src/blob/trunk/usr.sbin/npf/npfctl/npfctl.c#L506

ret = npfctl_load(fd);  
fun = "npfctl_config_load?;  // looks like there?s a typo here

The "fun" string is only used in error messages a few lines below:

       if (ret) {
               err(EXIT_FAILURE, "%s", fun);
       }

so it should be "npfctl_load" since that is what returned "ret”.
Exactly.

But the load case here needs to be addressed right?

Martin


Emmanuel







Home | Main Index | Thread Index | Old Index