Date: Wed, 03 Nov 2021 15:43:05 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 259628] Error in ng_ksocket example for setopt Message-ID: <bug-259628-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259628 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=0xffff name=0x1014 data=[ 2 ] } --- The correct form should be: --- Setting socket options example: Set FIB 2 for a socket (SOL_SOCKET, SO_SETFIB): setopt { level=0xffff name=0x1014 value=[ 2 ] } --- Note - structure field name is "value", not "data". The previous example of "Other { family=16 len=16 data=[0x70 0x00 0x01 0x23] }" is correct. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259628-227>
