Skip to content
  • Steven Whitehouse's avatar
    [DECnet]: Endian annotation and fixes for DECnet. · c4ea94ab
    Steven Whitehouse authored
    
    
    The typedef for dn_address has been removed in favour of using __le16
    or __u16 directly as appropriate. All the DECnet header files are
    updated accordingly.
    
    The byte ordering of dn_eth2dn() and dn_dn2eth() are both changed
    since just about all their callers wanted network order rather than
    host order, so the conversion is now done in the functions themselves.
    
    Several missed endianess conversions have been picked up during the
    conversion process. The nh_gw field in struct dn_fib_info has been
    changed from a 32 bit field to 16 bits as it ought to be.
    
    One or two cases of using htons rather than dn_htons in the routing
    code have been found and fixed.
    
    There are still a few warnings to fix, but this patch deals with the
    important cases.
    
    Signed-off-by: default avatarSteven Whitehouse <steve@chygwyn.com>
    Signed-off-by: default avatarPatrick Caulfield <patrick@tykepenguin.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c4ea94ab