summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-03-19 06:53:00 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-03-19 06:53:00 +0000
commit7ce2d296a96fe58889baaa6681aa25aa393cc95d (patch)
tree56650dd95fd51937e1f978ffdd3253f46f93f701 /usr.sbin/bgpd/rde.h
parent1e556e2cedf7bec67ef80f0ce0def52fc6e088e4 (diff)
Implement a attr_writebuf() function that works on a struct buf instead of
a pre allocated piece of memory. Will be used by newer mrt code. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r--usr.sbin/bgpd/rde.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h
index 03899c608ed..e2709d4e513 100644
--- a/usr.sbin/bgpd/rde.h
+++ b/usr.sbin/bgpd/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.104 2009/01/13 21:35:16 sthen Exp $ */
+/* $OpenBSD: rde.h,v 1.105 2009/03/19 06:52:59 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
@@ -291,6 +291,8 @@ int rde_as4byte(struct rde_peer *);
/* rde_attr.c */
int attr_write(void *, u_int16_t, u_int8_t, u_int8_t, void *,
u_int16_t);
+int attr_writebuf(struct buf *, u_int8_t, u_int8_t, void *,
+ u_int16_t);
void attr_init(u_int32_t);
void attr_shutdown(void);
int attr_optadd(struct rde_aspath *, u_int8_t, u_int8_t,