diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-01-31 08:55:01 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-01-31 08:55:01 +0000 |
commit | eb527a8af6bced89a36bf8d8a2c6417207e3bdf0 (patch) | |
tree | f79024b7363da7e0aeacf2629a5ad7473518353b /usr.sbin/ospfd/lsack.c | |
parent | 7742b22905d9b1ceef8191d116bd7fe827a074ac (diff) |
Pass the buffer to send_packet() instead of spliting it up. This removes
some direct access to struct buf internals in the rest of ospfe.
Based on a larger buffer cleanup diff that was OK norby@ henning@
Diffstat (limited to 'usr.sbin/ospfd/lsack.c')
-rw-r--r-- | usr.sbin/ospfd/lsack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/lsack.c b/usr.sbin/ospfd/lsack.c index f2640d8d37a..81a118a1f03 100644 --- a/usr.sbin/ospfd/lsack.c +++ b/usr.sbin/ospfd/lsack.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lsack.c,v 1.17 2006/04/25 08:33:00 claudio Exp $ */ +/* $OpenBSD: lsack.c,v 1.18 2009/01/31 08:55:00 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> @@ -61,7 +61,7 @@ send_ls_ack(struct iface *iface, struct in_addr addr, void *data, size_t len) if (auth_gen(buf, iface)) goto fail; - ret = send_packet(iface, buf->buf, buf->wpos, &dst); + ret = send_packet(iface, buf, &dst); buf_free(buf); return (ret); |