Re: NPF LOAD

Emmanuel Nyarko <[email protected]>
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>

> On 11 Oct 2024, at 4:30 PM, Martin Husemann <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.