Re: NPF LOAD

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>
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".

Martin
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.