[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zebra
Subject:    [zebra 3588] Re: Request for feature (BGP)
From:       Kunihiro Ishiguro <kunihiro () zebra ! org>
Date:       2000-04-28 4:43:56
[Download RAW message or body]

>> No - they need to remain - but could be re-written as ntohl to be
>> clearer.
>
>Well, I guess that all depends on what is being stored in the structure,
>but I can say for certain that a htonl on an object about to be compared
>with < > = is surely wrong.  ntohl and htonl are not always inverse
>functions, and should never be treated as such.
>
>A ntohl would be needed if the stuct stores the data in network byte
>order.

Exactly.  That is my fault.  Now it uses ntohl() function.
-- 
Kunihiro Ishiguro

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic