#ifndef _PSMB_PRIV_H
#include <stdlib.h>
+#include <syslog.h>
#include <netinet/in.h>
#define PSMB_OK 0
#define PSMB_ERROR 1
#define PSMB_NEED_WRITE 2
+#define PSMB_MESSAGE 4
#define PSMB_DEFAULT_PORT 5313
#define PSMB_DEFAULT_PMTU 1452
void *log_priv;
unsigned short port;
int pmtu;
+ struct in6_addr prefix;
+ unsigned char prefixlen;
/* subscription set here */
struct _msg incoming;
};
-struct _psmb_result {
- int code;
-};
+#define LOG(ctx, ...) (*ctx->logf)(ctx->log_priv, __VA_ARGS__)
#endif