From owner-freebsd-net@FreeBSD.ORG Sun Jan 23 15:06:31 2011 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13C17106564A for ; Sun, 23 Jan 2011 15:06:31 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [62.231.161.221]) by mx1.freebsd.org (Postfix) with ESMTP id 5B3788FC0C for ; Sun, 23 Jan 2011 15:06:29 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.4/8.14.4) with ESMTP id p0NF6RQa069316; Sun, 23 Jan 2011 21:06:27 +0600 (NOVT) (envelope-from egrosbein@rdtc.ru) Message-ID: <4D3C43EE.8060307@rdtc.ru> Date: Sun, 23 Jan 2011 21:06:22 +0600 From: Eugene Grosbein User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.13) Gecko/20110112 Thunderbird/3.1.7 MIME-Version: 1.0 To: "net@freebsd.org" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Querying bsnmpd through /var/run/snmpd.sock X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2011 15:06:31 -0000 Hi! bsnmpd running with mibII module opens local socket /var/run/snmpd.sock mentioned in snmp_mibII(3) manual page: The mibII module opens a socket that is used to execute all network related ioctl(2) functions. This socket is globally available under the name mib_netsock. How do I use the socket? I hope to be able to call mib_find_if_sys() function from another process using the socket. Is there a documentation for this? Eugene Grosbein