X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=secnet.h;h=95f3413325a8ef3319b3b2402698d583ec0242b5;hb=780f3f09eb7833c57a0847ce3cd473dbb6ba3b36;hp=5b1e24b402fff7bb8c3426425bb937ae93fdb3f4;hpb=eb4e2288a1e3d4547f7fac367788978a3d82f9a4;p=secnet.git diff --git a/secnet.h b/secnet.h index 5b1e24b..95f3413 100644 --- a/secnet.h +++ b/secnet.h @@ -46,9 +46,12 @@ #define MAX_PEER_ADDRS 5 /* send at most this many copies; honour at most that many addresses */ +#define MAX_NAK_MSG 80 + struct hash_if; struct comm_if; struct comm_addr; +struct priomsg; typedef char *string_t; typedef const char *cstring_t; @@ -465,7 +468,8 @@ typedef struct comm_clientinfo *comm_clientinfo_fn(void *state, dict_t*, /* Return True if the packet was processed, and shouldn't be passed to any other potential receivers. (buf is freed iff True returned.) */ typedef bool_t comm_notify_fn(void *state, struct buffer_if *buf, - const struct comm_addr *source); + const struct comm_addr *source, + struct priomsg *whynot); typedef void comm_request_notify_fn(void *commst, void *nst, comm_notify_fn *fn); typedef void comm_release_notify_fn(void *commst, void *nst,