9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@cse.psu.edu
Subject: [9fans] ip bug?
Date: Mon, 14 Jan 2008 16:31:27 -0500	[thread overview]
Message-ID: <2306f876a0a7449b68b07751e72e37e1@quanstro.net> (raw)

i have this network configuration.  one network.
two sets of ip addresses.

	; cat /net.alt/iproute
	0.0.0.0         /96  65.14.39.129    4    none   0
	65.0.0.0        /128 65.0.0.0        4b   ifc    -
	65.14.39.128    /123 65.14.39.128    4i   ifc    0
	65.14.39.128    /128 65.14.39.128    4b   ifc    -
	65.14.39.131    /128 65.14.39.131    4u   ifc    0
	65.14.39.159    /128 65.14.39.159    4b   ifc    -
	65.255.255.255  /128 65.255.255.255  4b   ifc    -
	12.0.0.0        /128 12.0.0.0        4b   ifc    -
	12.51.113.0     /123 12.51.113.0     4i   ifc    0
	12.51.113.0     /128 12.51.113.0     4b   ifc    -
	12.51.113.5     /128 12.51.113.5     4u   ifc    0
	12.51.113.31    /128 12.51.113.31    4b   ifc    -
	12.255.255.255  /128 12.255.255.255  4b   ifc    -
	255.255.255.255 /128 255.255.255.255 4b   ifc    -

this is my initial arp cache

	; cat /net.alt/arp
	ether  OK       65.14.39.129                             000ff72da214                    
	ether  OK       65.14.39.130                             003018ab9f39                    

now if i

	; ip/ping /net.alt/icmp!12.51.113.7!0

i usually get one packet back and snoopy reports

	236803 ms 
		ether(s=00304881bd63 d=0030488ef4fb pr=0800 ln=78)
		ip(s=12.51.113.5 d=12.51.113.7 id=474f frag=0000 ttl=255 pr=1 ln=64)
		icmp(t=EchoReq c=0 ck=3fe2 id=6608 seq=5f12)
		dump(00000000202122232425262728292a2b2c2d2e2f303132333435363738393a3b)
	236902 ms 
		ether(s=0030488ef4fb d=00304881bd63 pr=0800 ln=82)
		ip(s=12.51.113.7 d=12.51.113.5 id=be8b frag=0000 ttl=255 pr=1 ln=64)
		icmp(t=EchoRep c=0 ck=47e2 id=6608 seq=5f12)
		dump(00000000202122232425262728292a2b2c2d2e2f303132333435363738393a3b)

all subsequent pings are unanswered.  then my arp cache looks like this

	; cat /net.alt/arp
	ether  OK       65.14.39.129                             000ff72da214                    
	ether  OK       65.14.39.130                             003018ab9f39                    
	ether  OK       12.51.113.7                              000ff72da214                    

for some reason, 12.51.113.7 is assigned the same ea as the gw for the 65. network

so the question is, am i doing something wrong or is this a mistake in the
arp code?

- erik


             reply	other threads:[~2008-01-14 21:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-14 21:31 erik quanstrom [this message]
2008-01-15  0:02 ` Russ Cox
2008-01-15  0:50   ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2306f876a0a7449b68b07751e72e37e1@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).