FBSD: switch afsi_SetServerIPRank implementation
authorBen Kaduk <kaduk@mit.edu>
Sat, 3 Dec 2011 19:37:09 +0000 (14:37 -0500)
committerDerrick Brashear <shadow@dementix.org>
Sun, 4 Dec 2011 15:01:07 +0000 (07:01 -0800)
commit1ef8dc3dfbddcbe5610c276afc627c9fcfe30a65
treea48980fc37a384274178d736d97d6a671ba9f449
parentaefb10920740e537aa26d841d16302e6ce8e3d76
FBSD: switch afsi_SetServerIPRank implementation

Upstream has removed the ia_net{,mask} elements from
struct in_ifaddr, so we can no longer use them directly.
Switch to passing an rx_ifaddr_t (i.e. struct ifaddr*) in instead,
as that uses a slightly different codepath which still works
for our purposes.

We compile the kernel module with -Werror, so storing a pointer
(memcpy return value) in an int is forbidden, hence the conditional
declaration of 't'.

Change-Id: Ifefef88a353f4bd50a714ad88afa3a6f012fa3a1
Reviewed-on: http://gerrit.openafs.org/6203
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afs/afs_server.c