Re: GetIpAddrTable

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Norman,

I just wanted to check how things are going and whether community member's
suggestion is useful for you. If there is any question, please feel free to
join the community and we are here to support you at your convenience.
Thanks for your understanding!

Best Regards,

Terry Fei[MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
From: "Norman Diamond" <ndiamond@xxxxxxxxxxxxxxxx>
References: <OuNuYRnQGHA.5812@xxxxxxxxxxxxxxxxxxxx>
<eDtMT$oQGHA.5092@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: GetIpAddrTable
Date: Wed, 8 Mar 2006 18:35:53 +0900
Lines: 41
MIME-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="iso-2022-jp";
reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
Message-ID: <uESh0OpQGHA.2628@xxxxxxxxxxxxxxxxxxxx>
Newsgroups: microsoft.public.win32.programmer.networks
NNTP-Posting-Host: p1185-ipad501marunouchi.tokyo.ocn.ne.jp 222.148.32.185
Path: TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
Xref: TK2MSFTNGXA03.phx.gbl
microsoft.public.win32.programmer.networks:29170
X-Tomcat-NG: microsoft.public.win32.programmer.networks

I think that the order which you see in memory and the order which I see
in
memory are the same. I think that order is network order not host order.

Load the DWORD from memory into a register and you get 0x681010ac. Before
doing any further processing in the host you have to call ntohl.

"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:eDtMT$oQGHA.5092@xxxxxxxxxxxxxxxxxxxxxxx
Hi,Norman!

dwAddr and dwMask sit exactly in host order and not net and here example
:
My IP in lan is 172.16.16.104 what I see after return from the function
those are bytes ( in memory ) : ac 10 10 68 hex ( which is 172 16 16
104
decimal) , so ac sit in lowest byte and 68 in highest ( due to Intel's (
host ) byte order ( little endian ) ) of dword and network order demand
172 (ac hex ) to be in highest byte et al accordingly
Arkady

"Norman Diamond" <ndiamond@xxxxxxxxxxxxxxxx> wrote in message
news:OuNuYRnQGHA.5812@xxxxxxxxxxxxxxxxxxxxxxx

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iphlp/iphlp
/managing_ip_addresses_using_getipaddrtable.asp
says:
Note The DWORD objects dwAddr and dwMask are returned as numerical
values
in host byte order, not network byte order.

As far as I can tell, dwAddr and dwMask are returned as numerical
values
in
network byte order, not host byte order. I have to call ntohl to
convert
them.

The page doesn't say anything about the byte order of dwBCastAddr, but
that
doesn't matter. As far as I can tell, dwBCastAddr isn't a broadcast
address in any byte order or bit order.

Does anyone find more sensible information in these fields?






.



Relevant Pages

  • RE: How to exploit snmp
    ... The great thing about SNMP is the fact that it allow you to query the remote ... host and get tons of information about that host. ... What you wish to do now is to use a tool such as SNMPwalk or solarwinds SNMP ... It also sends the community string in clear ...
    (Security-Basics)
  • Re: non-disclosure of infrastructure problem a management issue?
    ... Bruce Byfield wrote: ... a corporation is open source, it doesn't stop being a corporation. ... But when a corporation claims to be host to a "community", ... called on the carpet by that community when they fail to act appropriately. ...
    (Fedora)
  • Blog hosting and blog software needed
    ... I am looking for a host somewhere that will host blogging software. ... I don't just want a blog for myself. ... I want to host a community so ... PHP seems to be a good langugage commnity to find this in. ...
    (comp.lang.php)
  • Perl and get_table()
    ... use SNMP; ... my $host = 'my_IP_ADDR'; ... my $community = 'community'; ... my %bla = %; ...
    (comp.lang.perl.modules)
  • Local Music Vibe Launches National Network Of Local Music Communities
    ... the reach of local bands and venues to a broader regional network. ... Local Music Vibe is an extension of the wildly successful Marin Local ... Music has done for Marin's music community is incredible, ... around the nation." ...
    (rec.music.makers)