From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 28 00:53:49 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A2C416A400 for ; Wed, 28 Mar 2007 00:53:49 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 0655D13C45D for ; Wed, 28 Mar 2007 00:53:48 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp126-26.lns2.adl4.internode.on.net [121.44.126.26]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id l2S0rfRF016415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Mar 2007 10:23:44 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Steve Watt Date: Wed, 28 Mar 2007 10:23:27 +0930 User-Agent: KMail/1.9.5 References: <200703231617.l2NGHDlu074159@wattres.watt.com> In-Reply-To: <200703231617.l2NGHDlu074159@wattres.watt.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1795497.Prg59siEbL"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200703281023.35665.doconnor@gsoft.com.au> X-Spam-Score: -2.312 () BAYES_00 X-Scanned-By: MIMEDefang 2.58 on 203.31.81.10 Cc: freebsd-hackers@freebsd.org Subject: Re: sendto() giving EPERM outside a jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2007 00:53:49 -0000 --nextPart1795497.Prg59siEbL Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 24 March 2007 02:47, Steve Watt wrote: > >According to my reading of the man page it is not possible to get this > > error unless I'm using jails (which I'm not). The code in question does= =2E. > That's probably a buglet in the man page. I guess it would be nice if the man page(s) mentioned that a firewall could= =20 cause EPERM. I have seen it before with other apps but the sendto() confuse= d=20 me. > >Can someone shed light on what the problem is? The application appears to > > work fine even with this error though. > > man setsockopt, search for SO_BROADCAST. It doesn't say anything about EPERM. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1795497.Prg59siEbL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBGCbyP5ZPcIHs/zowRArn1AKCWAKgABl3I/56NLFdhYcgyIoUPfgCeIQut InJt75uUUZ3W3sn8kyXIKuQ= =R1fq -----END PGP SIGNATURE----- --nextPart1795497.Prg59siEbL--