summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2009-01-03Sync with ypldap. Add ber_{add,get}_enumerated.aschrijver
OK reyk@
2009-01-03Since link LSAs live in iface->lsa_tree and not in area->lsa_tree,Stefan Sperling
we had better include LSAs from iface->lsa_tree when sending DB summaries. Fixes initial flood of link LSAs. ok claudio@
2009-01-03orig_link_lsa() was assuming either virtual or broadcast link.Stefan Sperling
Make it handle other types of links, too. ok claudio@
2009-01-02fix T_DAEMON_MESSAGE notices delivery; ok gilles@Jacek Masiulaniec
2009-01-02Add support for originating router LSAs over point-to-point links.Stefan Sperling
OK claudio@
2009-01-02cleanup queue_load_envelope; ok gilles@Jacek Masiulaniec
2009-01-02In show interface only print the hello_timer value if valid.Claudio Jeker
2009-01-01I removed prefix from lsa_prefix but this code was still using it. UnbreakClaudio Jeker
it by copying LSA_PREFIXSIZE(prefixlen) bytes after the lsa_prefix into a struct in6_addr and print that. Found by stsp@ OK stsp@
2009-01-01Remove some other useless debug messages that just add unneeded noise.Claudio Jeker
2009-01-01Call kr_shutdown() before exit even in config test mode and config parseClaudio Jeker
error case.
2009-01-01Move initialisation of krt into kif_init so that it is possible to callClaudio Jeker
kr_shutdown() after kif_init().
2009-01-01remove unnecessary includes; ok gilles@Jacek Masiulaniec
2009-01-01Remove unneeded debug messages that made it into the tree.Claudio Jeker
2008-12-31an ellipsis allows more than one argument being specified;Igor Sobrado
sync synopsis/usage.
2008-12-31sync synopsis/usage.Igor Sobrado
2008-12-31if mkdir/mkdtemp fails, fatal if errno != ENOSPC; ok gilles@Jacek Masiulaniec
2008-12-31rename may fail due to ENOSPC, make smtpd survive this condition; ok gilles@Jacek Masiulaniec
2008-12-31kill unnecessary function; ok gilles@Jacek Masiulaniec
2008-12-30Remove debug message that does not help. The problem with the initial floodClaudio Jeker
of the Link LSA is still not solved though.
2008-12-30Correctly encode the IPv6 prefix. Only (prefixlen + 31)/32 * 4 bytes areClaudio Jeker
attached to the LSA (saves 8 to 12 bytes per prefix and makes our life more interesting or complex).
2008-12-30lsa_get_prefix() needs to use something else then struct lsa_prefix toClaudio Jeker
store the prefix to because the onwire format has the prefix compressed and so struct lsa_prefix will no longer carry the prefix in it. Use rt_prefix instead which is the expanded and host-byte-order version of the former.
2008-12-30Correctly compute the options for the net LSA as pre RFC options is set toClaudio Jeker
the or-ed result of all active neighbors. freaky... Discussed with stsp@
2008-12-30Add code to show Link LSA. Make the other detailed views a bit shorter byClaudio Jeker
removing an empty newline.
2008-12-30First try at originating Link (type-8) LSA. Code is wrong and the initialClaudio Jeker
LSA is lost in lsa_flood. Put this in because it goes in the right direction and ospf6d is work in progress. Add necessary framework so that we can print Link LSA in ospf6ctl. Diff mostly from stsp@ ospf6ctl part by myself
2008-12-29Remove unused prototype.aschrijver
2008-12-29Recognize MPLS packets over loopback interfaces.Michele Marchetto
OK canacar@
2008-12-29Handle ENOSPC in queue_update_envelope; cleanup the code a bit; ok gilles@Jacek Masiulaniec
2008-12-28a few documentation updates for opsf6(8) and ospf6ctl(8): remove anIgor Sobrado
existing (but undocumented) flag from the usage of ospf6d; documentation tweaks; while here, synchronize synopsis and usage. ok claudio@
2008-12-28Plug some memory leakage in aldap_parse by calling aldap_freemsgBret Lambert
Let aldap_freemsg allow for a NULL ber_element tree, since it's now possible to pass one in. "looks fine to me :-)" aschrijver@
2008-12-28correct some outputClaudio Jeker
2008-12-28Correctly display net lsa and the LSA type is now 16bit. This removesClaudio Jeker
the duplicate database headers seen all the time.
2008-12-28Initial bits for originating net lsa again from Stefan Sperling with someClaudio Jeker
changes by myself.
2008-12-28Part of lsa_self() works at least everything with us as adv_rtr should beClaudio Jeker
killed. From Stefan Sperling
2008-12-28area_ospf_options() should not return network byte order options. InsteadClaudio Jeker
the callers should take care of getting the byte order right. While there remove the opts[123] from the hello_hdr and use LSA_24_* to handle this nasty fields instead. Now router LSA have the correct flags set.
2008-12-28First shot at originating router LSA, still a lot of XXX but seems toClaudio Jeker
work for IF_TYPE_BROADCAST networks. Initial diff by Stefan Sperling, some additional work by myself
2008-12-28No need to byteswap req_hdr.type as lsa_find() will do that for us.Claudio Jeker
From Stefan Sperling
2008-12-28Sync up with the last commit. Some flags are now gone.Claudio Jeker
From Stefan Sperling's diff collection
2008-12-28Sync up the flags with the new and shiny RFC5340 while there introduceClaudio Jeker
some macros to handle the 24bit insaneness. rfc5340 syncup by Stefan Sperling, the insanity is mine
2008-12-28Send the interface index in the correct byte order and add iface_id toClaudio Jeker
struct nbr to identify the neighbors correclty. From Stefan Sperling stsp (at) stsp.name
2008-12-28Correctly sync the FSM by issuing the NBR_EVT_NEG_DONE event before sendingClaudio Jeker
possible database desciption files to the RDE. NBR_EVT_NEG_DONE sends an imsg to the RDE to bring the RDE in the correct state for the database exchange when doing this the wrong way the RDE will issue errors. From ospfd (rev. 1.23 of database.c) via Stefan Sperling
2008-12-28Add a ugly workaround for the problem where an invalid AS4_PATH is passedClaudio Jeker
over mulitple hops and causes bgpd to close the connection. This is what the RFC requires us to do but the result is a DoS against all OpenBGPD routers when somebody injects such a bad optional transitive attribute because the intermediate routers don't give a damn about it. As a result we now ignore such bad prefixes and don't allow them in the decision process. The handling of optional transitive attributes needs to be rethinked because all of them can be abused in such a way. Idea OK by a few + henning@, tested myself against my crappy regress test suite that needs way more work.
2008-12-27Fix memory leak.aschrijver
2008-12-27kill unused function; ok gilles@Jacek Masiulaniec
2008-12-27Manpage bits for "showqueue" -> "show queue" change.Jacek Masiulaniec
2008-12-27log_warn -> log_warnxJacek Masiulaniec
2008-12-27cleanup; ok gilles@Jacek Masiulaniec
2008-12-27Put common handler code in a function; ok chl@ gilles@Jacek Masiulaniec
2008-12-27Merge hash() and queue_message_hash() into one func, queue_hash(). Fix callersJacek Masiulaniec
to use this interface consistently; ok chl@ gilles@
2008-12-27Break showqueue and showrunqueue into 2 words; ok gilles@Jacek Masiulaniec
2008-12-26parse.y doesn't allow listen backlog configuration, so "bzero default" is used.Jacek Masiulaniec
Hardcode it instead: 5 is a popular choice across the tree; ok gilles@