diff options
author | melifaro <melifaro@FreeBSD.org> | 2012-01-10 12:45:24 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2012-01-10 12:45:24 +0000 |
commit | 0730e7f5bed7d8a8c749f0b81c900c9dc3f0b5c9 (patch) | |
tree | 68294593df21f6234db4ce243f5ea5e405f44415 | |
parent | 4c01c80c87297b020f801f227c173267de9920de (diff) | |
download | FreeBSD-src-0730e7f5bed7d8a8c749f0b81c900c9dc3f0b5c9.zip FreeBSD-src-0730e7f5bed7d8a8c749f0b81c900c9dc3f0b5c9.tar.gz |
Add setsockopt(2) example to ng_ksocket(4).
While here, fix formatting a bit
Approved by: kib(mentor)
MFC after: 2 weeks
-rw-r--r-- | share/man/man4/ng_ksocket.4 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/share/man/man4/ng_ksocket.4 b/share/man/man4/ng_ksocket.4 index d20ee46..e74f61a 100644 --- a/share/man/man4/ng_ksocket.4 +++ b/share/man/man4/ng_ksocket.4 @@ -34,7 +34,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 28, 2005 +.Dd January 09, 2012 .Dt NG_KSOCKET 4 .Os .Sh NAME @@ -199,7 +199,7 @@ For the address is the pathname as a doubly quoted string. .Pp Examples: -.Bl -tag -width XXXXXXXXXX +.Bl -tag -width "PF_LOCAL" .It Dv PF_LOCAL local/"/tmp/foo.socket" .It Dv PF_INET @@ -215,6 +215,12 @@ the normal form for that structure is used. In the future, more convenient encoding of the more common socket options may be supported. +.Pp +Setting socket options example: +.Bl -tag -width "PF_LOCAL" +.It Set FIB 2 for a socket (SOL_SOCKET, SO_SETFIB): +.Dv "setopt \&{ level=0xffff name=0x1014 data=[ 2 ] \&}" +.El .Sh SHUTDOWN This node shuts down upon receipt of a .Dv NGM_SHUTDOWN |