]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/decnet/dn_nsp_in.c
[DECnet]: Endian annotation and fixes for DECnet.
authorSteven Whitehouse <steve@chygwyn.com>
Tue, 21 Mar 2006 06:42:39 +0000 (22:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 06:42:39 +0000 (22:42 -0800)
commitc4ea94ab3710eb2434abe2eab1a479c2dc01f8ac
tree72e07ca7d2d5fe2de31b3f5a4e64fa411efdf18d
parent2c7946a7bf45ae86736ab3b43d0085e43947945c
[DECnet]: Endian annotation and fixes for DECnet.

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: Steven Whitehouse <steve@chygwyn.com>
Signed-off-by: Patrick Caulfield <patrick@tykepenguin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 files changed:
include/linux/dn.h
include/net/dn.h
include/net/dn_dev.h
include/net/dn_fib.h
include/net/dn_neigh.h
include/net/dn_nsp.h
include/net/dn_route.h
include/net/flow.h
net/decnet/af_decnet.c
net/decnet/dn_dev.c
net/decnet/dn_fib.c
net/decnet/dn_neigh.c
net/decnet/dn_nsp_in.c
net/decnet/dn_nsp_out.c
net/decnet/dn_route.c
net/decnet/dn_rules.c
net/decnet/dn_table.c
net/decnet/sysctl_net_decnet.c