From owner-freebsd-net@FreeBSD.ORG Tue Jul 29 02:36:55 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C74737B401 for ; Tue, 29 Jul 2003 02:36:55 -0700 (PDT) Received: from cell.sick.ru (cell.sick.ru [195.91.162.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E0FB43F75 for ; Tue, 29 Jul 2003 02:36:54 -0700 (PDT) (envelope-from glebius@cell.sick.ru) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.6/8.12.8) with ESMTP id h6T9aqNx069995 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 29 Jul 2003 13:36:52 +0400 (MSD) (envelope-from glebius@cell.sick.ru) Received: (from glebius@localhost) by cell.sick.ru (8.12.6/8.12.6/Submit) id h6T9apV5069994 for freebsd-net@freebsd.org; Tue, 29 Jul 2003 13:36:51 +0400 (MSD) Date: Tue, 29 Jul 2003 13:36:51 +0400 From: Gleb Smirnoff To: freebsd-net@freebsd.org Message-ID: <20030729093651.GA69782@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.1i Subject: never freeing data received in netgraph control message X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2003 09:36:55 -0000 In netgraph(4) it is said that: In both directions, (request and response) it is up to the receiver of that message to free() the control mes- sage buffer. All control messages and replies are allocated with malloc() type M_NETGRAPH. Does this mean that I can receive message, point to its data with a pointer in private node info, and use this data? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE