summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd
AgeCommit message (Collapse)Author
2022-06-26ldpd(8): Fix address of misaligned packed members.riastradh
PR kern/56895
2022-04-07fix various typos in comments.andvar
2022-02-07ldpd: remove unused bit-field member from anonymous unionrillig
The struct common_hello_tlv contained an anonymous union, which is a C11 feature. That union contained a bit-field, which is very unusual since the C standards answer basically all interesting questions about bit-fields in unions with "implementation-defined" or "unspecified". GCC passes these questions further down by saying "Determined by ABI". This was the only occurrence of a bit-field union member in the whole NetBSD tree, and it caused the lint diagnostic 41 to be downgraded from error to warning on 2021-09-17 since this exotic construct is allowed by the C standards but practically unused. No binary change.
2021-02-23Make use of packed member addreses non-fatal for clang, toojoerg
2021-02-03ldpd: Discard warning about accessing packed memberroy
I don't see a good way of fixing this right now.
2020-06-22s/successfuly/successfully/ in comment. No functional change.msaitoh
2020-04-22Avoid common symbol definitionsjoerg
2017-04-12Use RO_MSGFILTER.roy
2017-01-10need <sys/stat.h>christos
2016-04-04Separate nexthop caches from the routing tableozaki-r
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
2014-03-18Merge riastradh-drm2 to HEAD.riastradh
2013-11-19CVE 1129617: negative argchristos
2013-11-13CID 1125875: Fix memory leakchristos
2013-11-13CID 1125876: File descriptor leakchristos
2013-10-30ensure variables are initialisedmrg
2013-10-18sync behaviour with man page: accept spaces, empty lines and commentskefren
2013-10-18Sort SEE ALSO. Grammar consistency.wiz
2013-10-18Attempt to write a manpage for ldpd.confkefren
2013-10-17allow setting transport addresses for interfaces into config filekefren
also move passive-interface functionality under interface block report the correct line for config parsing errors
2013-10-12zeroize the rest of the comparable struct before adding it to the rb treekefren
2013-08-02Do not pack struct rt_msg - this voids the alignement restrictions andmartin
causes crashes on alignemen critical archs. From Matt Thomas.
2013-08-02Use rbtree for storing peers FEC label bindingskefren
2013-07-31Store local bindings in a rbtreekefren
2013-07-27check route messages sizes more carefullykefren
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
2013-07-25* don't request explicitly for uid 0 as various system policies may make thatkefren
unnecessary * correct the mplsif message. We don't need an IP address assigned on it anymore
2013-07-24* use a flag in label struct in order to determine if we should treat thekefren
associated routes using RTF_HOST * clean the mess in flush_mpls_routes that could result in accessing uninitialized memory
2013-07-20don't connect on first hello, there are chances that ours is not seen yetkefren
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
2013-07-18* rework the reattachment codekefren
* 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
2013-07-18Make sure labels are always updated when a route is added and when a peerkefren
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
2013-07-16send the actual prefix on the wire instead of struct headerskefren
statify
2013-07-16create binding for connected routes on startupkefren
decay an warning message to debug only
2013-07-16retire union_ntoa, replace it with satoskefren
check for valid sizes on PF_ROUTE socket minor comment update
2013-07-12correct loopback address testkefren
correct addr add/del handling
2013-07-11add code for address and address withdraw messageskefren
get rid of unused fields in tlv struct
2013-07-11sprinkle more constkefren
2013-07-11speed up a little bit the string<->prefixlen transformskefren
2013-07-11Local addresses vector is not needed anymorekefren
2013-07-11Constify a little bitkefren
2013-06-23allow INET6 gateways, split some long lineskefren
2013-05-08First send initialize and keep alive after that. Fixes inter-operabilitykefren
issues regarding session initialization.
2013-02-05Stop confusing peer hello source with peer transport addresskefren
2013-02-04move code around a little bit in order to call get_ldp_peer correctlykefren
check also for transport_address in get_ldp_peer
2013-02-04* Don't assume INET in connection pathkefren
* Lookup in hello list in order to get the correct LDP ID, instead of transport address * Improve an error message
2013-02-04Grammar. Sort sections.wiz
2013-02-04Mention IPv6, operation mode and re-section a bitkefren
2013-02-04correct the sockaddr comparekefren
modify a couple of debug messages
2013-02-03Don't try to connect to peers before sending helloskefren
2013-01-28Be a little more strict when sending notifications and checking PDUkefren
2013-01-28Use satos instead of inet_ntopkefren
Fix an alloc problem
2013-01-28permit notifications even if session not fully establishedkefren