Thanks to visit codestin.com
Credit goes to cvsweb.openbsd.org

OpenBSD CVS

CVS log for src/usr.sbin/ldpctl/ldpctl.c


[BACK] Up to [local] / src / usr.sbin / ldpctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.37 / (download) - annotate - [select for diffs], Thu Nov 21 13:38:14 2024 UTC (10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_7_BASE, OPENBSD_7_7, HEAD
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)

Convert simple stuff in usr.sbin over to new imsgbuf_init behaviour

OK tb@

Revision 1.36 / (download) - annotate - [select for diffs], Thu Nov 21 13:26:25 2024 UTC (10 months ago) by claudio
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Unify error reporting in various control programs.

Just use "read error" since the code also uses "write error" for the
imsg_flush case.

OK tb@

Revision 1.35 / (download) - annotate - [select for diffs], Thu Nov 21 13:21:34 2024 UTC (10 months ago) by claudio
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

Convert the common imsgbuf_read calls to the post EAGAIN world.

OK tb@

Revision 1.34 / (download) - annotate - [select for diffs], Thu Nov 21 13:17:02 2024 UTC (10 months ago) by claudio
Branch: MAIN
Changes since 1.33: +5 -5 lines
Diff to previous 1.33 (colored)

Rename imsg_init, imsg_clear, imsg_read, imsg_write and imsg_flush to
imsgbuf_init, imsgbuf_clear, imsgbuf_read, imsgbuf_write and imsgbuf_flush.

This separates the imsgbuf API from the per-imsg API.

OK tb@

Revision 1.33 / (download) - annotate - [select for diffs], Thu Nov 21 13:08:54 2024 UTC (10 months ago) by claudio
Branch: MAIN
Changes since 1.32: +3 -4 lines
Diff to previous 1.32 (colored)

Use imsg_flush() instead of implementing the same by hand.

OK tb@

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 15 17:09:25 2016 UTC (9 years, 2 months ago) by renato
Branch: MAIN
CVS Tags: OPENBSD_7_6_BASE, OPENBSD_7_6, OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.31: +6 -52 lines
Diff to previous 1.31 (colored)

Improve logging of reserved labels.

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.

Revision 1.31 / (download) - annotate - [select for diffs], Mon May 23 19:06:03 2016 UTC (9 years, 4 months ago) by renato
Branch: MAIN
Changes since 1.30: +11 -1 lines
Diff to previous 1.30 (colored)

Introduce the 'ldpctl clear neighbors' command.

Revision 1.30 / (download) - annotate - [select for diffs], Mon May 23 19:04:55 2016 UTC (9 years, 4 months ago) by renato
Branch: MAIN
Changes since 1.29: +103 -60 lines
Diff to previous 1.29 (colored)

Sync with the latest IPv6 bits in ldpd(8).

Revision 1.29 / (download) - annotate - [select for diffs], Mon May 23 19:03:52 2016 UTC (9 years, 4 months ago) by renato
Branch: MAIN
Changes since 1.28: +36 -35 lines
Diff to previous 1.28 (colored)

Add function that print labels to avoid code duplication.

In addition to that, print "exp-null" instead of "0" or "2".

Revision 1.28 / (download) - annotate - [select for diffs], Mon May 23 19:02:49 2016 UTC (9 years, 4 months ago) by renato
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Replace legacy bzero and bcopy by memset and memcpy.

bzero(), bcopy() and bcmp() were deprecated in POSIX.1-2001 and removed
in POSIX.1-2008 in deference to memset(), memcpy() and memcmp().

Revision 1.27 / (download) - annotate - [select for diffs], Mon May 23 19:01:08 2016 UTC (9 years, 4 months ago) by renato
Branch: MAIN
Changes since 1.26: +6 -6 lines
Diff to previous 1.26 (colored)

Change ldpctl(8) to use C99-style fixed-width integers.

Revision 1.26 / (download) - annotate - [select for diffs], Mon May 23 17:53:11 2016 UTC (9 years, 4 months ago) by renato
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Sync with ldpd.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Dec 5 13:11:48 2015 UTC (9 years, 9 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

EAGAIN handling for imsg_read. OK henning@ benno@

Revision 1.24 / (download) - annotate - [select for diffs], Fri Oct 23 10:11:20 2015 UTC (9 years, 11 months ago) by renato
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)

Make use of pledge(2).

ok deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Sun Sep 27 17:30:38 2015 UTC (9 years, 11 months ago) by stsp
Branch: MAIN
Changes since 1.22: +12 -12 lines
Diff to previous 1.22 (colored)

As done for bgpd recently, rename if_mediatype to if_type in ldpd.
And some ifmedia64 fixes.
"move forward" deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Sun Sep 13 11:13:12 2015 UTC (10 years ago) by deraadt
Branch: MAIN
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored)

