From owner-freebsd-hackers Mon Oct 11 23:32:59 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by hub.freebsd.org (Postfix) with ESMTP id EF5F8152AF for ; Mon, 11 Oct 1999 23:32:51 -0700 (PDT) (envelope-from singuru@wipinfo.soft.net) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id MAA11059 for ; Tue, 12 Oct 1999 12:02:07 +0500 (GMT) Received: from tagore.wipinfo.soft.net (ncrtagore.wipinfo.soft.net [192.168.205.3]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with SMTP id MAA29171 for <@vayu:freebsd-hackers@FreeBSD.ORG>; Tue, 12 Oct 1999 12:02:47 +0500 (GMT) Message-ID: <9910121209.AA23161@tagore.wipinfo.soft.net> Subject: getsockopt not working?? To: freebsd-hackers@FreeBSD.ORG, linux-net@vger.rutgers.edu Date: Tue, 12 Oct 1999 12:08:50 +0530 (IST) From: "S.RadhaKrishna" Reply-To: singuru@wipinfo.soft.net Return-Reply-To: singuru@wipinfo.soft.net Location: Wipro Infotech, Mission Rd., Bangalore India X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, I'm using getsockopt to get IP_MULTICAST_TTL. But it always returns ttl as 0. It doesn't fail either. Here is the call I'm using : ----------- int get_ttl=0; u_char ttlSize=0; if (getsockopt(sockfd, IPPROTO_IP, IP_MULTICAST_TTL, (void*)&get_ttl,(int *)&ttlSize) < 0) { printf("ttl.c:get ttl failed\n"); perror("getsockopt"); exit(1); } ---------- I used setsockopt to set ttl value. It works fine (I saw the packets on the network using a sniffer). But getsockopt returns always 0. Any help on this would be appreciated. regards radha To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message