Trond Davidsen writes: > in the file pptp.c in function PptpHookUp about line 481: > > /* Get session info */ > memset(&self_addr, 0, sizeof(self_addr)); > self_addr.sin_family = AF_INET; > self_addr.sin_len = sizeof(self_addr); > peer_addr = self_addr; > > shouldn't peer_addr get it's own structure? When I insert logging after > this, self_addr and peer_addr is the same addres, which don't make any > sense to me.
peer_addr is a separate structure. You're probably seeing the same IP address because you're using inet_ntoa() which returns a static buffer. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message