diff options
author | Julian Anastasov <ja@ssi.bg> | 2013-04-17 16:50:49 -0400 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2013-04-22 22:43:05 -0400 |
commit | 0a925864c1038a78fd1cc9b048d9a2b1ae04b63e (patch) | |
tree | 1e7816ea1ad26b9945b91d001450646ac489958a /include/net | |
parent | f33c8b94fd51aeb0bc02f87ee172691ddf7936b6 (diff) |
ipvs: fix sparse warnings for some parameters
Some service fields are in network order:
- netmask: used once in network order and also as prefix len for IPv6
- port
Other parameters are in host order:
- struct ip_vs_flags: flags and mask moved between user and kernel only
- sync state: moved between user and kernel only
- syncid: sent over network as single octet
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip_vs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index f9f5b057b480..4c062ccff9aa 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -678,7 +678,7 @@ struct ip_vs_service_user_kern { | |||
678 | u16 af; | 678 | u16 af; |
679 | u16 protocol; | 679 | u16 protocol; |
680 | union nf_inet_addr addr; /* virtual ip address */ | 680 | union nf_inet_addr addr; /* virtual ip address */ |
681 | u16 port; | 681 | __be16 port; |
682 | u32 fwmark; /* firwall mark of service */ | 682 | u32 fwmark; /* firwall mark of service */ |
683 | 683 | ||
684 | /* virtual service options */ | 684 | /* virtual service options */ |
@@ -686,14 +686,14 @@ struct ip_vs_service_user_kern { | |||
686 | char *pe_name; | 686 | char *pe_name; |
687 | unsigned int flags; /* virtual service flags */ | 687 | unsigned int flags; /* virtual service flags */ |
688 | unsigned int timeout; /* persistent timeout in sec */ | 688 | unsigned int timeout; /* persistent timeout in sec */ |
689 | u32 netmask; /* persistent netmask */ | 689 | __be32 netmask; /* persistent netmask or plen */ |
690 | }; | 690 | }; |
691 | 691 | ||
692 | 692 | ||
693 | struct ip_vs_dest_user_kern { | 693 | struct ip_vs_dest_user_kern { |
694 | /* destination server address */ | 694 | /* destination server address */ |
695 | union nf_inet_addr addr; | 695 | union nf_inet_addr addr; |
696 | u16 port; | 696 | __be16 port; |
697 | 697 | ||
698 | /* real server options */ | 698 | /* real server options */ |
699 | unsigned int conn_flags; /* connection flags */ | 699 | unsigned int conn_flags; /* connection flags */ |
@@ -721,7 +721,7 @@ struct ip_vs_service { | |||
721 | __u32 fwmark; /* firewall mark of the service */ | 721 | __u32 fwmark; /* firewall mark of the service */ |
722 | unsigned int flags; /* service status flags */ | 722 | unsigned int flags; /* service status flags */ |
723 | unsigned int timeout; /* persistent timeout in ticks */ | 723 | unsigned int timeout; /* persistent timeout in ticks */ |
724 | __be32 netmask; /* grouping granularity */ | 724 | __be32 netmask; /* grouping granularity, mask/plen */ |
725 | struct net *net; | 725 | struct net *net; |
726 | 726 | ||
727 | struct list_head destinations; /* real server d-linked list */ | 727 | struct list_head destinations; /* real server d-linked list */ |