summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfd.h
AgeCommit message (Collapse)Author
2005-05-27Preparations for virtual link support.Esben Norby
ok claudio@
2005-05-26Support dumping the configuration the way bgpd(8) does it.Esben Norby
This makes it possible to have ospfd(8) parse a configuration file and display the parsed result. ok claudio@
2005-05-26Remove unused variable.Esben Norby
ok claudio@
2005-05-24Only redistribute networks if the interface they depend on is actuallyClaudio Jeker
up and running. This makes redistribution of carp(4)-ed networks magically work. OK norby@
2005-05-22Handle cost2 for AS-external, and prepare for handling flags inEsben Norby
ospfctl show rib detail. ok claudio@
2005-05-12Add "show database asbr/external/network/router/self-originate/summary"Esben Norby
to ospfctl. Show detailed information about the LSAs in the Link State Database. ok claudio@
2005-05-12If activly connected to more than one area set B flag in the self-originatedClaudio Jeker
router LSA. To do that correctly we need to track the number of active neighbors for each area. If the routers ABR status changes all router LSA need to be updated via orig_rtr_lsa_all(). OK norby@
2005-04-27Sort struct msgbuf by size. From Alexander von Gernler via henning@Claudio Jeker
2005-04-12Support for self originated AS-external LSA.Claudio Jeker
With "redistribute (static|connected|default|none)" it is possible to tell ospfd which external routes should be announced. Connected routes will be announced only if there is no corresponding interface configured, in that case the prefix is not external. Adding and removing of announced prefixes are done automaticaly. OK norby@
2005-04-05Use the dynamic buffer API for packet generation and sending.Claudio Jeker
OK norby@
2005-03-31Add support for crypt authentication (MD5).Esben Norby
ok and input claudio@
2005-03-29The RFC never mentions anything about transfer, this should be transmit.Esben Norby
From Jason Ackley (thanks). ok claudio@
2005-03-26Implement the IMSG_CTL_IFINFO bits correctly. This is needed forClaudio Jeker
"ospfctl show fib interface". OK henning@ norby@
2005-03-26kroute.c cleanup, simplify code and remove unused functions.Claudio Jeker
OK henning@
2005-03-23prefixlen2mask() should return a network byte order result as it does implyClaudio Jeker
by using an in_addr_t as return type. It simplyfies also the usage as in most cases the mask is used with a struct in_addr address which is also network byte order. Add prototypes of prefixlen2mask() and mask2prefixlen() to ospfd.h as it is used or will be used at different places. OK norby@
2005-03-23grow receive buffer on the routing socket, from bgpdHenning Brauer
2005-03-23ssize_t -> size_t, from ntpd, there from Alexander von GernlerHenning Brauer
2005-03-22Remove bool cruft.Esben Norby
ok claudio@
2005-03-15Add control messages for the show fib commands.Claudio Jeker
OK norby@ deraadt@
2005-03-14Add "show summary" to ospfctl.Esben Norby
ok claudio@ henning@
2005-03-12Add "show rib" and "show rib detail" to ospfctl.Esben Norby
ok henning@
2005-03-08Remove no longer valid route entries.Esben Norby
ok claudio@
2005-03-07Track interface state (up/down) and media status. Simplify the code a bitClaudio Jeker
by using the kif/kroute info while allocating interfaces.
2005-02-27SPF and route table calculation.Esben Norby
Calculate Shortest Path Tree for each area known in the link state database. The Shortest Path Tree is used as input for route table calculation. Route tabled is calculated and the result is inserted into the kernel route table. ok claudio@
2005-02-24Remove the kroute nexthop specific code as there is no need for this inClaudio Jeker
ospfd. While there clean up some other no longer needed stuff. OK norby@
2005-02-16Support point to point links.Esben Norby
ok claudio@
2005-02-10Work around a timing issue in the db exchange phase. The DB descriptionClaudio Jeker
packets comming from the net are looped through the RDE and may get delayed because of this. The result is that the neighbor FSM ends in state FULL instead of LOADING and so the LSDB is not correctly synchronized. Issue found by norby@ OK norby@
2005-02-09Fix interface fsm by inserting dummy events and actions as placeholderClaudio Jeker
for 0. Action 0 was IF_ACT_STRT and that's why if_act_start() got called multiple times. The inappropriate hack from the previous commit is no longer needed.
2005-02-09Add buf_seek() as buf_reserve() fails if a buf_add()/buf_reserve() isClaudio Jeker
called afterwards as it may realloc() the buffer and so the returned pointer is bogus. Needed by the upcomming originate LSA code. OK henning@
2005-02-07spelling fixesDavid Krause
2005-02-02KNFHenning Brauer
2005-02-01Introduce dynmaic buffers. Dynamic buffers are realloced() until max isClaudio Jeker
hit. This makes it possible to alloc a buffer based on the max packet size and filling it up slowly till the packet is finished or *sigh* an overflow is detected. While doing that switch most sizes from ssize_t to the unsigned size_t as this makes more sense. The ssize_t -> size_t change is mostly from henning@
2005-01-28Change my email address to the OpenBSD one since Ericsson has nothing toEsben Norby
do with this software, just happend to be my only valid email address at the time.
2005-01-28Welcome ospfdClaudio Jeker
started by Esben Norby some time ago by using the imsg/three process framework of bgpd. He implemented the basic concept plus the ospf finite state machines. Later I joined and helped him cleanup, debug and extend his work. Right now it is not particularly useful, major parts are still missing but is imported to allow more people to work on it. status: The basic protocol works for broadcast networks and the LS database is synchronized and updated. It is not possible to be DR or BDR on a network and other interface types like point-to-point are not yet supported. The shortest path tree is not calculated and so no routing information is exchanged with the kernel FIB. Not yet connected to the builds. OK henning@