X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/c72d679d2344a22f55889da6932754986fc0a7b9..9c7a0b4e57f18adee8545804e34667334c426635:/comm-common.h diff --git a/comm-common.h b/comm-common.h index 6dad9ef..4aa644a 100644 --- a/comm-common.h +++ b/comm-common.h @@ -34,7 +34,7 @@ bool_t comm_notify(struct comm_notify_list *notify, struct buffer_if *buf, void comm_apply(struct commcommon *cc, void *st); #define COMM_APPLY(st,cc,prefix,desc,loc) \ - (st)=safe_malloc(sizeof(*(st)), desc "_apply"); \ + NEW(st); \ (cc)->loc=loc; \ (cc)->cl.description=desc; \ (cc)->ops.sendmsg=prefix##sendmsg; \ @@ -103,7 +103,7 @@ void udp_destroy_socket(struct udpcommon *uc, struct udpsock *us); const char *af_name(int af); void udp_sock_experienced(struct log_if *lg, struct udpcommon *uc, struct udpsocks *socks, struct udpsock *us, - bool_t recvsend, int af /* 0 means any */, + const union iaddr *dest, int af /* 0 means any */, int r, int errnoval); void udp_socks_register(struct udpcommon *uc, struct udpsocks *socks,