Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Posts
    4

    Unanswered: SetSockOpt In FreeBSD 5.2

    Hi all,

    Any Perl programmers out there that can help me?

    I'm using a script which uses setsockopt in FreeBSD vers. 5.2. The result is that I get an error message back stating "Setsockopt: Protocol not available". Any ideas how to get it to work?

    Here's the lines:

    my $mreq = pack("C8", split(/\./, $1.$2.".".$opt_I));
    # IPPROTO_IP = 0
    # IP_ADD_MEMBERSHIP = 35
    $sock->setsockopt(0, 35, $mreq) ||
    die "ERROR: setsockopt: $!\n";

  2. #2
    Join Date
    Apr 2004
    Posts
    4

    Post Re: SetSockOpt In FreeBSD 5.2 - updated

    Originally posted by JonTall
    Hi all,

    Any Perl programmers out there that can help me?

    I'm using a script which uses setsockopt in FreeBSD vers. 5.2. The result is that I get an error message back stating "Setsockopt: Protocol not available". Any ideas how to get it to work?

    Here's the lines:

    my $mreq = pack("C8", split(/\./, $1.$2.".".$opt_I));
    # IPPROTO_IP = 0
    # IP_ADD_MEMBERSHIP = 35
    $sock->setsockopt(0, 35, $mreq) ||
    die "ERROR: setsockopt: $!\n";
    UPDATE
    I've looked through some other threads that relate to some of the same problems and found out that setsockopt is part of IO:OCKET module, correct? So if the module is missing I suppose I need to install it, or is the kernel a part of the problem? Am I on the right track?

    Any help would be appreciated

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •