2016-01-21 08:50:56 +00:00
|
|
|
/*
|
|
|
|
* ntp_keyacc.h - key access stuff
|
|
|
|
*/
|
|
|
|
#ifndef NTP_KEYACC_H
|
|
|
|
#define NTP_KEYACC_H
|
|
|
|
|
|
|
|
typedef struct keyaccess KeyAccT;
|
|
|
|
struct keyaccess {
|
|
|
|
KeyAccT * next;
|
|
|
|
sockaddr_u addr;
|
|
|
|
};
|
|
|
|
|
2016-04-27 05:37:54 +00:00
|
|
|
extern KeyAccT* keyacc_new_push(KeyAccT *head, const sockaddr_u *addr);
|
|
|
|
extern KeyAccT* keyacc_pop_free(KeyAccT *head);
|
|
|
|
extern KeyAccT* keyacc_all_free(KeyAccT *head);
|
|
|
|
extern int keyacc_contains(const KeyAccT *head, const sockaddr_u *addr,
|
|
|
|
int res_on_empty_list);
|
|
|
|
|
2016-01-21 08:50:56 +00:00
|
|
|
#endif /* NTP_KEYACC_H */
|