match a few if_media uint64_t conversions; ok miod

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jul 21 09:34:57 2015 UTC (10 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Remove the check for the connected flag since it is no longer around.
Minimal fix to unbreak the tree.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jul 21 05:44:50 2015 UTC (10 years, 2 months ago) by renato
Branch: MAIN
Changes since 1.19: +96 -1 lines
Diff to previous 1.19 (colored)

Introduce two show commands for l2vpns.

ok claudio@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jul 21 05:42:50 2015 UTC (10 years, 2 months ago) by renato
Branch: MAIN
Changes since 1.18: +6 -4 lines
Diff to previous 1.18 (colored)

Improve the show lib command.

ok claudio@

Revision 1.18 / (download) - annotate - [select for diffs], Sat Apr 4 16:29:48 2015 UTC (10 years, 5 months ago) by renato
Branch: MAIN
Changes since 1.17: +4 -6 lines
Diff to previous 1.17 (colored)

Show the remote labels in "ldpctl show lib" even if they are not installed in the FIB.

ok claudio@

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jan 15 23:51:04 2015 UTC (10 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

do not assume <netmls/mpls.h> will pull in <limits.h> via <sys/param.h>
get <limits.h> directly.
ok millert

Revision 1.16 / (download) - annotate - [select for diffs], Thu Nov 14 20:48:52 2013 UTC (11 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

cope with the EAGAIN API change for msgbuf_write()
ok benno

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jun 4 02:40:17 2013 UTC (12 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.14: +42 -1 lines
Diff to previous 1.14 (colored)

Introduce the 'ldpctl show discovery' command
Diff by Renato Westphal

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 4 02:28:58 2013 UTC (12 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.13: +13 -11 lines
Diff to previous 1.13 (colored)

Adjust to the latest changes on the ctl_iface struct
From Renato Westphal

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jun 1 19:29:23 2013 UTC (12 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.12: +6 -12 lines
Diff to previous 1.12 (colored)

Adjust ldpctl to the latest ldpd changes.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Sep 1 13:59:17 2010 UTC (15 years ago) by claudio
Branch: MAIN
CVS Tags: 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
Changes since 1.11: +23 -23 lines
Diff to previous 1.11 (colored)

s/lfib/fib/ for more consistency with the other routing ctl tools.
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@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 8 09:42:32 2010 UTC (15 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.10: +6 -13 lines
Diff to previous 1.10 (colored)

Update after kroute.c change. As a goody print the route priority.
OK michele@

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 7 13:24:23 2010 UTC (15 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.9: +10 -18 lines
Diff to previous 1.9 (colored)

Store all labels in ldpd in host byte order without any additional shifting.
Add the necessary ntohl() and shifts in various places and cleanup the byte
order mess we had before. michele@ agrees.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Apr 13 15:42:09 2010 UTC (15 years, 5 months ago) by michele
Branch: MAIN
Changes since 1.8: +25 -10 lines
Diff to previous 1.8 (colored)

Use a more appropriate wording in ldpctl show lib and lfib outputs.

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@

Revision 1.8 / (download) - annotate - [select for diffs], Wed Mar 3 10:18:35 2010 UTC (15 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Must check for NO_LABEL here as well or we print strange label numbers.
OK michele@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 2 14:56:02 2010 UTC (15 years, 8 months ago) by michele
Branch: MAIN
Changes since 1.6: +6 -6 lines
Diff to previous 1.6 (colored)

In the "ldpctl show lib" output print every known label and make clear if it
is currently in use or not.

ok claudio@

Revision 1.6 / (download) - annotate - [select for diffs], Mon Nov 2 20:35:20 2009 UTC (15 years, 10 months ago) by claudio
Branch: MAIN
Changes since 1.5: +13 -2 lines
Diff to previous 1.5 (colored)

Implement "log verbose" and "log brief" to enable or disable verbose debug
logging. henning, sthen, michele like the idea

Revision 1.5 / (download) - annotate - [select for diffs], Mon Sep 14 11:49:25 2009 UTC (16 years ago) by claudio
Branch: MAIN
Changes since 1.4: +17 -43 lines
Diff to previous 1.4 (colored)

Switch the various link state printing codes to use the new if_media
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

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 2 16:19:17 2009 UTC (16 years, 1 month ago) by michele
Branch: MAIN
Changes since 1.3: +13 -4 lines
Diff to previous 1.3 (colored)

"ldpctl show lib" output cleanup.

- 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@

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 1 12:47:02 2009 UTC (16 years, 1 month ago) by michele
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Correctly print interface state and neighbor uptime in ldpctl show neighbor.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jun 13 16:47:32 2009 UTC (16 years, 3 months ago) by michele
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.1: +12 -18 lines
Diff to previous 1.1 (colored)

Make ldpctl imsg-in-a-lib ready too.

ok eric@

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jun 1 20:59:45 2009 UTC (16 years, 3 months ago) by michele
Branch: MAIN

Welcome ldpd, the Label Distribution Protocol daemon.
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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.