~ubuntu-branches/ubuntu/lucid/nfs-utils/lucid

« back to all changes in this revision

Viewing changes to utils/statd/callback.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-06-06 01:19:54 UTC
  • mto: (12.1.24 karmic)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20090606011954-ojnwbumhfwgivicw
Tags: upstream-1.2.0
ImportĀ upstreamĀ versionĀ 1.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#ifdef HAVE_CONFIG_H
10
10
#include <config.h>
11
11
#endif
 
12
 
 
13
#include <arpa/inet.h>
 
14
 
 
15
#include "rpcmisc.h"
12
16
#include "misc.h"
13
17
#include "statd.h"
14
18
#include "notlist.h"
15
 
#include <arpa/inet.h>
16
19
 
17
20
/* Callback notify list. */
18
21
/* notify_list *cbnl = NULL; ... never used */
29
32
{
30
33
        notify_list    *lp, *call;
31
34
        static char    *result = NULL;
32
 
        char *ip_addr = xstrdup(inet_ntoa(svc_getcaller(rqstp->rq_xprt)
33
 
                                          ->sin_addr));
 
35
        struct sockaddr_in *sin = nfs_getrpccaller_in(rqstp->rq_xprt);
 
36
        char *ip_addr = xstrdup(inet_ntoa(sin->sin_addr));
34
37
 
35
38
        dprintf(N_DEBUG, "Received SM_NOTIFY from %s, state: %d",
36
39
                                argp->mon_name, argp->state);