Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Nov 2021 15:43:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 259628] Error in ng_ksocket example for setopt
Message-ID:  <bug-259628-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259628

            Bug ID: 259628
           Summary: Error in ng_ksocket example for setopt
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: root+FreeBSD@linuxpedia.pl
                CC: doc@FreeBSD.org

There's an error in example usage of setopt message for ng_ksocket netgraph
node.

In the last paragraph of "ASCII FORM CONTROL MESSAGES" section, there's code
like this:

---
Setting socket options example:

     Set FIB 2 for a socket (SOL_SOCKET, SO_SETFIB):
               setopt { level=3D0xffff name=3D0x1014 data=3D[ 2 ] }
---

The correct form should be:

---
Setting socket options example:

     Set FIB 2 for a socket (SOL_SOCKET, SO_SETFIB):
               setopt { level=3D0xffff name=3D0x1014 value=3D[ 2 ] }
---

Note - structure field name is "value", not "data".

The previous example of "Other { family=3D16 len=3D16 data=3D[0x70 0x00 0x0=
1 0x23] }"
is correct.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259628-9>