Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 12:45:24 +0000 (UTC)
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r229930 - head/share/man/man4
Message-ID:  <201201101245.q0ACjO6h010981@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: melifaro
Date: Tue Jan 10 12:45:24 2012
New Revision: 229930
URL: http://svn.freebsd.org/changeset/base/229930

Log:
  Add setsockopt(2) example to ng_ksocket(4).
  While here, fix formatting a bit
  
  Approved by:     kib(mentor)
  MFC after:       2 weeks

Modified:
  head/share/man/man4/ng_ksocket.4

Modified: head/share/man/man4/ng_ksocket.4
==============================================================================
--- head/share/man/man4/ng_ksocket.4	Tue Jan 10 11:41:02 2012	(r229929)
+++ head/share/man/man4/ng_ksocket.4	Tue Jan 10 12:45:24 2012	(r229930)
@@ -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



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