summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldpctl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* work on making log.c similar in all daemons:benno2017-01-201-2/+2
| | | | | | | | | move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. removal of log_rtmsg() aproved by claudio@ ok claudio@ krw@
* Improve logging of reserved labels.renato2016-07-151-52/+6
| | | | | | | | | Print "exp-null" and "imp-null" instead of "0" and "3", for example. Also, remove print_label() and print_pw_type() from ldpctl.c and use the equivalent functions from ldpd's log.c. While here, be more paranoid and use UINT32_MAX instead of UINT_MAX for NO_LABEL.
* Introduce the 'ldpctl clear neighbors' command.renato2016-05-234-4/+36
|
* Sync with the latest IPv6 bits in ldpd(8).renato2016-05-235-138/+227
|
* Add function that print labels to avoid code duplication.renato2016-05-231-35/+36
| | | | In addition to that, print "exp-null" instead of "0" or "2".
* Replace legacy bzero and bcopy by memset and memcpy.renato2016-05-232-8/+8
| | | | | bzero(), bcopy() and bcmp() were deprecated in POSIX.1-2001 and removed in POSIX.1-2008 in deference to memset(), memcpy() and memcmp().
* s/routes/labelsrenato2016-05-231-4/+4
|
* Change ldpctl(8) to use C99-style fixed-width integers.renato2016-05-233-13/+13
|
* Sync with ldpd.renato2016-05-231-3/+3
|
* EAGAIN handling for imsg_read. OK henning@ benno@claudio2015-12-051-2/+2
|
* Make use of pledge(2).renato2015-10-231-1/+4
| | | | ok deraadt@
* As done for bgpd recently, rename if_mediatype to if_type in ldpd.stsp2015-09-271-12/+12
| | | | | And some ifmedia64 fixes. "move forward" deraadt@
* match a few if_media uint64_t conversions; ok miodderaadt2015-09-131-5/+5
|
* use file system path (.Pa) semantic markup macros where appropriate.sobrado2015-07-271-3/+3
|
* Remove the check for the connected flag since it is no longer around.claudio2015-07-211-2/+2
| | | | Minimal fix to unbreak the tree.
* Document the "ldpctl show discovery" command.renato2015-07-211-1/+3
| | | | ok claudio@
* Introduce two show commands for l2vpns.renato2015-07-214-7/+115
| | | | ok claudio@
* Re-enable the reload command.renato2015-07-212-4/+6
| | | | ok claudio@
* Improve the show lib command.renato2015-07-211-4/+6
| | | | ok claudio@
* Show the remote labels in "ldpctl show lib" even if they are not installed in the FIB.renato2015-04-041-6/+4
| | | | ok claudio@
* do not assume <netmls/mpls.h> will pull in <limits.h> via <sys/param.h>deraadt2015-01-151-1/+2
| | | | | get <limits.h> directly. ok millert
* cope with the EAGAIN API change for msgbuf_write()deraadt2013-11-141-2/+3
| | | | ok benno
* Introduce the 'ldpctl show discovery' commandclaudio2013-06-043-3/+52
| | | | Diff by Renato Westphal
* Adjust to the latest changes on the ctl_iface structclaudio2013-06-041-11/+13
| | | | From Renato Westphal
* Adjust ldpctl to the latest ldpd changes.claudio2013-06-011-12/+6
|
* move some things around to make intentions clear. not really a functionaltedu2010-09-042-19/+21
| | | | change. ok claudio
* s/lfib/fib/ for more consistency with the other routing ctl tools.claudio2010-09-014-46/+46
| | | | | | While I also made the code more consistent the most noticable change is the rename of the commandline arguments for fib coupling and viewing. OK michele@
* Update after kroute.c change. As a goody print the route priority.claudio2010-07-081-13/+6
| | | | OK michele@
* Store all labels in ldpd in host byte order without any additional shifting.claudio2010-06-071-18/+10
| | | | | Add the necessary ntohl() and shifts in various places and cleanup the byte order mess we had before. michele@ agrees.
* Move imsg into libutil and add a man page.nicm2010-05-261-2/+4
| | | | | | | | Minor bump for libutil. Previous versions of this diff and man page looked at by various people. "you should just commit" deraadt
* Mention that commands may be abbreviated. ok claudio@sthen2010-05-101-2/+6
|
* Use a more appropriate wording in ldpctl show lib and lfib outputs.michele2010-04-131-10/+25
| | | | | | | | In particular print "Untagged" when there is no label, and "imp-null" instead of label 3. Initial diff from Thomas Habets, commited a slightly modified one. ok claudio@
* Must check for NO_LABEL here as well or we print strange label numbers.claudio2010-03-031-3/+3
| | | | OK michele@
* Fix problems with incomplete arrays that was fixed in other ospfctljsg2010-01-132-6/+6
| | | | | | based programs a few months back. ok claudio@
* In the "ldpctl show lib" output print every known label and make clear if itmichele2010-01-021-6/+6
| | | | | | is currently in use or not. ok claudio@
* sort;jmc2009-11-031-4/+4
|
* Implement "log verbose" and "log brief" to enable or disable verbose debugclaudio2009-11-024-6/+31
| | | | logging. henning, sthen, michele like the idea
* write UNIX-domain in a more consistent way.sobrado2009-10-271-3/+4
|
* Switch the various link state printing codes to use the new if_mediaclaudio2009-09-141-43/+17
| | | | | | 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
* "ldpctl show lib" output cleanup.michele2009-08-021-4/+13
| | | | | | | | | | - Show only the remote/local labels of the prefixes currently present in fib. - Write a "-" instead of "0" when a remote label is not present (the prefix is directly connected). It avoids confusion with explicit null label. ok claudio@
* Correctly print interface state and neighbor uptime in ldpctl show neighbor.michele2009-08-011-3/+3
|
* Make ldpctl imsg-in-a-lib ready too.michele2009-06-131-18/+12
| | | | ok eric@
* Welcome ldpd, the Label Distribution Protocol daemon.michele2009-06-015-0/+1011
Built using the imsg/three process framework, its main aim is to redistribute MPLS labels between peers. Right now it has some really basic functionalities, the basic protocol works and peers are able to exchange labels and insert them in the kernel. It still does not react to changes of topology. Not yet connected to the builds. ok claudio@ deraadt@