Up to [local] / src / usr.sbin / bgpd
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.58 / (download) - annotate - [select for diffs], Thu Feb 27 14:03:32 2025 UTC (6 months, 3 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_7_BASE,
OPENBSD_7_7,
HEAD
Changes since 1.57: +5 -5 lines
Diff to previous 1.57 (colored)
Clean up some spaces
Revision 1.57 / (download) - annotate - [select for diffs], Tue Feb 4 18:16:56 2025 UTC (7 months, 2 weeks ago) by denis
Branch: MAIN
Changes since 1.56: +192 -3 lines
Diff to previous 1.56 (colored)
Enable reception and redistribution of EVPN NLRI With this diff bgpd can act as an EVPN route-reflector. OK claudio@
Revision 1.56 / (download) - annotate - [select for diffs], Mon Dec 30 17:14:02 2024 UTC (8 months, 3 weeks ago) by denis
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)
Use correct function name in fatalx()
Revision 1.55 / (download) - annotate - [select for diffs], Tue Dec 10 13:29:47 2024 UTC (9 months, 1 week ago) by claudio
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)
Make the unknown AID case in pt_writebuf() a fatal error. The pointer passed to pt_writebuf() is bad and there is no reason to limp further. Someone else will trip over this at a later stage so better to do it now. OK tb@
Revision 1.54 / (download) - annotate - [select for diffs], Thu Nov 21 13:26:49 2024 UTC (10 months ago) by claudio
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)
s/ibuf_add_buf/ibuf_add_ibuf/ OK tb@
Revision 1.53 / (download) - annotate - [select for diffs], Mon Oct 28 12:05:00 2024 UTC (10 months, 3 weeks ago) by claudio
Branch: MAIN
Changes since 1.52: +1 -5 lines
Diff to previous 1.52 (colored)
Remove two fatalx calls in pt_fill since they are wrong. L3VPN withdraws don't carry a labelstack (see util.c::nlri_get_vpn4()). OK tb@
Revision 1.52 / (download) - annotate - [select for diffs], Tue Sep 10 08:47:51 2024 UTC (12 months, 1 week ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_6_BASE,
OPENBSD_7_6
Changes since 1.51: +5 -1 lines
Diff to previous 1.51 (colored)
AID_VPN_IPv4 and AID_VPN_IPv6 require a labellen that is non-zero. OK tb@
Revision 1.50.4.1 / (download) - annotate - [select for diffs], Tue Jun 25 22:01:06 2024 UTC (14 months, 4 weeks ago) by bluhm
Branch: OPENBSD_7_4
Changes since 1.50: +4 -1 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)
When filling prefixes with pt_writebuf() keep 2 bytes reserved in the withdraw case. Those bytes are needed for the attribute length field. Without this withdraw messages can become overfull and are dropped without notice. Problem found and fix tested by denis@ from claudio@; OK denis@ tb@ this is errata/7.4/017_bgpd.patch.sig
Revision 1.50.2.1 / (download) - annotate - [select for diffs], Tue Jun 25 22:00:25 2024 UTC (14 months, 4 weeks ago) by bluhm
Branch: OPENBSD_7_5
Changes since 1.50: +4 -1 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)
When filling prefixes with pt_writebuf() keep 2 bytes reserved in the withdraw case. Those bytes are needed for the attribute length field. Without this withdraw messages can become overfull and are dropped without notice. Problem found and fix tested by denis@ from claudio@; OK denis@ tb@ this is errata/7.5/004_bgpd.patch.sig
Revision 1.51 / (download) - annotate - [select for diffs], Tue Jun 25 13:21:18 2024 UTC (14 months, 4 weeks ago) by claudio
Branch: MAIN
Changes since 1.50: +4 -1 lines
Diff to previous 1.50 (colored)
When filling prefixes with pt_writebuf() keep 2 bytes reserved in the withdraw case. Those bytes are needed for the attribute length field. Without this withdraw messages can become overfull and are dropped without notice. Problem found and fix tested by denis@ OK denis@ tb@
Revision 1.50 / (download) - annotate - [select for diffs], Wed Jul 12 14:45:43 2023 UTC (2 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_4_BASE
Branch point for: OPENBSD_7_5,
OPENBSD_7_4
Changes since 1.49: +58 -90 lines
Diff to previous 1.49 (colored)
Update OpenBGPD to use new ibuf API. This replaces the old way of using a static buffer and a len to build UPDATEs with a pure ibuf solution. The result is much cleaner and a lot of almost duplicate code can be removed because often a version for ibufs and one for this static buffer was implemented (e.g. for mrt or bgpctl). With and OK tb@
Revision 1.49 / (download) - annotate - [select for diffs], Wed Apr 19 07:09:47 2023 UTC (2 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.48: +114 -3 lines
Diff to previous 1.48 (colored)
Extend the pt_entry api to handle flowspec. Introduce pt_get_flow() and pt_add_flow() to lookup and insert flowspec objects. Add pt_getflowspec() which works somewhat similar to pt_getaddr() to extract the flowspec NLRI from a pt_entry. Make pt_getaddr() to return the destination prefix of the flowspec rule and handle flowspec in pt_write(). OK tb@
Revision 1.48 / (download) - annotate - [select for diffs], Thu Mar 30 13:25:23 2023 UTC (2 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.47: +35 -35 lines
Diff to previous 1.47 (colored)
Extra space in struct field definitions. NFC
Revision 1.47 / (download) - annotate - [select for diffs], Thu Mar 30 12:11:18 2023 UTC (2 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.46: +28 -26 lines
Diff to previous 1.46 (colored)
Put the size of the pt_entry object into the struct itself. Increase the refcnt to a 32bit int and while there reorder the vpn specific structs a bit so the IPv4 and IPv6 types are more equal. OK tb@
Revision 1.46 / (download) - annotate - [select for diffs], Tue Mar 28 17:47:29 2023 UTC (2 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.45: +7 -1 lines
Diff to previous 1.45 (colored)
In pt_fill set the refcnt to its maximum value to trigger an error if pt_ref is called on such a pt_entry. Set refcnt to 0 in pt_alloc since the value from pt_fill is copied over. OK tb@
Revision 1.45 / (download) - annotate - [select for diffs], Tue Mar 28 15:17:34 2023 UTC (2 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.44: +119 -1 lines
Diff to previous 1.44 (colored)
Instead of exracting the prefix into a bgpd_addr and passing that to prefix_write() rename prefix_write() to pt_write() and pass a pt_entry to the function. Removes an extra conversion step. OK tb@
Revision 1.44 / (download) - annotate - [select for diffs], Tue Mar 28 13:30:31 2023 UTC (2 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.43: +50 -2 lines
Diff to previous 1.43 (colored)
More pt_entry cleanup, move structure definitions to rde_prefix.c and by that make them private. Remove no longer used AID_PTSIZE define. OK tb@
Revision 1.43 / (download) - annotate - [select for diffs], Tue Mar 28 12:06:15 2023 UTC (2 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.42: +3 -1 lines
Diff to previous 1.42 (colored)
Include the memory size usage of the prefix tree in rde_memstats. OK tb@
Revision 1.42 / (download) - annotate - [select for diffs], Wed Aug 17 15:15:26 2022 UTC (3 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2
Changes since 1.41: +5 -5 lines
Diff to previous 1.41 (colored)
Convert bzero() to memset(), bcmp() to memcmp() and bcopy() to memcpy(). The memory regions passed to memcpy() can not overlap so no need for memmove(). OK tb@ deraadt@
Revision 1.41 / (download) - annotate - [select for diffs], Fri Feb 25 12:56:12 2022 UTC (3 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE,
OPENBSD_7_1
Changes since 1.40: +2 -3 lines
Diff to previous 1.40 (colored)
The pointer returned by pt_fill() can be directly used in most cases. There is no need for an extra local variable. Noticed by and OK tb@
Revision 1.40 / (download) - annotate - [select for diffs], Mon Jan 18 12:15:36 2021 UTC (4 years, 8 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9
Changes since 1.39: +22 -27 lines
Diff to previous 1.39 (colored)
Change struct bgpd_addr VPN encoding. Instead of including two almost equal versions put the RD and lable stack right into struct bgpd_addr. For non-VPN addresses these extra fields are ignored. Since VPN and non-VPN addresses encode the prefix in the same way now some code can be simplified. In most cases a fallthrough or reuse of encoding functions is now possible. It should also reduce the size of struct bgpd_addr a bit. OK denis@
Revision 1.39 / (download) - annotate - [select for diffs], Mon Jul 1 07:07:08 2019 UTC (6 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)
Unify the way object in the RDE are reference counted. The affected structures are pt_entry, rde_aspath, rde_communities, and nexthop. The functions are always called *_ref and *_unref also the behaviour when the last reference is removed is unified and now the object is removed inside of the unref function. The actual bean-counting is not modified by this diff. OK benno@
Revision 1.38 / (download) - annotate - [select for diffs], Fri Feb 15 09:55:21 2019 UTC (6 years, 7 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.37: +5 -5 lines
Diff to previous 1.37 (colored)
Use the posix version of betoh64() which is spelled be64toh() this is more portable.
Revision 1.37 / (download) - annotate - [select for diffs], Fri Feb 15 09:45:17 2019 UTC (6 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored)
Needs endian.h because of betoh64()
Revision 1.36 / (download) - annotate - [select for diffs], Sun Dec 30 13:53:07 2018 UTC (6 years, 8 months ago) by denis
Branch: MAIN
Changes since 1.35: +47 -3 lines
Diff to previous 1.35 (colored)
add support for IPv6 VPN routes The kernel bits are missing as of now. With input from claudio@ and kn@ OK claudio@
Revision 1.35 / (download) - annotate - [select for diffs], Fri Dec 28 13:38:15 2018 UTC (6 years, 8 months ago) by denis
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)
report right function name in error message
Revision 1.34 / (download) - annotate - [select for diffs], Tue Sep 4 12:00:29 2018 UTC (7 years ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.33: +5 -9 lines
Diff to previous 1.33 (colored)
Introduce inet4applymask() which does the same as inet6applymask() and can be used instead of doing direct fiddling around with struct in_addr. Use it in a few cases where it makes the code more similar between INET and INET6 case. OK denis@
Revision 1.33 / (download) - annotate - [select for diffs], Tue Jan 24 04:22:42 2017 UTC (8 years, 8 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)
sync log.c from relayd et al to bgpd. there is still a little difference regarding handling of the verbosity value that will be handled later. ok claudio@ florian@
Revision 1.32 / (download) - annotate - [select for diffs], Fri Mar 26 15:41:04 2010 UTC (15 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9,
OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7,
OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5,
OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.31: +3 -5 lines
Diff to previous 1.31 (colored)
pt_add() is not allowed to fail, caller expects this behaviour.
Revision 1.31 / (download) - annotate - [select for diffs], Wed Jan 13 06:02:37 2010 UTC (15 years, 8 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.30: +51 -13 lines
Diff to previous 1.30 (colored)
Add support for BGP MPLS VPN aka RFC 4364. This is only the RDE part so that it is possible to use OpenBGPD as a route-reflector for VPNv4. Some clean up of the BGP MP code so that multiple protocols are easier supported. kroute/kernel support not yet done but comming. OK henning@, reyk@
Revision 1.30 / (download) - annotate - [select for diffs], Tue Dec 1 14:28:05 2009 UTC (15 years, 9 months ago) by claudio
Branch: MAIN
Changes since 1.29: +40 -79 lines
Diff to previous 1.29 (colored)
Use an artificial address family id in struct bgpd_addr and almost everywhere else. Adds conversion functions to map AFI/SAFI and the Unix AF_ values from and into AID used in bgpd. This is needed to support things like MPLS VPN and other upcomming changes that need to play a lot with AFI/SAFI pairs. Mostly mechanical change, henning@ has no particular issues with this. Must go in so that I can continue working.
Revision 1.29 / (download) - annotate - [select for diffs], Sat May 30 18:27:17 2009 UTC (16 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6
Changes since 1.28: +16 -45 lines
Diff to previous 1.28 (colored)
Only use a single tree for all address families. There is no need for multiple trees and the rib trees are also not split. Looks good henning@
Revision 1.28 / (download) - annotate - [select for diffs], Sun May 17 12:25:15 2009 UTC (16 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.27: +34 -129 lines
Diff to previous 1.27 (colored)
Rework most of the RDE to allow multiple RIBs. This is mostly preparation work by changing the way the RDE DB is built. struct prefix and struct pt_entry are simplified and extended with a rib_entry where the decision tree is run on. From now on a prefix can only reside on one particular RIB which simplifies the code a bit. Currently there are two fixed ribs (adj-rib-in and the local-rib) which needs to be made more dynamic in upcomming commits. This is work in progress, the RDE seems to work for me and sthen@ (no flames comming out of our testrouters but there is still a lot missing) Move into the tree to simplify developement -- henning@
Revision 1.27 / (download) - annotate - [select for diffs], Sun Apr 26 14:40:03 2009 UTC (16 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.26: +1 -3 lines
Diff to previous 1.26 (colored)
Unused defines from a time long long ago.
Revision 1.26 / (download) - annotate - [select for diffs], Sun Apr 19 21:24:55 2009 UTC (16 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)
Correct function name in log_warnx().
Revision 1.25 / (download) - annotate - [select for diffs], Fri May 11 11:27:59 2007 UTC (18 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)
Various spelling fixes from Stuart Henderson.
Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 22 08:34:18 2007 UTC (18 years, 7 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE,
OPENBSD_4_1
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)
KNF
Revision 1.23 / (download) - annotate - [select for diffs], Fri Jan 26 17:40:49 2007 UTC (18 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.22: +100 -7 lines
Diff to previous 1.22 (colored)
Massiv rework of the control imsg flow. Main changes: - dedicated pipe between the SE and the RDE for control messages - restartable RB tree dumps in the RDE - queuing limits both in the SE and RDE The result is a dramatic decrease of memory consumption on operations like bgpctl show rib. Previously all messages where first stored in the RDE then passed to the SE where they got queued in case bgpctl was not fast enough. Now only a small number of messages is generated and passed to the SE and the SE has an additional limit instead of acting like an infinite buffer. Without this the bgpd on bgpd.networx.ch would not survive a single minute. looks good henning@
Revision 1.22 / (download) - annotate - [select for diffs], Tue Jan 3 22:49:17 2006 UTC (19 years, 8 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.21: +13 -1 lines
Diff to previous 1.21 (colored)
Track some (memory) statistics in the RDE. Accessible via bgpctl.
Revision 1.21 / (download) - annotate - [select for diffs], Thu Nov 11 16:53:01 2004 UTC (20 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)
Don't hardcode the prefix table to the IPv4 one, especially if there is already code to select the correct tree by AF.
Revision 1.20 / (download) - annotate - [select for diffs], Thu Aug 5 21:28:50 2004 UTC (21 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)
comapring -> comparing noticed by brad@.
Revision 1.19 / (download) - annotate - [select for diffs], Thu Aug 5 19:23:10 2004 UTC (21 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.18: +1 -29 lines
Diff to previous 1.18 (colored)
Get rid of some statistics stuff that is no longer needed but helped in the beginning. OK henning@
Revision 1.18 / (download) - annotate - [select for diffs], Thu Aug 5 18:44:19 2004 UTC (21 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)
Cleanup aspath specific functions and api. Mainly switch to a refcnt based allocation. This helps to save a bit of RAM. looks good henning@
Revision 1.17 / (download) - annotate - [select for diffs], Tue Aug 3 14:46:23 2004 UTC (21 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.16: +8 -6 lines
Diff to previous 1.16 (colored)
Cleanup and remove some ENSURE. OK henning@
Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 5 02:13:44 2004 UTC (21 years, 2 months ago) by henning
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)
fix a few KNF fallouts
Revision 1.15 / (download) - annotate - [select for diffs], Tue Jun 22 23:17:01 2004 UTC (21 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.14: +1 -10 lines
Diff to previous 1.14 (colored)
Cleanup. jajaja henning@
Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 22 20:28:58 2004 UTC (21 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.13: +205 -111 lines
Diff to previous 1.13 (colored)
Make the RDE IPv6 ready missing is the message handling. The internal prefix tree changed form a hash table to a per AF RB tree. OK henning@ some ideas are from Brent Graveland.
Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 11 17:34:01 2004 UTC (21 years, 6 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)
KNF
Revision 1.12 / (download) - annotate - [select for diffs], Thu Mar 11 14:22:23 2004 UTC (21 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.11: +15 -1 lines
Diff to previous 1.11 (colored)
Shutdown the RDE cleanly on exit. Plug some memleaks. OK henning@
Revision 1.11 / (download) - annotate - [select for diffs], Tue Mar 2 19:29:01 2004 UTC (21 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.10: +10 -8 lines
Diff to previous 1.10 (colored)
Framework for rib lookups by prefix. OK henning@
Revision 1.10 / (download) - annotate - [select for diffs], Mon Feb 9 01:56:18 2004 UTC (21 years, 7 months ago) by henning
Branch: MAIN
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (colored)
replace a bunch of u_long by u_int32_t
Revision 1.9 / (download) - annotate - [select for diffs], Sat Jan 17 19:15:07 2004 UTC (21 years, 8 months ago) by henning
Branch: MAIN
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)
KNF
Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 16 11:14:43 2004 UTC (21 years, 8 months ago) by henning
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)
missing #include
Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 11 21:47:20 2004 UTC (21 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.6: +8 -9 lines
Diff to previous 1.6 (colored)
Move all struct in_addr to either struct bgpd_addr or in_addr_t whichever is more appropriate. The rde uses now in most cases struct bgpd_addr. OK henning@
Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 6 10:51:14 2004 UTC (21 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.5: +2 -3 lines
Diff to previous 1.5 (colored)
2004 OK henning@
Revision 1.5 / (download) - annotate - [select for diffs], Fri Dec 26 18:07:33 2003 UTC (21 years, 9 months ago) by henning
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)
when this project started and i added the fatal() function, I made it take the error number as parameter instead of accessing errno, because in one place the error number was not in errno but fetched from a socket. now, of course it makes much more sense to just set errno to the error number just fecthed in this one place instead of having hundreds of fatal() calls all transfer the errno round and round and round... fix this, and also provide a fatalx, which does not care for errno and doesn't invoke strerror. oh, btw, in the place where we fetch the err # from the socket, we don't call fatal anymore anyway...
Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 24 11:39:43 2003 UTC (21 years, 9 months ago) by henning
Branch: MAIN
Changes since 1.3: +7 -7 lines
Diff to previous 1.3 (colored)
typos in comments, from jared
Revision 1.3 / (download) - annotate - [select for diffs], Sun Dec 21 22:16:53 2003 UTC (21 years, 9 months ago) by henning
Branch: MAIN
Changes since 1.2: +3 -4 lines
Diff to previous 1.2 (colored)
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@
Revision 1.2 / (download) - annotate - [select for diffs], Fri Dec 19 19:24:08 2003 UTC (21 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)
knf
Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 17 11:46:54 2003 UTC (21 years, 9 months ago) by henning
Branch: MAIN
welcome, bgpd started by me some time ago with moral support from theo, the proceeded up to the point where the session engine worked correctly. claudio jeker joined then and did a lot of work in the RDE. it is not particulary usefull as application right now as parts are still missing but is imported to enable more people to work on it. status: BGP sessions get established fine, OPEN messages and then KEEPALIVEs exchanged etc. session FSM works fine; NOTIFICATIONs are handled fine, and all connection drops etc I provoked get handled fine. Incoming UPDATE messgages are parsed well and the data entered to the RIB, the decision process is not yet there, neither is outgoing UPDATEs or sync to the kernel routing table. not connected to the builds yet.