]> git.michaelhowe.org Git - packages/o/openafs.git/commit
FBSD: switch afsi_SetServerIPRank implementation
authorBen Kaduk <kaduk@mit.edu>
Sat, 3 Dec 2011 19:37:09 +0000 (14:37 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 9 Dec 2011 04:38:05 +0000 (20:38 -0800)
commit196895f58b086110db3f020e36fb029e14fc619b
treeac85e944dffa411e996c3b31b8f277f688eed4ad
parent2ad4d31d40683e6e603b117043e154f0db97c3c8
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'.

Reviewed-on: http://gerrit.openafs.org/6203
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 1ef8dc3dfbddcbe5610c276afc627c9fcfe30a65)

Change-Id: Icb338331c879dc4cbd69ae565b115de000e8d3d0
Reviewed-on: http://gerrit.openafs.org/6235
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/afs/afs_server.c