setsockopt() error



hi all , when i run the program on target host, i find setsockopt(socket, IPPROTO_IP, IP_ADD_MEMBERSHIP,
(const char*)&imr, sizeof (struct ip_mreq)
return failse, and ENODEV is set,
but i find it runs well in another host which in the same lan

Relevant Pages

  • setsockopt() error
    ... hi all, when i run the program on target host, i find setsockopt(socket, IPPROTO_IP, IP_ADD_MEMBERSHIP, ... &imr, sizeof (struct ip_mreq) ... return failse, and ENODEV is set, ...
    (comp.unix.programmer)
  • Re: setsockopt() error
    ... &imr, sizeof (struct ip_mreq) ... return failse, and ENODEV is set, ... but i find it runs well in another host which in the same lan ...
    (comp.os.linux.development.apps)