summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfctl/ospfctl.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ospfctl bits for opaque LSA support.claudio2011-05-091-12/+76
| | | | tested and OK sthen@
* Print the checksum sum as a simple fingerprint of the LSDB.claudio2010-09-251-3/+5
| | | | OK dlg@
* Print 'Number of Routers' in show database network.bluhm2010-06-121-1/+2
| | | | ok claudio@
* implement ospfctl fib reload.dlg2010-02-191-1/+7
| | | | | | | | | this tells the daemon to resync the kernels list of interfaces and routes with the daemons list. this is very useful if the routing socket overflows and you want to sync things up again. lots and lots of help from claudio@ ok claudio@
* implement support for fast hello packets.dlg2010-02-161-10/+19
| | | | | | | | | | | | | | | | | | if route-dead-time is set to "minimal" (rather than a number of seconds), the dead time is set to 1 second and hellos are sent at the interval specified by fast-hello-interval in msecs. this is non standard wrt to the ospf rfc, but it does interoperate with at least one other router vendor. this allows much better responsiveness to l3 topology changes than the standard intervals allow. if i yank a cable to one of my upstreams, the routes adjust in a second rather than the default of 40 i was running with before. the users dont even notice something changed. developed while working with joshua atterbury. ok claudio@ as part of a larger diff. dedicated to zan rowe who thinks she is a bigger nerd than me.
* allow spf-delay and spf-holdtime to be specified in msec so ospfd candlg2010-02-161-3/+3
| | | | | | | better respond to rapid topology changes. developed while working with joshua atterbury ok claudio@ as part of a larger diff.
* Implement "log verbose" and "log brief" to enable or disable verbose debugclaudio2009-11-021-2/+13
| | | | logging. henning, sthen, michele like the idea
* Switch the various link state printing codes to use the new if_mediaclaudio2009-09-141-45/+18
| | | | | | independent LINK_STATE_DESCRIPTIONS. Code is now more or less a one to one copy of get_linkstate() in route/route.c. OK henning, michele, sthen, deraadt
* sync ospfctl/ospfd with the common imsg code, making it lib ready as well.eric2009-06-061-2/+2
| | | | "looks ok" claudio@
* forgot to commit the ospfctl bits, this unbreaks the tree.pyr2009-06-051-27/+20
| | | | noticed by michele@
* allow to specify an alternate control socket instead of /var/run/ospfd.sock.reyk2009-04-071-5/+23
| | | | | | this is required to run multiple instances of ospfd. ok claudio@
* Add missing free.norby2009-01-301-1/+2
| | | | OK claudio@
* In show interface only print the hello_timer value if valid.claudio2009-01-021-1/+2
|
* ospfd knows now priorities so let ospfctl know and print them as well.claudio2008-12-121-2/+3
|
* the ellipsis allows more than one argument being specified.sobrado2008-12-061-2/+2
| | | | | | discussed with gilles@ ok jmc@
* specifying int instead of just unsigned is better stylederaadt2007-10-151-2/+2
|
* please lintderaadt2007-10-141-1/+4
|
* Cleanup the way we display timers.norby2007-10-111-10/+6
| | | | | | | | It does not make sense to display timer = 0 as "Stopped". When a timer is 0 it usually means that it is getting reset very soon. Display the string "00:00:00" instead. ok claudio@
* Baudrate is 64bit so use %llu in printf(). Reminded by chl@claudio2007-09-111-7/+7
|
* yuck, no cookie for mehenning2007-05-301-6/+1
|
* add additional link states to report the half duplex / full duplexreyk2006-11-281-2/+4
| | | | | | | | state, if known by the driver. this is required to check the full duplex state without depending on the ifmedia ioctl which can't be called in the kernel without process context. ok henning@, brad@
* Add a comment about the empty imsg_event_add() function to make it clearclaudio2006-08-231-1/+3
| | | | why it is needed.
* Track the uptime of the ospfd daemon itself.norby2006-06-281-1/+3
| | | | | | | It is possible to read the uptime of the daemon with the "ospfctl show" command. ok claudio@
* Add IFT_PPP to the iftype to ifmedia type conversion function. Now P2P linksclaudio2006-04-211-8/+5
| | | | | will show the correct link state. While there do some cleanup and shorten the output if the media or link state is unknown.
* Show the neighbor uptime in "show nei detail".norby2006-03-261-1/+2
| | | | ok claudio@
* Show the link status of interfaces for real, I guess most users don't knownorby2006-03-261-24/+31
| | | | | | what it means that an interface is in state 2. ok claudio@
* List interfaces they way we list neighbors etc.norby2006-03-231-1/+61
| | | | | | | | This makes it much easier to grep in the output. The original format of "show interface" can be seen with "show interface detail". help and ok claudio@
* ospfd has the framework to couple and decouple the FIB. Add the neededclaudio2006-03-221-1/+17
| | | | | | | functionality to ospfctl for it. NOTE: decoupling the FIB one a router may totaly fuck up the complete network. Use it with care! OK norby@
* Track interface uptime.norby2006-03-091-1/+3
| | | | ok claudio@
* Start using *_name function that are now shared between ospfd and ospfctl.claudio2006-03-091-82/+10
| | | | OK norby@
* Last kroute.c commit changed the meaning of the flags so check them correctly.claudio2006-03-081-2/+2
| | | | OK norby@
* Keep track of the uptime of the entries in the RIB.norby2006-02-241-5/+6
| | | | | | | It is now possible to see the uptime of the individual entries in the RIB. The uptime can be displayed with "ospfctl show rib" ok claudio@
* Keep track of the duration of our relationships with neighbors.norby2006-02-191-17/+18
| | | | | | Displayed in "ospfctl show neighbor". ok claudio@
* imsg API changed so adapt to it.claudio2006-02-101-18/+18
|
* indicate passive interface in 'show interface'; ok claudio@stevesk2005-10-271-2/+4
|
* use err() vs. fatal(); ok claudio@stevesk2005-10-231-3/+2
|
* remove duplicate function declaration; ok claudio@stevesk2005-10-161-2/+1
|
* missing break caused erroneous auth-type crypt enabled in 'sh int'stevesk2005-10-161-1/+3
| | | | when simple enabled; ok claudio@
* - add auth_type and auth_keyid to struct ctl_ifacemsf2005-09-241-1/+15
| | | | | | - have ospfctl tell us when we are using authentication with 'show interface' ok claudio@ norby@
* Small formatting bits in show neighbor detail.norby2005-05-271-5/+4
| | | | ok claudio@
* Fix multi area display bug.norby2005-05-261-1/+2
| | | | ok claudio@
* Add missing bits to ospfctl show rib detail.norby2005-05-221-9/+41
| | | | ok claudio@
* Add "show database asbr/external/network/router/self-originate/summary"norby2005-05-121-7/+260
| | | | | | | | to ospfctl. Show detailed information about the LSAs in the Link State Database. ok claudio@
* Fix a display bug in 'show database', when ospfd is member of morenorby2005-05-061-1/+2
| | | | | | | | than one area. Input from claudio. ok claudio@
* Static routes are flagged with F_STATIC and not with F_KERNEL.claudio2005-04-161-2/+2
|
* The RFC never mentions anything about transfer, this should be transmit.norby2005-03-291-2/+2
| | | | | | From Jason Ackley (thanks). ok claudio@
* ospfctl bits for the "ospfctl show fib interface" part. This will printclaudio2005-03-261-5/+8
| | | | | the interface status as seen from the parent kroute perspective. OK henning@ norby@
* Sync mask2prefixlen() with the kroute.c version of ospfd because they shareclaudio2005-03-231-6/+6
| | | | | the same prototype definition comming from ospfd.h. OK norby@
* bgpctl parts for "show fib".claudio2005-03-151-1/+200
| | | | OK norby@ deraadt@
* Add "show summary" to ospfctl.norby2005-03-141-8/+44
| | | | ok claudio@ henning@