Message-ID: <3A87733F.92BCC207@ga.prestige.net> From: "Jeremia d." Newsgroups: alt.linux,alt.os.linux,alt.os.linux.slackware,alt.uu.comp.os.linux,alt.uu.comp.os.linux.questions,comp.os.linux,comp.os.linux.admin,comp.security.unix Subject: /proc/net/tcp boundary="------------08284F2491785FACD5D52192" Lines: 52 Date: Mon, 12 Feb 2001 21:33:58 GMT NNTP-Posting-Host: 63.112.194.163 X-Complaints-To: administrator@prestige.net X-Trace: skycache.prestige.net 982013638 63.112.194.163 (Mon, 12 Feb 2001 16:33:58 EST) NNTP-Posting-Date: Mon, 12 Feb 2001 16:33:58 EST Organization: Prestige Communications/ Prestige.Net Xref: newsread1.funet.fi alt.linux:37822 alt.os.linux:106343 alt.os.linux.slackware:30480 alt.uu.comp.os.linux.questions:10223 comp.security.unix:11108 --------------08284F2491785FACD5D52192 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ok I understand converting the port but I am still stuck on the ip address part, any help will be appreciated.. Could somebody explain the conversion of the output of this file? Like O'Reilly's example 0100007F:0017 = rem_address then they reverse the ordering of the bytes in the IP address part. 7F000001:0017 Then they seperate the bytes of the address 7F 00 00 01 : 0017 Then hexadecimal-to-decimal conversion on each: 127 0 0 1 : 23 -- A little experience often upsets a lot of theory. --------------08284F2491785FACD5D52192 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Ok I understand converting the port but I am still stuck on the ip address part, any help will be appreciated..

Could somebody explain the conversion of the output of this file?
Like O'Reilly's example
0100007F:0017 = rem_address
then they reverse the ordering of the bytes in the IP address part.
7F000001:0017

Then they seperate the bytes of the address
7F 00 00 01 : 0017

Then hexadecimal-to-decimal conversion on each:

127 0 0 1 : 23

-- 
A little experience often upsets a lot of theory.
 

  --------------08284F2491785FACD5D52192--