-/* $OpenBSD: message.c,v 1.16 2023/03/08 04:43:14 guenther Exp $ */
+/* $OpenBSD: message.c,v 1.17 2023/07/03 10:34:08 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
ibuf_add(buf, &nexthop, sizeof(nexthop));
ibuf_add(buf, &metric, sizeof(metric));
- send_packet(iface, buf->buf, buf->wpos, &dst);
+ send_packet(iface, ibuf_data(buf), ibuf_size(buf), &dst);
ibuf_free(buf);
return (0);
delete_entry(entry->rr);
free(entry);
}
- send_packet(iface, buf->buf, buf->wpos, &dst);
+ send_packet(iface, ibuf_data(buf), ibuf_size(buf), &dst);
ibuf_free(buf);
}
if (iface->auth_type == AUTH_CRYPT)
auth_add_trailer(buf, iface);
- send_packet(iface, buf->buf, buf->wpos, &dst);
+ send_packet(iface, ibuf_data(buf), ibuf_size(buf), &dst);
ibuf_free(buf);
}