"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "checkpeerlocal.c" between
leafnode-1.11.11.tar.gz and leafnode-1.11.12.tar.bz2

About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.

checkpeerlocal.c  (leafnode-1.11.11):checkpeerlocal.c  (leafnode-1.11.12.tar.bz2)
skipping to change at line 211 skipping to change at line 211
/* obtain peer address */ /* obtain peer address */
if (getpeername(sock, &addr.sa, &size)) { if (getpeername(sock, &addr.sa, &size)) {
if (errno == ENOTSOCK) if (errno == ENOTSOCK)
return 1; return 1;
else else
return -1; return -1;
} }
} }
#endif #endif
#ifdef HAVE_IPV6
if (IN6_IS_ADDR_V4MAPPED(&addr.sin6.sin6_addr)) { if (IN6_IS_ADDR_V4MAPPED(&addr.sin6.sin6_addr)) {
/* map to IPv4 */ /* map to IPv4 */
struct sockaddr_in si; struct sockaddr_in si;
D((printf("IPv4 mapped IPv6 address: "))); D((printf("IPv4 mapped IPv6 address: ")));
extract_v6mappedv4(&addr.sin6, &si); extract_v6mappedv4(&addr.sin6, &si);
memcpy(&addr.sin, &si, sizeof(struct sockaddr_in)); memcpy(&addr.sin, &si, sizeof(struct sockaddr_in));
D(pat(&addr.sa)); D(pat(&addr.sa));
} }
#endif
if (getifaddrs(&ifap) != 0) { if (getifaddrs(&ifap) != 0) {
D(printf("getifaddrs failed: %s\n", strerror(errno))); D(printf("getifaddrs failed: %s\n", strerror(errno)));
return -1; return -1;
} }
for(ii=ifap; ii!=NULL; ii=ii->ifa_next) { for(ii=ifap; ii!=NULL; ii=ii->ifa_next) {
/* skip interfaces without address */ /* skip interfaces without address */
if (!ii->ifa_addr) continue; if (!ii->ifa_addr) continue;
/* skip interfaces that are down */ /* skip interfaces that are down */
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)