<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">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: Jan/06/93

Solaris release: 1.0 1.0.1 1.1 1.1C 

SunOS release: 4.1 4.1.1 4.1.2 4.1.3 4.1.3C

Topic: binding to same port

BugId's fixed with this patch: 1052740

Changes incorporated in this version:

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

Relevant Architecture: sparc
    NOTE: sun4 sun4c sun4m sun3 sun3x

Problem description:

	When binding to address of &lt;IP ADDRESS&gt;&lt;PORT=0&gt; the
	system picks the next available port between 1024-5000
	then wraps around. However the address pair &lt;IP ADDRESS&gt;
	&lt;PORT=0&gt; is treated as different from &lt;INADDR_ANY&gt;&lt;PORT=0&gt;
	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

</pre></body></html>