Re: sendto() giving EPERM outside a jail
- From: Steve Watt <steve.removethis@xxxxxxxx>
- Date: Thu, 22 Mar 2007 19:15:23 +0000 (UTC)
In article <200703221201.35028.doconnor@xxxxxxxxxxxx>,
Daniel O'Connor <doconnor@xxxxxxxxxxxx> wrote:
Hi,
I am trying to port miniupnpd (http://miniupnp.tuxfamily.org/) and by in large
it seems to work fine (evil idea as it is :) However it spews out a lot of..
miniupnpd[13010]: sendto(udp_notify): Operation not permitted
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..
memset(&sockname, 0, sizeof(struct sockaddr_in));
sockname.sin_family = AF_INET;
sockname.sin_port = htons(PORT);
sockname.sin_addr.s_addr = inet_addr(UPNP_MCAST_ADDR);
while(known_service_types[i])
{
snprintf(bufr, sizeof(bufr),
"NOTIFY * HTTP/1.1\r\n"
"HOST:%s:%d\r\n"
...
n = sendto(s, bufr, strlen(bufr), 0,
(struct sockaddr *)&sockname, sizeof(struct sockaddr_in) );
(line 278 of miniupnpd.c).
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.
--
Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3"
Internet: steve @ Watt.COM Whois: SW32-ARIN
Free time? There's no such thing. It just comes in varying prices...
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- References:
- sendto() giving EPERM outside a jail
- From: Daniel O'Connor
- sendto() giving EPERM outside a jail
- Prev by Date: Re: sendto() giving EPERM outside a jail
- Next by Date: FreeBSD panics...
- Previous by thread: Re: sendto() giving EPERM outside a jail
- Next by thread: Re: sendto() giving EPERM outside a jail
- Index(es):
Relevant Pages
|
|