mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
netpoll: store local and remote ip in net-endian
Allows for the removal of byteswapping in some places and the removal of HIPQUAD (replaced by %pI4). Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f940964901
commit
e7557af56a
3 changed files with 20 additions and 23 deletions
|
@ -18,7 +18,7 @@ struct netpoll {
|
|||
const char *name;
|
||||
void (*rx_hook)(struct netpoll *, int, char *, int);
|
||||
|
||||
u32 local_ip, remote_ip;
|
||||
__be32 local_ip, remote_ip;
|
||||
u16 local_port, remote_port;
|
||||
u8 remote_mac[ETH_ALEN];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue