From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 6 15:50:32 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2199B16A4CF for ; Tue, 6 Apr 2004 15:50:32 -0700 (PDT) Received: from pony2pub.arc.nasa.gov (pony2pub.arc.nasa.gov [128.102.31.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0011943D2F for ; Tue, 6 Apr 2004 15:50:29 -0700 (PDT) (envelope-from jtoung@arc.nasa.gov) Received: from nren-194.arc.nasa.gov ([128.102.196.194] verified) by pony2pub.arc.nasa.gov (CommuniGate Pro SMTP 4.1.8) with ESMTP id 9301058 for freebsd-hackers@freebsd.org; Tue, 06 Apr 2004 15:48:39 -0700 Content-Type: text/plain; charset="us-ascii" From: Jerry Toung To: hackers Date: Tue, 6 Apr 2004 15:47:56 -0700 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200404061547.56145.jtoung@arc.nasa.gov> Subject: 5.2 & ipintrq X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jtoung@arc.nasa.gov List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 22:50:32 -0000 Hello list, I am trying to port some code that I wrote from 5.0 to 5.2. What is the=20 equivalent of the code below for 5.2. 5.0: ifq =3D &ipintrq; s =3D splnet(); if (_IF_QFULL(ifq)) { _IF_DROP(ifq); m_freem(m); } else { IF_ENQUEUE(ifq,m); } splx(s); 5.2: ?????? if (!netisr_queue(NETISR_IP, m)) { printf("%s: queue full", __FUNCTION__) return ENOBUFS; } =20 Thank you, Jerry