diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-08-27 16:57:23 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-09-29 18:13:38 -0400 |
commit | 1b333c54a15a746ff6b04a684b0845a66daacef2 (patch) | |
tree | d0a09595e34db6b176fbe5f59b60f0c45ee7cd85 /include | |
parent | c2526f42711d93f3455f92a82b5e586880fc44be (diff) |
lockd: address-family independent printable addresses
Knowing which source address is used for communicating with remote NLM
services can be helpful for debugging configuration problems on hosts
with multiple addresses.
Keep the dprintk debugging here, but adapt it so it displays AF_INET6
addresses properly. There are also a couple of dprintk clean-ups as
well.
At some point we will aggregate the helpers that display presentation
format addresses into a single set of shared helpers.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/lockd/lockd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index dbb87ab282e8..0691efbd0b34 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
@@ -61,6 +61,9 @@ struct nlm_host { | |||
61 | struct list_head h_granted; /* Locks in GRANTED state */ | 61 | struct list_head h_granted; /* Locks in GRANTED state */ |
62 | struct list_head h_reclaim; /* Locks in RECLAIM state */ | 62 | struct list_head h_reclaim; /* Locks in RECLAIM state */ |
63 | struct nsm_handle * h_nsmhandle; /* NSM status handle */ | 63 | struct nsm_handle * h_nsmhandle; /* NSM status handle */ |
64 | |||
65 | char h_addrbuf[48], /* address eyecatchers */ | ||
66 | h_saddrbuf[48]; | ||
64 | }; | 67 | }; |
65 | 68 | ||
66 | struct nsm_handle { | 69 | struct nsm_handle { |
@@ -70,6 +73,7 @@ struct nsm_handle { | |||
70 | struct sockaddr_in sm_addr; | 73 | struct sockaddr_in sm_addr; |
71 | unsigned int sm_monitored : 1, | 74 | unsigned int sm_monitored : 1, |
72 | sm_sticky : 1; /* don't unmonitor */ | 75 | sm_sticky : 1; /* don't unmonitor */ |
76 | char sm_addrbuf[48]; /* address eyecatcher */ | ||
73 | }; | 77 | }; |
74 | 78 | ||
75 | /* | 79 | /* |