Subject: Problems with net/udpcast
To: None <pkgsrc-users@netbsd.org>
From: None <elekktretterr@exemail.com.au>
List: pkgsrc-users
Date: 08/22/2006 17:34:33
Hi,
Im having problems using udpcast:

neptune# ifconfig rtk0
rtk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:0f:ea:5d:b9:2e
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 192.168.1.2 netmask 0xffffff80 broadcast 192.168.1.127
        inet6 fe80::20f:eaff:fe5d:b92e%rtk0 prefixlen 64 scopeid 0x1


neptune# udp-receiver -i rtk0
Udp-receiver 2006-06-19
bind socket to 6.4.6.0:9000 (Can't assign requested address)


neptune# kdump -f ktrace.out
  1241 ktrace   EMUL  "netbsd"
  1241 ktrace   CALL  execve(0xbfbfe8f0,0xbfbfedc4,0xbfbfedd4)
  1241 ktrace   NAMI  "/usr/bin/udp-receiver"
  1241 ktrace   RET   execve -1 errno 2 No such file or directory
  1241 ktrace   CALL  execve(0xbfbfe8f0,0xbfbfedc4,0xbfbfedd4)
  1241 ktrace   NAMI  "/bin/udp-receiver"
  1241 ktrace   RET   execve -1 errno 2 No such file or directory
  1241 ktrace   CALL  execve(0xbfbfe8f0,0xbfbfedc4,0xbfbfedd4)
  1241 ktrace   NAMI  "/usr/pkg/bin/udp-receiver"
  1241 ktrace   RET   execve -1 errno 2 No such file or directory
  1241 ktrace   CALL  execve(0xbfbfe8f0,0xbfbfedc4,0xbfbfedd4)
  1241 ktrace   NAMI  "/usr/local/bin/udp-receiver"
  1241 ktrace   RET   execve -1 errno 2 No such file or directory
  1241 ktrace   CALL  execve(0xbfbfe8f0,0xbfbfedc4,0xbfbfedd4)
  1241 ktrace   NAMI  "/sbin/udp-receiver"
  1241 ktrace   RET   execve -1 errno 2 No such file or directory
  1241 ktrace   CALL  execve(0xbfbfe8f0,0xbfbfedc4,0xbfbfedd4)
  1241 ktrace   NAMI  "/usr/sbin/udp-receiver"
  1241 ktrace   RET   execve -1 errno 2 No such file or directory
  1241 ktrace   CALL  execve(0xbfbfe8f0,0xbfbfedc4,0xbfbfedd4)
  1241 ktrace   NAMI  "/usr/pkg/sbin/udp-receiver"
  1241 ktrace   NAMI  "/usr/libexec/ld.elf_so"
  1241 udp-receiver EMUL  "netbsd"
  1241 udp-receiver RET   execve JUSTRETURN
  1241 udp-receiver CALL  mmap(0,0x8000,3,0x1002,0xffffffff,0,0,0)
  1241 udp-receiver RET   mmap -1111576576/0xbdbeb000
  1241 udp-receiver CALL  open(0xbdbfc148,0,0)
  1241 udp-receiver NAMI  "/etc/ld.so.conf"
  1241 udp-receiver RET   open 3
  1241 udp-receiver CALL  __fstat13(3,0xbfbfeccc)
  1241 udp-receiver RET   __fstat13 0
  1241 udp-receiver CALL  mmap(0,0x37,1,1,3,0,0,0)
  1241 udp-receiver RET   mmap -1111580672/0xbdbea000
  1241 udp-receiver CALL  close(3)
  1241 udp-receiver RET   close 0
  1241 udp-receiver CALL  munmap(0xbdbea000,0x37)
  1241 udp-receiver RET   munmap 0
  1241 udp-receiver CALL  open(0xbdbee100,0,0)
  1241 udp-receiver NAMI  "/usr/lib/libpthread.so.0"
  1241 udp-receiver RET   open 3
  1241 udp-receiver CALL  __fstat13(3,0xbfbfe9cc)
  1241 udp-receiver RET   __fstat13 0
  1241 udp-receiver CALL  mmap(0,0x1000,1,1,3,0,0,0)
  1241 udp-receiver RET   mmap -1111580672/0xbdbea000
  1241 udp-receiver CALL  munmap(0xbdbea000,0x1000)
  1241 udp-receiver RET   munmap 0
  1241 udp-receiver CALL  mmap(0,0x13000,5,2,3,0,0,0)
  1241 udp-receiver RET   mmap -1111654400/0xbdbd8000
  1241 udp-receiver CALL  mmap(0xbdbe9000,0x1000,3,0x12,3,0,0x10000,0)
  1241 udp-receiver RET   mmap -1111584768/0xbdbe9000
  1241 udp-receiver CALL  mmap(0xbdbea000,0x1000,3,0x1012,0xffffffff,0,0,0)
  1241 udp-receiver RET   mmap -1111580672/0xbdbea000
  1241 udp-receiver CALL  close(3)
  1241 udp-receiver RET   close 0
  1241 udp-receiver CALL  open(0xbdbee140,0,0xbfbfe9cc)
  1241 udp-receiver NAMI  "/usr/lib/libc.so.12"
  1241 udp-receiver RET   open 3
  1241 udp-receiver CALL  __fstat13(3,0xbfbfe9cc)
  1241 udp-receiver RET   __fstat13 0
  1241 udp-receiver CALL  mmap(0,0x1000,1,1,3,0,0,0)
  1241 udp-receiver RET   mmap -1111658496/0xbdbd7000
  1241 udp-receiver CALL  munmap(0xbdbd7000,0x1000)
  1241 udp-receiver RET   munmap 0
  1241 udp-receiver CALL  mmap(0,0xc2000,5,2,3,0,0,0)
  1241 udp-receiver RET   mmap -1112449024/0xbdb16000
  1241 udp-receiver CALL  mmap(0xbdbc2000,0x7000,3,0x12,3,0,0xab000,0)
  1241 udp-receiver RET   mmap -1111744512/0xbdbc2000
  1241 udp-receiver CALL  mmap(0xbdbc9000,0xf000,3,0x1012,0xffffffff,0,0,0)
  1241 udp-receiver RET   mmap -1111715840/0xbdbc9000
  1241 udp-receiver CALL  close(3)
  1241 udp-receiver RET   close 0
  1241 udp-receiver CALL  mprotect(0xbdbd8000,0x11000,7)
  1241 udp-receiver RET   mprotect 0
  1241 udp-receiver CALL  mprotect(0xbdbd8000,0x11000,5)
  1241 udp-receiver RET   mprotect 0
  1241 udp-receiver CALL  __sysctl(0xbfbfed18,2,0xbfbfed10,0xbfbfed14,0,0)
  1241 udp-receiver RET   __sysctl 0
  1241 udp-receiver CALL  rasctl(0xbdbe35ab,0xb,0)
  1241 udp-receiver RET   rasctl 0
  1241 udp-receiver CALL  __sysctl(0xbfbfebf0,2,0xbfbfebe8,0xbfbfebec,0,0)
  1241 udp-receiver RET   __sysctl 0
  1241 udp-receiver CALL  readlink(0xbdbc0b2e,0xbfbfec68,0x3f)
  1241 udp-receiver NAMI  "/etc/malloc.conf"
  1241 udp-receiver RET   readlink -1 errno 2 No such file or directory
  1241 udp-receiver CALL  mmap(0,0x1000,3,0x1002,0xffffffff,0,0,0)
  1241 udp-receiver RET   mmap -1112453120/0xbdb15000
  1241 udp-receiver CALL  break(0x8062f08)
  1241 udp-receiver RET   break 0
  1241 udp-receiver CALL  break(0x8063f08)
  1241 udp-receiver RET   break 0
  1241 udp-receiver CALL  break(0x8064000)
  1241 udp-receiver RET   break 0
  1241 udp-receiver CALL  break(0x8065000)
  1241 udp-receiver RET   break 0
  1241 udp-receiver CALL  mlock(0xbdbeaeb0,8)
  1241 udp-receiver RET   mlock 0
  1241 udp-receiver CALL  __sysctl(0xbfbfec60,2,0xbfbfec58,0xbfbfec5c,0,0)
  1241 udp-receiver RET   __sysctl 0
  1241 udp-receiver CALL  getrlimit(3,0xbfbfecc8)
  1241 udp-receiver RET   getrlimit 0
  1241 udp-receiver CALL  __sysctl(0xbfbfec30,2,0xbfbfec28,0xbfbfec2c,0,0)
  1241 udp-receiver RET   __sysctl 0
  1241 udp-receiver CALL  mprotect(0xbfa01000,0x1000,0)
  1241 udp-receiver RET   mprotect 0
  1241 udp-receiver CALL  __sigprocmask14(0,0,0xbdbea580)
  1241 udp-receiver RET   __sigprocmask14 0
  1241 udp-receiver CALL  __sysctl(0xbfbfecf0,2,0xbfbfece8,0xbfbfecec,0,0)
  1241 udp-receiver RET   __sysctl 0
  1241 udp-receiver CALL  write(2,0xbfbfe370,0x18)
  1241 udp-receiver GIO   fd 2 wrote 24 bytes
       "Udp-receiver 2006-06-19
       "
  1241 udp-receiver RET   write 24/0x18
  1241 udp-receiver CALL 
__sigaction_sigtramp(2,0xbfbfec40,0xbfbfec20,0xbdb6fbe4,1)
  1241 udp-receiver RET   __sigaction_sigtramp 0
  1241 udp-receiver CALL  socket(1,2,0)
  1241 udp-receiver RET   socket 3
  1241 udp-receiver CALL  fcntl(3,2,1)
  1241 udp-receiver RET   fcntl 0
  1241 udp-receiver CALL  connect(3,0xbdbd6420,0xe)
  1241 udp-receiver NAMI  "/var/run/log"
  1241 udp-receiver RET   connect 0
  1241 udp-receiver CALL  socket(2,2,0)
  1241 udp-receiver RET   socket 4
  1241 udp-receiver CALL  ioctl(4,SIOCGIFCONF,0xbfbfde50)
  1241 udp-receiver GIO   fd 4 wrote 8 bytes
       "\M^@\f\0\0p\M-^\M-?\M-?"
  1241 udp-receiver GIO   fd 4 read 8 bytes
       "\f\^A\0\0p\M-^\M-?\M-?"
  1241 udp-receiver RET   ioctl 0
  1241 udp-receiver CALL  ioctl(4,SIOCGIFBRDADDR,0xbfbfde70)
  1241 udp-receiver GIO   fd 4 wrote 32 bytes
       "rtk0\0\0\0\0\0\0\0\0\0\0\0\0\^T\^R\^A\0\^F\^D\^F\0rtk0\0\^O\M-j]"
  1241 udp-receiver GIO   fd 4 read 32 bytes
       "rtk0\0\0\0\0\0\0\0\0\0\0\0\0\^P\^B\0\0\M-@\M-(\^A\^?\0\0\0\0\0\0\0\0"
  1241 udp-receiver RET   ioctl 0
  1241 udp-receiver CALL  ioctl(4,SIOCGIFBRDADDR,0xbfbfde70)
  1241 udp-receiver GIO   fd 4 wrote 32 bytes
       "rtk0\0\0\0\0\0\0\0\0\0\0\0\0\^P\^B\0\0\M-@\M-(\^A\^?\0\0\0\0\0\0\0\0"
  1241 udp-receiver GIO   fd 4 read 32 bytes
       "rtk0\0\0\0\0\0\0\0\0\0\0\0\0\^P\^B\0\0\M-@\M-(\^A\^?\0\0\0\0\0\0\0\0"
  1241 udp-receiver RET   ioctl 0
  1241 udp-receiver CALL  close(4)
  1241 udp-receiver RET   close 0
  1241 udp-receiver CALL  socket(2,2,0)
  1241 udp-receiver RET   socket 4
  1241 udp-receiver CALL  setsockopt(4,0xffff,0x200,0xbfbfeabc,4)
  1241 udp-receiver RET   setsockopt 0
  1241 udp-receiver CALL  bind(4,0xbfbfead0,0x10)
  1241 udp-receiver RET   bind -1 errno 49 Can't assign requested address
  1241 udp-receiver CALL  issetugid
  1241 udp-receiver RET   issetugid 0
  1241 udp-receiver CALL  issetugid
  1241 udp-receiver RET   issetugid 0
  1241 udp-receiver CALL  break(0x8066000)
  1241 udp-receiver RET   break 0
  1241 udp-receiver CALL  open(0xbfbfdd40,0,0xbfbfdcb4)
  1241 udp-receiver NAMI  "/usr/share/nls/nls.alias.db"
  1241 udp-receiver RET   open -1 errno 2 No such file or directory
  1241 udp-receiver CALL  open(0xbdbbfd53,0,0xbfbfe0e8)
  1241 udp-receiver NAMI  "/usr/share/nls/nls.alias"
  1241 udp-receiver RET   open 5
  1241 udp-receiver CALL  fcntl(5,2,1)
  1241 udp-receiver RET   fcntl 0
  1241 udp-receiver CALL  __fstat13(5,0xbfbfe0c0)
  1241 udp-receiver RET   __fstat13 0
  1241 udp-receiver CALL  mmap(0,0x5f0,1,2,5,0,0,0)
  1241 udp-receiver RET   mmap -1112457216/0xbdb14000
  1241 udp-receiver CALL  close(5)
  1241 udp-receiver RET   close 0
  1241 udp-receiver CALL  munmap(0xbdb14000,0x5f0)
  1241 udp-receiver RET   munmap 0
  1241 udp-receiver CALL  open(0xbfbfe610,0,0xbfbfe168)
  1241 udp-receiver NAMI  "/usr/share/nls/C/libc.cat"
  1241 udp-receiver RET   open 5
  1241 udp-receiver CALL  __fstat13(5,0xbfbfe150)
  1241 udp-receiver RET   __fstat13 0
  1241 udp-receiver CALL  mmap(0,0x105b,1,1,5,0,0,0)
  1241 udp-receiver RET   mmap -1112461312/0xbdb13000
  1241 udp-receiver CALL  close(5)
  1241 udp-receiver RET   close 0
  1241 udp-receiver CALL  munmap(0xbdb13000,0x105b)
  1241 udp-receiver RET   munmap 0
  1241 udp-receiver CALL  write(2,0xbfbfe170,0x3d)
  1241 udp-receiver GIO   fd 2 wrote 61 bytes
       "bind socket to 6.4.6.0:9000 (Can't assign requested address)
       "
  1241 udp-receiver RET   write 61/0x3d
  1241 udp-receiver CALL  exit(1)


It seems that udpcast cannot bind to rtk0. I will try a different NIC, but
Id still like to get it to work.

Any help appreciated.

Cheers,
Petr