summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/parse.y
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-21 22:16:54 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-21 22:16:54 +0000
commit8457d52edd104d4996c3c3c8894f770214c632e8 (patch)
treeaa17859eab0b6d68c19b335e87f8978d0aebecca /usr.sbin/bgpd/parse.y
parent23495634e653d596492ca742142b25d18babc127 (diff)
overhaul the write buffering code.
introduce msgbuf API and bundle all info needed for the write buffers in a struct msgbuf. also switch to a write queue per handled connection (each bgp session, each pipe) instead of one big one. fixes some subtle problems and is overall nicer. ok claudio@
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r--usr.sbin/bgpd/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index b90845f4f83..0cecc496773 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.4 2003/12/20 20:53:30 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.5 2003/12/21 22:16:53 henning Exp $ */
/*
* Copyright (c) 2002, 2003 Henning Brauer <henning@openbsd.org>
@@ -732,7 +732,7 @@ add_mrtconfig(enum mrtdump_type type, char *name, time_t timeout)
fatal("add_mrtconfig", errno);
n->type = MRT_TABLE_DUMP;
- n->fd = -1;
+ n->msgbuf.sock = -1;
if (strlcpy(n->name, name, sizeof(n->name)) > sizeof(n->name)) {
yyerror("filename \"%s\" too long: max %u",
name, sizeof(n->name) - 1);