summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfd.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-02-09 14:39:57 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-02-09 14:39:57 +0000
commitc00e19926dc4090180b78588335af1b8433aead4 (patch)
tree41cb651db11969c8d570b10a4578bc5095f54f4f /usr.sbin/ospfd/ospfd.h
parent8b5afed2325e826f9df13061f49c84349c0f7b8f (diff)
Add buf_seek() as buf_reserve() fails if a buf_add()/buf_reserve() is
called afterwards as it may realloc() the buffer and so the returned pointer is bogus. Needed by the upcomming originate LSA code. OK henning@
Diffstat (limited to 'usr.sbin/ospfd/ospfd.h')
-rw-r--r--usr.sbin/ospfd/ospfd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospfd.h b/usr.sbin/ospfd/ospfd.h
index 6d954ad2442..78e114c50ab 100644
--- a/usr.sbin/ospfd/ospfd.h
+++ b/usr.sbin/ospfd/ospfd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.h,v 1.5 2005/02/07 05:51:00 david Exp $ */
+/* $OpenBSD: ospfd.h,v 1.6 2005/02/09 14:39:56 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -367,6 +367,7 @@ struct buf *buf_open(size_t);
struct buf *buf_dynamic(size_t, size_t);
int buf_add(struct buf *, void *, size_t);
void *buf_reserve(struct buf *, size_t);
+void *buf_seek(struct buf *, size_t, size_t);
int buf_close(struct msgbuf *, struct buf *);
int buf_write(int, struct buf *);
void buf_free(struct buf *);