Patch-ID# 100412-02
Keywords: binding to same port
Synopsis: SunOS 4.1;4.1.1;4.1.2;4.1.3..: applications bind to same port if IP address supplied
Date: 06/Jan/93

SunOS release: 4.1 4.1.1 4.1.2 4.1.3

Topic: binding to same port

BugID's fixed with this patch: 1052740

Changes incorporated in this version:

 -02 Version:
 This -02 version patch refits the bug fix to sun4m and to SunOS 4.1.2 4.1.3.

Architectures for which this patch is available: sun4 sun4c sun4m sun3 sun3x

Problem description:

	When binding to address of <IP ADDRESS><PORT=0> the
	system picks the next available port between 1024-5000
	then wraps around. However the address pair <IP ADDRESS>
	<PORT=0> is treated as different from <INADDR_ANY><PORT=0>
	so the bind will give you the same port as another 
	application.

Fix description:

	The fix includes patched version of:

                in_pcb.o

Install instructions:

   As root install
   the appropriate sun4, sun4c, sun4m, sun3 or sun3x patches as follows:

        mv /sys/`arch -k`/OBJ/in_pcb.o /sys/`arch -k`/OBJ/in_pcb.o.FCS
        cp `arch -k`/{OS Version}/in_pcb.o /sys/`arch -k`/OBJ/in_pcb.o
        chmod 444 /sys/`arch -k`/OBJ/in_pcb.o
 
   Then a new kernel will need to be made

