Package: sane-utils
Version: 1.0.15-10
Severity: important

First thing saned tries to do is bind to port 6566 on local interfaces.
If IPv4 and IPv6 are both active though, the 'v6 is done first, which
blocks the address on 'v4, so the latter bind fails...

An strace of it failing:

  socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 3
  setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
  bind(3, {sa_family=AF_INET6, sin6_port=htons(6566), inet_pton(AF_INET6, "::", 
&sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
  listen(3, 1)                            = 0
  socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
  setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
  bind(4, {sa_family=AF_INET, sin_port=htons(6566), 
sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use)

If before running saned, you

  echo 1 >/proc/sys/net/ipv6/bindv6only

This causes the 'v4 port to be free, so the latter bind succeeds as
well.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-mh2
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages sane-utils depends on:
ii  adduser              3.64                Add and remove users and groups
ii  libc6                2.3.2.ds1-22        GNU C Library: Shared libraries an
ii  libieee1284-3        0.2.10-1            cross-platform library for paralle
ii  libjpeg62            6b-10               The Independent JPEG Group's JPEG 
ii  libsane              1.0.15-10           API library for scanners
ii  libusb-0.1-4         2:0.1.10a-9.sarge.1 userspace USB programming library

sane-utils recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to