Package: olsrd Version: 0.5.6-r4-1 Severity: normal Tags: patch Hi,
The olsrd_dot_draw plugin does not honor the "accept" parameter but instead binds to 0.0.0.0 unconditionally. The attached trivial patch fixes this issue. The patch applies against the current upstream mercurial olsrd tip. By substituting "addr" with "sin" it should apply against 0.5.6-r4 in Debian as well. Cheers, Sebastian -- Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/ Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
# HG changeset patch # User Sebastian Harl <s...@tokkee.org> # Date 1244624685 -7200 # Node ID 7f3b5b4302ac3bb9e6379c415e1988c62fca2163 # Parent b9d609f55319fa4894ddff96759eb8f83e7c4dda olsrd_dot_draw: Honor the "accept" parameter. Also, the plugin now binds to 127.0.0.1 by default as originally intended. diff -r b9d609f55319 -r 7f3b5b4302ac lib/dot_draw/src/olsrd_dot_draw.c --- a/lib/dot_draw/src/olsrd_dot_draw.c Wed Jun 10 09:44:40 2009 +0200 +++ b/lib/dot_draw/src/olsrd_dot_draw.c Wed Jun 10 11:04:45 2009 +0200 @@ -204,7 +204,7 @@ /* complete the socket structure */ memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; - addr.sin_addr.s_addr = INADDR_ANY; + addr.sin_addr.s_addr = ipc_accept_ip.v4.s_addr; addr.sin_port = htons(ipc_port); /* bind the socket to the port number */
signature.asc
Description: Digital signature