The NetBSD Project

CVS log for src/usr.sbin/ldpd/mpls_routes.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / ldpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Thu Apr 7 19:33:38 2022 UTC (9 months, 3 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

fix various typos in comments.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Apr 4 07:37:08 2016 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.23: +3 -7 lines
Diff to previous 1.23 (colored)

Separate nexthop caches from the routing table

By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
  - sysctl(NET_RT_DUMP) doesn't return them
  - If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
  - RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
  - It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
  - -[no]cloning remains because it seems there are users
  - -[no]connected is introduced and recommended
    to be used instead of -[no]cloning
- route show/netstat -r drops some flags
  - 'L' and 'c' are not seen anymore
  - 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
  a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
  http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:09 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.9.2.1: +276 -163 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:43:05 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.8.2.1: +284 -171 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.23 / (download) - annotate - [select for diffs], Sat Oct 12 18:55:40 2013 UTC (9 years, 3 months ago) by kefren
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)

zeroize the rest of the comparable struct before adding it to the rb tree

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jul 31 06:58:23 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

Store local bindings in a rbtree

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jul 27 14:35:41 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
Changes since 1.20: +23 -7 lines
Diff to previous 1.20 (colored)

check route messages sizes more carefully
cache pid
treat every message at a time, even if there are more messages to read
interpret also cloning routes

The latter two should fix the ldp_regen test

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jul 24 09:05:53 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
Changes since 1.19: +20 -11 lines
Diff to previous 1.19 (colored)

* use a flag in label struct in order to determine if we should treat the
  associated routes using RTF_HOST
* clean the mess in flush_mpls_routes that could result in accessing
  uninitialized memory

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Tue Jul 23 21:07:41 2013 UTC (9 years, 6 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.16: +56 -41 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

sync with HEAD

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jul 20 05:16:08 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.18: +1 -3 lines
Diff to previous 1.18 (colored)

don't connect on first hello, there are chances that ours is not seen yet
setproctitle with ldp id - useful for rump kernels testing
fix a memory leak in ldp_peer_new
don't holddown if already holded down
peer sockets are now non-blocking
connected routes deletes are now processed
check if peer is connected before attempting to sending label mappings

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jul 18 11:45:36 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
Changes since 1.17: +14 -5 lines
Diff to previous 1.17 (colored)

* rework the reattachment code
* build an implnull label when a route is added and let mpls_add_label
  to take care of relabelling
* take out last piece of the code where we do route lookups - we should have
  every information we need in labels
* tested these changes using a number of rump kernels and some couple of
  thousands of flapping routes

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jul 18 06:07:45 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
Changes since 1.16: +44 -36 lines
Diff to previous 1.16 (colored)

Make sure labels are always updated when a route is added and when a peer
is added
Rework mpls_add_label according to that so no route refresh is done anymore
Use poll when reading the PF_ROUTE socket
setsockopt SO_USELOOPBACK on the PF_ROUTE socket
Output some information on SIGINFO
Allow map changing for a ldp peer
Finally fix the connected routes admission into labels
Correct the route trigger when a label map is received

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 16 16:55:01 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
CVS Tags: riastradh-drm2-base
Branch point for: riastradh-drm2
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

create binding for connected routes on startup
decay an warning message to debug only

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jul 16 02:54:32 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
Changes since 1.14: +68 -67 lines
Diff to previous 1.14 (colored)

retire union_ntoa, replace it with satos
check for valid sizes on PF_ROUTE socket
minor comment update

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 12 08:55:52 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
Changes since 1.13: +26 -15 lines
Diff to previous 1.13 (colored)

correct loopback address test
correct addr add/del handling

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jul 11 18:02:03 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
Changes since 1.12: +53 -11 lines
Diff to previous 1.12 (colored)

add code for address and address withdraw messages
get rid of unused fields in tlv struct

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 11 10:46:19 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
Changes since 1.11: +50 -22 lines
Diff to previous 1.11 (colored)

sprinkle more const

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 11 09:11:35 2013 UTC (9 years, 6 months ago) by kefren
Branch: MAIN
Changes since 1.10: +13 -26 lines
Diff to previous 1.10 (colored)

speed up a little bit the string<->prefixlen transforms

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:43 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.9: +10 -10 lines
Diff to previous 1.9 (colored)

resync with head

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jan 26 17:29:55 2013 UTC (10 years ago) by kefren
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.9: +10 -10 lines
Diff to previous 1.9 (colored)

modify structures in order to accomodate IPv6 according to
draft-ietf-mpls-ldp-ipv6. Correct a little bit IPv6 hello path

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:48 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

sync with head

Revision 1.9 / (download) - annotate - [select for diffs], Thu Mar 15 02:02:24 2012 UTC (10 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4
Branch point for: tls-maxphys
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Add __printflike attribution to use vprintf and friends with an argument
as format string.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:48 2011 UTC (11 years, 7 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.5: +43 -37 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 16 20:42:15 2011 UTC (11 years, 7 months ago) by kefren
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.7: +7 -9 lines
Diff to previous 1.7 (colored)

Correct prefixlen->sockaddr calculation. Now ldpd may finally allow MPLS
forwarding for default route.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 16 07:11:51 2011 UTC (11 years, 7 months ago) by kefren
Branch: MAIN
Changes since 1.6: +27 -26 lines
Diff to previous 1.6 (colored)

shorten some execution paths related to check_route() and get_route()
statify a bit
don't assume AF_INET in a debug message

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jun 14 11:28:51 2011 UTC (11 years, 7 months ago) by kefren
Branch: MAIN
Changes since 1.5: +11 -4 lines
Diff to previous 1.5 (colored)

* add no-default-route option into configuration file and check it before
rejecting default-route
* exit process in case of error into the main loop
* complete FSM for RTM_CHANGE
* Check if we overflow pollfd array

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Thu Feb 17 12:00:58 2011 UTC (11 years, 11 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.3: +10 -15 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Mon Feb 14 11:43:59 2011 UTC (11 years, 11 months ago) by kefren
Branch: MAIN
CVS Tags: cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: cherry-xenmp
Changes since 1.4: +7 -10 lines
Diff to previous 1.4 (colored)

get rid of unused variable/assignments

Revision 1.4 / (download) - annotate - [select for diffs], Wed Feb 9 11:38:57 2011 UTC (11 years, 11 months ago) by kefren
Branch: MAIN
Changes since 1.3: +4 -6 lines
Diff to previous 1.3 (colored)

use RT_ROUNDUP provided by net/route.h

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jan 4 10:58:15 2011 UTC (12 years ago) by kefren
Branch: MAIN
Branch point for: bouyer-quota2
Changes since 1.2: +7 -5 lines
Diff to previous 1.2 (colored)

check from_cidr_to_union() result

Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 9 00:10:59 2010 UTC (12 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.1: +10 -15 lines
Diff to previous 1.1 (colored)

- no cast for malloc
- malloc + memset = calloc
- sizeof(type) -> sizeof(*var)
- small indents

Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 8 07:20:15 2010 UTC (12 years, 1 month ago) by kefren
Branch: MAIN

Add ldpd, a RFC 3036 compatible LDP speaker.

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.




CVSweb <webmaster@jp.NetBSD.org>