summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2010-05-21remove unused functionsCharles Longeau
from tobias@ (loooooong time ago) ok rainer@ henning@ tobias@
2010-05-21Use _exit(2) in mda helper child process.Jacek Masiulaniec
2010-05-20S_ISREG() should be called on st.st_mode not st.st_flagsGilles Chehade
2010-05-19cleanup-only commit, removes unrequired includes, no functionnal changeGilles Chehade
2010-05-19Remove yet another ospf leftover that is not needed here. This timeClaudio Jeker
neighbor self and all the madness surrounding this amazing concept. LDP is not self aware so there is no need for this. OK michele@
2010-05-19When installing MPLS VPN routes set the RTF_MPLS bit since those routesClaudio Jeker
have MPLS information connected to them and the kernel requires the flag now. OK michele@
2010-05-19Set RTF_MPLS in rtm_fmask and rtm_flags because ldpd wants to play withClaudio Jeker
the MPLS part of those routes. OK michele@
2010-05-19Add softreconfig support for peers changing the RIB. Done by first unloadingClaudio Jeker
the old RIB and then via softreconfig in and a special softreconfig out loading the new RIB. Feature requested and testeded by Elisa Jasinska. OK henning@
2010-05-18Spacing.Claudio Jeker
2010-05-18use the right capitalization for "HyperText Transfer Protocol (HTTP)"Igor Sobrado
and "server". fixes for bgplg(8) and relayd.conf(5) suggested by jmc@, good catch! ok jmc@
2010-05-18Be more careful in ktable_update() and ktable_new() and the fib sync flag.Claudio Jeker
Only existing tables should keep their fib sync state, new ones should set the current fib sync flag to the configured one at the end of the config load. Found the hard way by sthen@, OK sthen@
2010-05-17more then -> more than;Jason McIntyre
2010-05-17tweak previous;Jason McIntyre
2010-05-17Implement two new filters, max-as-len and max-as-seq. The first is limitingClaudio Jeker
the length of an AS path (matches if the path is longer then the specified lenght) the second matches when a sequence of the same AS number is longer then the specified length). max-as-len is good to protect crappy comercial bgp boxes from other crappy comercial bgp boxes. max-as-seq was a feature request from SwissIX and maybe EuroIX to find and filter prepends. Additinal testing and OK sthen@
2010-05-17Last bits of MPLS VPN support. Hook kernel routing tables and RIB together.Claudio Jeker
This adds a bit of new config to specify the mapping between an rdomain and the BGP MPLS VPN instance, example: rdomain 1 { descr "CUSTOMER1" rd 65003:1 import-target rt 65003:3 export-target rt 65003:1 depend on mpe0 network 192.168.224/24 } The "depend on mpe0" is a but ugly but for now this is the quickest way to figure out which interface bgp should use to insert the MPLS routes. A big side-effect of this diff is that networks are now internally distributed through kroute.c. This needs some kernel changes that will follow hopefully soon. OK henning@
2010-05-17The host address encoding of FEC was killed in RFC5036 and we're happyClaudio Jeker
about that. OK michele@
2010-05-14Order struct element by size.Claudio Jeker
2010-05-14Do not send notifications directly onto the wire. Decide in the caller howClaudio Jeker
to send the notification. On accept use write() else queue message and try to send the queued messages out via msgbuf_write(). This may still fail but is better then the code beforehands. OK michele@
2010-05-14Use calloc() instead of malloc() to allocate the connection structure. ThisClaudio Jeker
way the memory is zeroed. This is equivalent to the relayd commit by reyk. OK reyk, jsg
2010-05-14allocate all struct event's on the heap, it looks cleaner, feels betterReyk Floeter
and follows a suggestion in event.h. also don't mix signal() and signal_set()/signal_add(). ok jsg@ gilles@
2010-05-14zero out the allocate memory for a new control connection via calloc()Reyk Floeter
ok jsg@ gilles@
2010-05-14When merging interfaces after a config reload, the fsm state for interfacesStuart Henderson
is forced into IF_STA_NEW so that if_init() can be called to setup timers etc. When a loopback interface is added to the config, this means there's no way to get to the correct state. Fix by avoiding changing an existing IF_STA_LOOPBACK and forcing loopback interfaces to be passive (otherwise skipping the if_init on an active interface causes problems). ok claudio@
2010-05-14spacingReyk Floeter
2010-05-13typo: colision->collisionStuart Henderson
2010-05-12Make sure there is a difference in the log of non-fatal and fatalClaudio Jeker
notifications.
2010-05-12Remove the tiny bit of C++ that is not realy needed so that we get a pureClaudio Jeker
C application. OK yasuoka@, reyk@
2010-05-11sort struct by size and kill some unneeded spaces.Claudio Jeker
2010-05-11Kill IMSG_RECONF_AREA. LDP does not have a concept of areas.Claudio Jeker
2010-05-11No need to do a rt_find() twice.Claudio Jeker
2010-05-10Mention that commands may be abbreviated. ok claudio@Stuart Henderson
2010-05-10Simplify wording about abbreviating commands. ok claudioStuart Henderson
2010-05-10zap trailing whitespace;Jason McIntyre
2010-05-10whitespace fixesMarc Espie
2010-05-10document that INSTALL/DEINSTALL scripts are dead.Marc Espie
2010-05-10typoMarc Espie
2010-05-10Various comment typos. 'wether' -> 'whether' (most popular), 'possiblity' ->Kenneth R Westerback
'possibility', 'optins' -> 'options', 'resposne' -> 'response', 'unecessary' -> 'unnecessary', 'desination' -> 'destination'. Collected from various misc@ and tech@ postings, many by Brad Tilley.
2010-05-09in recent change, an assignation was removed which would cause a bogusGilles Chehade
pointer deref if we actually went through this code path (reload, does not work yet so it is disabled)
2010-05-07When failing to form an adjacency, log the interface name as wellStuart Henderson
as the neighbour. ok claudio@
2010-05-06don't clobber CFLAGS; ok gilles@Christian Weisgerber
2010-05-06Use YPMAXRECORD instead of _PW_NAME_LEN here too.Antoine Jacoutot
ok robert@ pyr@
2010-05-05Unconditionally set HAVE_ISINF and HAVE_ISNAN in the generatedMark Kettenis
ap_config_auto.h. We know we have these functions in libc on OpenBSD, but the check for them fails with gcc due to some __builtin__xxx stupidity. ok drahn@, sthen@, henning@
2010-05-04Assuming that a prefixlen 32 is a host route is not clever when IPv6 comesClaudio Jeker
into play. Check the AID and use 32 or 128 based on the address family. Now bgpctl show rib <IPv6 addr> works like in the IPv4 case. Bug reported and fix made during yesterday's Swinog BE#85
2010-05-04Add some documentation about the last change (nexthop verification andClaudio Jeker
extended rde rib syntax). OK sthen
2010-05-03Adjustments for multiple kroute table support. This adds a few new commandClaudio Jeker
arguments (show tables and show fib table 1, etc). Tested by sthen@, OK to move on by henning@
2010-05-03Make it possible to load multiple routing tables at the same time and useClaudio Jeker
those for alternate RIBs. This allows to use "rde rib TESTIT rtable 1". NOTE: nexthop verification has changed for alternate tables. For now nexthop will only be verified against the main routing table (id 0). Because of this "nexthop qualify via bgp" may now compare the nexthops against bgpd routes from a different RIB. Tested by sthen@, OK to move on by henning@
2010-05-02Initialise the port in nslookup.c correctly. It was initialisedStefan Sperling
to zero in interactive mode, should be 53. Second half of patch submission by Nathan Rickerby (pr 6322). ok krw
2010-05-01remove an uneeded extern which upsets gcc4, matches changes madeJonathan Gray
in the upstream arla code. ok miod@
2010-05-01As suggested by miod, rename dynroot_enable so we don't conflict withJonathan Gray
a definition from a header. This turns out to be the same change made in the upstream arla code. ok miod@
2010-05-01split up a multiple assignment so we aren't casting an lvalue.Jonathan Gray
ok michele@ claudio@
2010-05-01incomming -> incomingMichael Knudsen
The ones found in gnu/ left out by intention. ok jmc