.\"- .\" Copyright (c) 1999 Dag-Erling CoýÅan Smgrav .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer .\" in this position and unchanged. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" %FreeBSD: src/usr.bin/sockstat/sockstat.1,v 1.6.2.7 2001/08/16 13:17:04 ru Exp % .\" .\" $FreeBSD: doc/ja_JP.eucJP/man/man1/sockstat.1,v 1.12 2001/05/14 01:07:28 horikawa Exp $ .\" .Dd April 13, 1999 .Dt SOCKSTAT 1 .Os .Sh ̾¾Î .Nm sockstat .Nd ³«¤¤¤Æ¤¤¤ë¥½¥±¥Ã¥È¤òÎóµó¤¹¤ë .Sh ½ñ¼° .Nm .Op Fl 46clu .Sh ²òÀâ .Nm ¥³¥Þ¥ó¥É¤Ï¡¢¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥É¥á¥¤¥ó¤ª¤è¤Ó .Ux ¥É¥á¥¤¥ó¤Î ³«¤¤¤Æ¤¤¤ë¥½¥±¥Ã¥È¤òÎóµó¤·¤Þ¤¹¡£ .Pp ¼¡¤Î¥ª¥×¥·¥ç¥ó¤ò»ÈÍѲÄǽ¤Ç¤¹: .Bl -tag -width Fl .It Fl 4 .Dv AF_INET (IPv4) ¥½¥±¥Ã¥È¤òɽ¼¨¤·¤Þ¤¹¡£ .It Fl 6 .Dv AF_INET6 (IPv6) ¥½¥±¥Ã¥È¤òɽ¼¨¤·¤Þ¤¹¡£ .It Fl c connect ¤·¤Æ¤¤¤ë¥½¥±¥Ã¥È¿ô¤òɽ¼¨¤·¤Þ¤¹¡£ .It Fl l listen ¤·¤Æ¤¤¤ë¥½¥±¥Ã¥È¿ô¤òɽ¼¨¤·¤Þ¤¹¡£ .It Fl u .Dv AF_LOCAL .Pq Ux ¥½¥±¥Ã¥È¤òɽ¼¨¤·¤Þ¤¹¡£ .El .Pp .Fl 4 , 6 , u ¤Î¤¤¤º¤ì¤â»ØÄꤷ¤Ê¤¤¾ì¹ç¡¢ .Nm ¤Ï 3 ¥É¥á¥¤¥ó¤¹¤Ù¤Æ¤Î¥½¥±¥Ã¥È¤òɽ¼¨¤·¤Þ¤¹¡£ .Pp .Fl c , .Fl l ¤Î¤¤¤º¤ì¤â»ØÄꤷ¤Ê¤¤¾ì¹ç¡¢ .Nm ¤Ï¡¢listen Ã椪¤è¤Ó connect Ãæ¤ÎξÊý¤Î¥½¥±¥Ã¥È¤òÎóµó¤·¤Þ¤¹¡£ .Pp ³Æ¥½¥±¥Ã¥È¤Ë´Ø¤·¤ÆÎóµó¤µ¤ì¤ë¾ðÊó¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹: .Bl -tag -width "FOREIGN_ADDRESS" .It Li USER ¥½¥±¥Ã¥È¤ò½êÍ­¤¹¤ë¥æ¡¼¥¶¤Ç¤¹¡£ .It Li COMMAND ¥½¥±¥Ã¥È¤òÊÝ»ý¤¹¤ë¥³¥Þ¥ó¥É¤Ç¤¹¡£ .It Li PID ¥½¥±¥Ã¥È¤òÊÝ»ý¤¹¤ë¥³¥Þ¥ó¥É¤Î¡¢¥×¥í¥»¥¹ ID ¤Ç¤¹¡£ .It Li FD ¥½¥±¥Ã¥È¤Î¥Õ¥¡¥¤¥ëµ­½Ò»ÒÈÖ¹æ¤Ç¤¹¡£ .It Li PROTO ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥½¥±¥Ã¥È¤ËÂФ·¤Æ¤Ï¡¢´ØÏ¢ÉÕ¤±¤é¤ì¤Æ¤¤¤ë¡¢Å¾Á÷¥×¥í¥È¥³¥ë¤Ç¤¹¡£ .Ux ¥½¥±¥Ã¥È¤ËÂФ·¤Æ¤Ï¡¢¥½¥±¥Ã¥È¥¿¥¤¥× (¥¹¥È¥ê¡¼¥à¤Þ¤¿¤Ï¥Ç¡¼¥¿¥°¥é¥à) ¤Ç¤¹¡£ .It Li ADDRESS (Unix ¥½¥±¥Ã¥È¤Î¤ß) bind ¤µ¤ì¤¿¥½¥±¥Ã¥È¤ËÂФ·¤Æ¤Ï¡¢¤³¤ì¤Ï¥½¥±¥Ã¥È¤Î¥Õ¥¡¥¤¥ë̾¤Ç¤¹¡£ ¾¤Î¥½¥±¥Ã¥È¤ËÂФ·¤Æ¤Ï¡¢Ì¾Á°¤È PID ¤ÈÁê¼ê¤Î¥Õ¥¡¥¤¥ëµ­½Ò»ÒÈÖ¹æ¤Ç¤¢¤ë¤«¡¢ ¥½¥±¥Ã¥È¤¬ bind ¤µ¤ì¤Æ¤¤¤Ê¤¤¤« connect ¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï .Dq Li "(none)" ¤Ç¤¹¡£ .It Li LOCAL ADDRESS (¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥½¥±¥Ã¥È¤Î¤ß) ¥½¥±¥Ã¥È¤Î¥í¡¼¥«¥ë¦¤Î½ªÅÀ¤¬·ë¹ç¤µ¤ì¤Æ¤¤¤ë¥¢¥É¥ì¥¹¤Ç¤¹ ( .Xr getsockname 2 »²¾È)¡£ .It Li FOREIGN ADDRESS (¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥½¥±¥Ã¥È¤Î¤ß) ¥½¥±¥Ã¥È¤Î³°³¦Â¦¤Î½ªÅÀ¤¬·ë¹ç¤µ¤ì¤Æ¤¤¤ë¥¢¥É¥ì¥¹¤Ç¤¹ ( .Xr getpeername 2 »²¾È)¡£ .El .Sh ´ØÏ¢¹àÌÜ .Xr fstat 1 , .Xr netstat 1 , .Xr inet 4 , .Xr inet6 4 .Sh Îò»Ë .Nm ¥³¥Þ¥ó¥É¤Ï .Fx 3.1 ¤ËÅо줷¤Þ¤·¤¿¡£ .Sh ºî¼Ô .Nm ¥³¥Þ¥ó¥É¤ÈËܥޥ˥奢¥ë¥Ú¡¼¥¸¤Ï .An Dag-Erling Sm\(/ograv Aq des@FreeBSD.org ¤¬µ­½Ò¤·¤Þ¤·¤¿¡£