X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fstatd%2Fnotlist.h;h=f915ae1a88e80b62dd087cde6b3ba4e98b04eb31;hp=911c092a7ebcb2da3429ecf97ce3dd2ac08b7c41;hb=4f3f745c172202bf3846f8f1ee5d0a430b6014af;hpb=cf9569df886a4eda5ae55e5be3bce92c8f143373 diff --git a/utils/statd/notlist.h b/utils/statd/notlist.h index 911c092..f915ae1 100644 --- a/utils/statd/notlist.h +++ b/utils/statd/notlist.h @@ -13,21 +13,19 @@ struct notify_list { mon mon; /* Big honkin' NSM structure. */ struct in_addr addr; /* IP address for callback. */ - unsigned short port; /* port number for callback */ + in_port_t port; /* port number for callback */ short int times; /* Counter used for various things. */ int state; /* For storing notified state for callbacks. */ + char *dns_name; /* used for matching incoming + * NOTIFY requests */ struct notify_list *next; /* Linked list forward pointer. */ struct notify_list *prev; /* Linked list backward pointer. */ - u_int32_t xid; /* XID of MS_NOTIFY RPC call */ + uint32_t xid; /* XID of MS_NOTIFY RPC call */ time_t when; /* notify: timeout for re-xmit */ - int type; /* type of notify (REBOOT/CALLBACK) */ }; typedef struct notify_list notify_list; -#define NOTIFY_REBOOT 0 /* notify remote of our reboot */ -#define NOTIFY_CALLBACK 1 /* notify client of remote reboot */ - /* * Global Variables */ @@ -67,4 +65,3 @@ extern notify_list * nlist_gethost(notify_list *, char *, int); #define NL_MY_PROG(L) (NL_MY_ID((L)).my_prog) #define NL_MY_VERS(L) (NL_MY_ID((L)).my_vers) #define NL_WHEN(L) ((L)->when) -#define NL_TYPE(L) ((L)->type)