Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > NapShare (Cross-platform)
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Search Today's Posts Mark Forums Read

NapShare (Cross-platform) Download Napshare or Neonapster (GnucDNA 1.1.1.6) now
A fully automated MUTE Network P2P client made to run 24/7 unattended. Take a nap while it does the work! Supply a list of keywords and it will download overnight, also sharing whatever it gets. Runs natively on Linux, will also run on Windows. Napshare mute p2p file share peer anonymous.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old February 22nd, 2002
Unregistered
Guest
 
Posts: n/a
Default Network unreachable error

Hi,

Napshare is very stable. The only problem to keep it working for days is
that I get IPs like 255.255.255.255:6346 (and others) in my gnutella host cacher. Those IPs cause messages like 'network unreachable (retrying)'. Moreover, napshare keeps retrying only those addresses. This makes any other connection impossible. I always have to remove it manually from the host cacher. Shouldn't those IPs which cause 'network unreachable' messages be automatically discarded from the host cacher?

How can I avoid this situation?

Thanks in advance,
Reply With Quote
  #2 (permalink)  
Old February 22nd, 2002
Morgwen's Avatar
lazy dragon - retired mod
 
Join Date: October 14th, 2001
Location: Germany
Posts: 2,927
Morgwen is flying high
Default

Which cacher do you use?

Morgwen
Reply With Quote
  #3 (permalink)  
Old February 22nd, 2002
Morgwen's Avatar
lazy dragon - retired mod
 
Join Date: October 14th, 2001
Location: Germany
Posts: 2,927
Morgwen is flying high
Default

Perhaps this link helps:

http://www.gnutellaforums.com/showth...&threadid=7473

Morgwen
Reply With Quote
  #4 (permalink)  
Old February 22nd, 2002
Unregistered
Guest
 
Posts: n/a
Default

Well, I meant the gnutellaNet host catcher list that appears on
the gnutellaNet window of Napshare.

I'm not running another host catcher to which napshare may connect.

I'm using a direct connection to internet and Debian GNU/Linux 2.2
Reply With Quote
  #5 (permalink)  
Old February 22nd, 2002
Morgwen's Avatar
lazy dragon - retired mod
 
Join Date: October 14th, 2001
Location: Germany
Posts: 2,927
Morgwen is flying high
Default

This is no problem of your cacher! I use them with other clients without problems...

This is a problem of Napshare - perhaps a bug?

Morgwen
Reply With Quote
  #6 (permalink)  
Old February 22nd, 2002
Unregistered
Guest
 
Posts: n/a
Default

Sorry, thanks for explaining the problem better. Easy fix:

in hosts.c add this line in check_valid_host()

if (ip == (guint32) 0xFFFFFFFF) return FALSE;

so now it looks like the below (tabs are messed up here).
let me know if there are any other problems like this, 255.255.255.255 seems to be the only one that does this.
Code:
gboolean check_valid_host(guint32 ip, guint16 port)
{
	if (!ip || !port) return FALSE;									/* IP == 0 || Port == 0					*/

	if (ip == (guint32) 0x01020304 || ip == (guint32) 0x01010101) return FALSE;	/* IP == 1.2.3.4 || IP == 1.1.1.1 	*/
	if ((ip & (guint32) 0xFF000000) == (guint32) 0x00000000) return FALSE;			/* IP == 0.0.0.0 / 8					 	*/
	if ((ip & (guint32) 0xFF000000) == (guint32) 0x7F000000) return FALSE;			/* IP == 127.0.0.0 / 8					*/
	if ((ip & (guint32) 0xFF000000) == (guint32) 0x0A000000) return FALSE;			/* IP == 10.0.0.0 / 8					*/
	if ((ip & (guint32) 0xFFF00000) == (guint32) 0xAC100000) return FALSE;			/* IP == 172.16.0.0 / 12				*/
	if ((ip & (guint32) 0xFFFF0000) == (guint32) 0xC0A80000) return FALSE;			/* IP == 192.168.0.0 / 16				*/
	if (ip  == (guint32) 0xFFFFFFFF) return FALSE;											/* IP == 255.255.255.255				*/

	return TRUE;
}
Reply With Quote
  #7 (permalink)  
Old February 25th, 2002
Unregistered
Guest
 
Posts: n/a
Default

This solved the problem. Thanks.

Another IP caused the same problem but I don't remember it. If it appears
again I'll tell you about it.
Reply With Quote
  #8 (permalink)  
Old February 26th, 2002
Unregistered
Guest
 
Posts: n/a
Default

Well, bad news.
I've got another IP which gave a network unreachable error:
224.18.19.8:6349

I still think it is better to discard an IP when a network unreachable
error is found, instead of retrying until the IP is manually removed.
Primarily, because no other IP is tried while napshare is connecting
to the unreachable address.

Is that possible?
Reply With Quote
  #9 (permalink)  
Old March 1st, 2002
Naptime
Guest
 
Posts: n/a
Default

That was a quick fix you could put in easy.
I updated CVS with a real fix that works. Try getting the anon CVS version, it has more automation features and filters too.
The whole block of 224.* IPs all fail for some reason with a 101 error. You could block them for now by doing something like this, but the fix on CVS is better. (0xE0 = 224 decimal)

if ((ip & (guint32) 0xFF000000) == (guint32) 0xE0000000) return FALSE;
Reply With Quote
  #10 (permalink)  
Old March 13th, 2002
Unregistered
Guest
 
Posts: n/a
Default

Same problem here, but with 224.*.*.* .
Oviously, some clients send bogous IPs. Therefore, we should ignore 0.*.*.*, 127.*.*.* and [224-255].*.*.*, optionally (for bigger LANs the next adresses may make sense) also 192.168.*.*, 172.[16-31].*.* and/or 10.*.*.*.

An option to ignore search results from these adresses would also be nice.

ObInfo:
255.255.255.255: subnet-local broadcast, non-routable, no TCP.
224-: broadcast, reserved and experimental, partially no TCP.
127.*.*.*: test range, .0.0.1 is loopback test
0.*.*.*: some boot protocol
0.0.0.0: unspecified adress

10.*.*.*, 172.[16-31].*.*, 192.168.*.*: site-local adresses, not routable (at least it sould not be) on the internet. You're free to use them in your LAN. If you have one of those and connect to the internet, you are firewalled (even if you use port forwarding).
See "push request" from the readme for additional infos.
(HINT: select "never send push request", except for large LANs with local gnutella server.)

Delaying/retrying on network unreachable is not a bad trick if you wait for a temporarx connection problem, but there should be a timeout.

BTW: There should be an option to automatically use the reflected IP.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
xolox network connectin error. rexmor User Experience 0 August 8th, 2002 07:18 PM
Network connection error Unregistered Support: General 0 June 25th, 2002 05:05 PM
it says network connection error Unregistered Support: General 1 November 26th, 2001 03:50 AM
now i am getting a network connction error? rabb2 Support: General 0 September 20th, 2001 12:08 AM
unreachable menu in tray mode Unregistered General Windows Support 1 September 11th, 2001 01:52 AM


All times are GMT -7. The time now is 02:17 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.