Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2001 12:55:28 -0500
From:      Dennis Rockwell <dennis@bbn.com>
To:        "Sergey V. Artjushkin" <skiv@caravan.ru>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: get client ip from accept(2) ? 
Message-ID:  <87326.1006970128@bbn.com>
In-Reply-To: Message from "Sergey V. Artjushkin" <skiv@caravan.ru>  <3C0520DB.6090009@caravan.ru> .

next in thread | previous in thread | raw e-mail | index | archive | help
On 28 Nov, "Sergey V. Artjushkin" wrote:

> if ( (l_connfd = accept(l_fd,(struct sockaddr *) l_cliaddr, &l_addrlen))
> < 0)
>         { log_error("accept error"); exit(0); }

Don't you need an '&' before l_cliaddr above?

Dennis



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87326.1006970128>