summaryrefslogtreecommitdiff
path: root/net/core/net_namespace.c
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2013-04-19 05:43:44 +0400
committerSimon Horman <horms@verge.net.au>2013-04-23 06:43:06 +0400
commit38561437d056b11f679f9735d68ad597ba67dc84 (patch)
treec6f67709dac0112b4bd59b5a861a3008fc67ec7f /net/core/net_namespace.c
parent4bfbfbf91fb3a29a775f6ea11e3a8198685590ae (diff)
downloadlinux-38561437d056b11f679f9735d68ad597ba67dc84.tar.xz
ipvs: Use network byte order for sync message size
struct ip_vs_sync_mesg and ip_vs_sync_mesg_v0 are both sent across the wire and used internally to store IPVS synchronisation messages. Up until now the scheme used has been to convert the size field to network byte order before sending a message on the wire and convert it to host byte order when sending a message. This patch changes that scheme to always treat the field as being network byte order. This seems appropriate as the structure is sent across the wire. And by consistently treating the field has network byte order it is now possible to take advantage of sparse to flag any future miss-use. Acked-by: Julian Anastasov <ja@ssi.bg> Acked-by: Hans Schillstrom <hans@schillstrom.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/core/net_namespace.c')
0 files changed, 0 insertions, 0 deletions