Subject: Netatalk: problems with zones >255 under NetBSD 1.3.1
To: (NetBSD/help Maillist) <netbsd-help@NetBSD.ORG>
From: David Brownlee <abs@anim.dreamworks.com>
List: port-mac68k
Date: 05/08/1998 01:05:04
Environment:
        We have a NetBSD/i386 1.3.1 box running the netatalk code from
        NetBSD.org (1.4b2) as a router between two groups here.

Description:
        We are seeing a problem where nbplkup (and the mac chooser) on
	zones with cable ranges >255 fail to pass through the netatalk
	box.

	GroupA						GroupB
	^^^^^^						^^^^^^
        Zones 200-250              +--------+           Zones 2-199
                           __(de0)_|netatalk|_(de1)__         251-64000
                                   | router |
                                   +--------+

            de0 -phase 2 -net 202 -addr 202.147 -zone "LKS_Anim_DC"
            de1 -phase 2 -net 93 -addr 93.151 -zone "Animation"
   
	All machines can see all zones and cable ranges, but machines
	in GroupA cannot see the contents of any zones in GroupB with
	a cable range of >255. Machines in GroupB can see the contents
	of all zones. netatalk router can see contents of all zones.

	From running tcpdump on the netatalk router it appears that the
	lookups for zones >255 (where the first octect is non-zero) are
	not passed through.

	The impact to the users is that GroupA cannot see most of the
	resources in GroupB, and tell us so, loudly :)

	It looks pretty much like a problem in the kernel netatalk code
	(atalkd is not involved in the nbplkup lookups).

	Does anyone have any idea of where to start looking on this, or
	even a fix? 

----------------------------------------

Trace from successful lookup:

de0 (client side)
^^^^^^^^^^^^^^^^^
0.202.198.nis > 0.104.0.nis: nbp-0x41  0 (23)
0.104.32.nis > 0.202.198.128: nbp-reply 0: "Router/DW/ANIMATIO[|atalk] 4
0.105.40.nis > 0.202.198.128: nbp-reply 0: "Admin:TB2Pro.402[|atalk](0)
0.104.69.nis > 0.202.198.128: nbp-reply 0: "DreamWorks Server[|atalk](0) 247
0.104.78.nis > 0.202.198.128: nbp-reply 0: "Greg:NU[|atalk](0) 250
0.104.130.nis > 0.202.198.128: nbp-reply 0: "Victor:Fil[|atalk](0) 251

de0 (remote side)
^^^^^^^^^^^^^^^^^
0.202.198.nis > 0.104.0.nis: nbp-0x41  0 (15)
0.104.32.nis > 0.202.198.128: nbp-reply 0: "Router/DW/ANIMATIO[|atalk] 4
0.105.40.nis > 0.202.198.128: nbp-reply 0: "Admin:TB2Pro.402[|atalk](0)
0.104.69.nis > 0.202.198.128: nbp-reply 0: "DreamWorks Server[|atalk](0) 247
0.104.78.nis > 0.202.198.128: nbp-reply 0: "Greg:NU[|atalk](0) 250
0.104.130.nis > 0.202.198.128: nbp-reply 0: "Victor:Fil[|atalk](0) 251

Trace from failed lookup:

de0 (client side)
^^^^^^^^^^^^^^^^^
00:34:50.565912 0.202.198.nis > 117.69.0.nis: nbp-0x41  0 (23)
00:34:50.565939 0.202.198.nis > 1.45.0.nis: nbp-0x41  0 (23)

de1 (remote side)
^^^^^^^^^^^^^^^^^
(nothing)

                David/absolute

         -=-  "There will not be a send-off, a funeral or mass"  -=-