Re: GetIpAddrTable



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: Odd news transit performance problem
    ... > box is idle - there's no significant contention for memory, disk, ... The host is fed news from only two sources which on average equates to 25 ... This still only pushes the disks to 50% busy. ... 11424 Kbytes allocated to network ...
    (freebsd-performance)
  • GetIpAddrTable
    ... in host byte order, not network byte order. ... I have to call ntohl to convert ... As far as I can tell, dwBCastAddr isn't a broadcast address in any byte order or bit order. ...
    (microsoft.public.win32.programmer.networks)
  • Re: GetIpAddrTable
    ... That showen v.v in the memory the order is host because to receive ... I think that order is network order not host order. ... As far as I can tell, dwBCastAddr isn't a broadcast ...
    (microsoft.public.win32.programmer.networks)
  • Re: GetIpAddrTable
    ... I just wanted to check how things are going and whether community member's ... doing any further processing in the host you have to call ntohl. ... in host byte order, not network byte order. ... As far as I can tell, dwBCastAddr isn't a broadcast ...
    (microsoft.public.win32.programmer.networks)
  • Re: 2 pc network - cant see host files from pc 2 on pc 1
    ... If the second card is lost on HOST PC then DSL Internet does not connect. ... Ditch the second network card in the one ...
    (microsoft.public.windowsxp.security_admin)