Operating System - HP-UX
1849860 Members
1884 Online
104044 Solutions
New Discussion

errorno 226 indicates Address allready in use

 
Soma_1
Occasional Advisor

errorno 226 indicates Address allready in use

Iam doing "dhcpclient -b lan0 -l 3"
on my machine and getting a error that says "Address allready in use.
The /etc/dhcpclient.data file created seem to have the right information.

Can some one help me!

Note: Iam also attaching the output of the "dhcpclient -b lan0 -l 3".

2 REPLIES 2
Rita C Workman
Honored Contributor

Re: errorno 226 indicates Address allready in use

The obvious first...the port is busy. Why? Probably because something was using the port and aborted, the port is not properly released and bang....the error.

To read it in more technical terms...from the following document (albeit old, but informative)
1993 Nov 11
Description : Socket and TCP port address can be left open if server program aborts
Document Id : 4701228098

"If a BSD IPC server program is aborted while there is an incoming
connection request in the listen queue, the VC socket and the TCP
path record associated with the incoming connection are not released.
Subsequent calls to bind() will fail with errno set to EADDRINUSE (226).
The socket and the TCP path record can only be released by shutting
down and restarting NS-ARPA.***Cause Text***
The so_down_pathref in a socket record normally contains the index
of the associated TCP path record.
When a BSD IPC socket is in the listen queue the field so_down_pathref
used for another purpose. The routine in OUTPRO which cleans up
sockets in the listen queue was expecting so_down_pathref to contain
a valid TCP path record index.

Looks like you've got some hunting ahead for you...but I hope this helped alittle at least,
Regards,
Rita
Klaus Crusius
Trusted Contributor

Re: errorno 226 indicates Address allready in use


For hpux11 there is a software package "lsof" available from hp software depot, which can help idnetify which process is already using your port number.

see also:
http://devresource.hp.com/CXX/Forums/hpux-devtools/hpux-devtools.0004/0021.html

(Try lsof -i|grep LISTEN).

Cheers, Klaus
There is a live before death!