ChangeLog 137 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992
  1. 2008-07-22 Paul Jakma <paul.jakma@sun.com>
  2. * bgp_{packet,route,advertise}.c: change to compiler testing of
  3. DISABLE_BGP_ANNOUNCE, rather than cpp.
  4. 2008-07-22 MIYAJIMA Mitsuharu <miyajima.mitsuharu@anchor.jp>
  5. * bgp_packet.c: (bgp_update_packet_eor) Fix crash triggerable
  6. if a bgpd was compiled with --disable-bgp-announce and if GR is
  7. advertised by peer.
  8. 2008-07-22 Paul Jakma <paul.jakma@sun.com>
  9. * bgp_community.c: (community_str2com) assigns defaults to local
  10. vars
  11. * bgp_attr.c: (bgp_attr_parse) match format specifier to arg
  12. * bgp_table.{c,h}: (bgp_table_top) can take a * to a const, quelling
  13. warning in bgp_route.c
  14. 2008-07-21 Paul Jakma <paul.jakma@sun.com>
  15. * bgp_packet.c: (bgp_open_receive) fix warning in a zlog call
  16. * bgp_vty.c: (bgp_vty_return) add return code
  17. * bgpd.c: (bgp_master_init) setup the socket list.
  18. * bgp_network.c: Remove the dual IPv4/6 socket thing for now, which
  19. was implemented by Michael, until such time as its clear its
  20. required for Linux (see sockopt comments). IPv6 support, including
  21. IPv4 sessions on AF_INET6 sockets, therefore is broken, and the
  22. '-l 0.0.0.0' arguments would need to be given to bgpd to make
  23. things work here.
  24. 2008-07-21 Michael H. Warfield <mhw@wittsend.com>
  25. YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
  26. Tomohiko Kusuda <kusuda@inetcore.com>
  27. Leigh Brown <leigh@solinno.co.uk>
  28. * bgp_network.c: (bgp_md5_set_one) shim between libzebra tcp-md5
  29. sockopt and bgpd.
  30. (bgp_md5_set_socket) Helper for bgp_connect
  31. (bgp_md5_set) setup TCP-MD5SIG for the given peer.
  32. (bgp_connect) call out to bgp_md5_set_socket for the outgoing
  33. connect socket.
  34. (bgp_socket) save references to the listen sockets, needed if
  35. TCP-MD5SIG is applied later or changed.
  36. * bgp_vty.c: (*neighbor_password_cmd) New 'neighbor ... password'
  37. commands.
  38. * bgpd.c: (peer_{new,delete) manage TCP-MD5 password
  39. (peer_group2peer_config_copy) inherit TCP-MD5 password
  40. (peer_password_{un,}set) orchestrate the whole add/remove of TCP-MD5
  41. passwords: applying checks, stopping peers, and trying to return
  42. errors to UI, etc.
  43. (bgp_config_write_peer) save password.
  44. Fix missing newline in writeout of neighbor ... port.
  45. 2008-07-02 MIYAJIMA Mitsuharu <miyajima.mitsuharu@anchor.jp>
  46. * *.c: CMD_AS_RANGE was being used inside command strings, and thus
  47. not being expanded, fix by dequoting.
  48. 2008-07-02 Stephen Hemminger <stephen.hemminger@vyatta.com>
  49. * bgp_table.{c,h}: (bgp_table_finish) Take a double pointer and
  50. scrub pointer in caller, so fixing double-free crashes seen
  51. with route-server-client configuration.
  52. * *.c: Adjust all callers of bgp_table_finish
  53. 2008-07-02 Paul Jakma <paul.jakma@sun.com>
  54. * bgp_table.{c,h}: (bgp_node_delete, bgp_table_free) shouldn't be
  55. exported.
  56. 2008-06-07 Paul Jakma <paul@jakma.org>
  57. * bgp_attr.{c,h}: (bgp_mp_{un,}reach_parse) export, for unit tests.
  58. * bgp_attr.c: (bgp_mp_reach_parse) Add logging. Tighten length test
  59. to bounds check against the attribute length rather than the
  60. stream length..
  61. 2008-06-01 jfletche@gmail.com
  62. * bgp_attr.c: (bgp_attr_aspathlimit) fix silly bug in flags check
  63. that was causing BGP to drop sessions if it received a
  64. aspath-limit with partial set. Fixes bug #419.
  65. 2008-04-10 Denis Ovsienko
  66. * bgp_aspath.[ch]: (aspath_filter_exclude) New function allows
  67. filtering out arbitrary ASns from AS_PATH attribute.
  68. * bgp_aspath.[ch]: (aspath_print_vty) Accept suffix to let calling
  69. functions signal, if they want the separator or not.
  70. * bgp_route.c: (route_vty_out, route_vty_out_tmp, damp_route_vty_out,
  71. flap_route_vty_out, route_vty_out_detail) Fix aspath_print_vty()
  72. calls to have AS_PATH output nicely.
  73. * bgp_routemap.c: Introduce "set as-path exclude" route-map command
  74. to employ new filtering functionality.
  75. 2008-03-13 Paul Jakma <paul.jakma@sun.com>
  76. * (various) Remove 0 entries from struct message's, unneeded due to
  77. recent improvements in mes_lookup/LOOKUP.
  78. 2008-01-29 Jorge Boncompte <jorge@dti2.net>
  79. * bgp_network.c: (bgp_socket) IPv4-only version crashes if -l is not
  80. used as address will be null.
  81. 2007-12-22 Paul Jakma <paul.jakma@sun.com>
  82. * Fix series of vulnerabilities reported by "Mu Security
  83. Research Team", where bgpd can be made to crash by sending
  84. malformed packets - requires that bgpd be configured with a
  85. session to the peer.
  86. * bgp_attr.c: (bgp_attr_as4_path) aspath_parse may fail, only
  87. set the attribute flag indicating AS4_PATH if we actually managed
  88. to parse one.
  89. (bgp_attr_munge_as4_attrs) Assert was too general, it is possible
  90. to receive AS4_AGGREGATOR before AGGREGATOR.
  91. (bgp_attr_parse) Check that we have actually received the extra
  92. byte of header for Extended-Length attributes.
  93. * bgp_attr.h: Fix BGP_ATTR_MIN_LEN to account for the length byte.
  94. * bgp_open.c: (cap_minsizes) Fix size of CAPABILITY_CODE_RESTART,
  95. incorrect -2 left in place from a development version of as4-path
  96. patch.
  97. * bgp_packet.c: (bgp_route_refresh_receive) ORF length parameter
  98. needs to be properly sanity checked.
  99. 2007-12-18 Denis Ovsienko
  100. * bgp_routemap.c: (no_set_aspath_prepend) This command cancelled
  101. existing "set" command regardless if "no set" matched it or not.
  102. Fixed.
  103. 2007-11-13 Paul Jakma <paul.jakma@sun.com>
  104. * bgp_main.c: Small fix, format string parameters should never
  105. be NULL - it's not strictly valid and some libc's don't let
  106. you away with.
  107. 2007-10-30 Nick Hilliard <nick@inex.ie>
  108. * bgp_main.c: Add 'listenon' argument, to pass address to bind
  109. to.
  110. * bgp_network.c: (bgp_socket) Extend to take bind address.
  111. * bgpd.c: (bgp_init) Pass stored address.
  112. * bgpd.h: (struct bgp_master) storage for bind address
  113. 2007-09-27 Paul Jakma <paul.jakma@sun.com>
  114. * bgp_aspath.c: (assegment_normalise) remove duplicates from
  115. from sets.
  116. (aspath_reconcile_as4) disregard a broken part of the RFC around
  117. error handling in path reconciliation.
  118. 2007-09-25 Paul Jakma <paul.jakma@sun.com>
  119. * bgp_open.c: (peek_for_as4_capability) Fix to work.
  120. * bgp_packet.c: (bgp_open_receive) Fix sanity check of as4.
  121. 2007-09-18 Paul Jakma <paul.jakma@sun.com>
  122. * bgp_open.c: (bgp_capability_as4) debug printf inline with others.
  123. (peek_for_as4_capability) There's no need to signal failure, as
  124. failure is better dealt with through full capability parser -
  125. just return the AS4, simpler.
  126. * bgp_packet.c: (bgp_open_receive) Update to match
  127. peek_for_as4_capability change.
  128. Allow use of BGP_AS_TRANS by 2b speakers.
  129. Use NOTIFY_OPEN_ERR rather than CEASE for OPEN parsing errors.
  130. (bgp_capability_msg_parse) missing argument to debug print
  131. (bgp_capability_receive) missing return values.
  132. 2007-07-25 Paul Jakma <paul.jakma@sun.com>
  133. * Remove 2-byte size macros, just make existing macros take
  134. argument to indicate which size to use.
  135. Adjust all users - typically they want '1'.
  136. * bgp_aspath.c: (aspath_has_as4) New, return 1 if there are any
  137. as4's in a path.
  138. (aspath_put) Return the number of bytes actually written, to
  139. fix the bug Juergen noted: Splitting of segments will change
  140. the number of bytes written from that already written to the
  141. AS_PATH header.
  142. (aspath_snmp_pathseg) Pass 2-byte flag to aspath_put. SNMP
  143. is still defined as 2b.
  144. (aspath_aggregate) fix latent bug.
  145. (aspath_reconcile_as4) AS_PATH+NEW_AS_PATH reconciliation
  146. function.
  147. (aspath_key_make) Hash the AS_PATH string, rather than
  148. just taking the addition of assegment ASes as the hash value,
  149. hopefully sligthly more collision resistant.
  150. (bgp_attr_munge_as4_attrs) Collide the NEW_ attributes
  151. together with the OLD 2-byte forms, code Juergen
  152. had in bgp_attr_parse but re-organised a bit.
  153. (bgp_attr_parse) Bunch of code from Juergen moves
  154. to previous function.
  155. (bgp_packet_attribute) Compact significantly by
  156. just /always/ using extended-length attr header.
  157. Fix bug Juergen noted, by using aspath_put's
  158. (new) returned size value for the attr header rather
  159. than the (guesstimate) of aspath_size() - the two could
  160. differ when aspath_put had to split large segments, unlikely
  161. this bug was ever hit in the 'wild'.
  162. (bgp_dump_routes_attr) Always use extended-len and
  163. use aspath_put return for header length. Output 4b ASN
  164. for AS_PATH and AGGREGATOR.
  165. * bgp_ecommunity.c: (ecommunity_{hash_make,cmp}) fix
  166. hash callback declarations to match prototypes.
  167. (ecommunity_gettoken) Updated for ECOMMUNITY_ENCODE_AS4,
  168. complete rewrite of Juergen's changes (no asdot support)
  169. * bgp_open.c: (bgp_capability_as4) New, does what it says
  170. on the tin.
  171. (peek_for_as4_capability) Rewritten to use streams and
  172. bgp_capability_as4.
  173. * bgp_packet.c: (bgp_open_send) minor edit
  174. checked (in the abstract at least) with Juergen.
  175. Changes are to be more accepting, e.g, allow AS_TRANS on
  176. a 2-byte session.
  177. * (general) Update all commands to use CMD_AS_RANGE.
  178. * bgp_vty.c: (bgp_clear) Fix return vals to use CMD_..
  179. Remove stuff replicated by VTY_GET_LONG
  180. (bgp_clear_vty) Return bgp_clear directly to vty.
  181. 2007-07-25 Juergen Kammer <j.kammer@eurodata.de>
  182. * (general) AS4 support.
  183. * bgpd.h: as_t changes to 4-bytes.
  184. * bgp_aspath.h: Add BGP_AS4_MAX and BGP_AS_TRANS defines.
  185. * bgp_aspath.c: AS_VALUE_SIZE becomes 4-byte, AS16_VALUE_SIZE
  186. added for 2-byte.
  187. Add AS16 versions of length calc macros.
  188. (aspath_count_numas) New, count number of ASes.
  189. (aspath_has_as4) New, return 1 if there are any as4's in a
  190. path.
  191. (assegments_parse) Interpret assegment as 4 or 2 byte,
  192. according to how the caller instructs us, with a new
  193. argument.
  194. (aspath_parse) Add use32bit argument to pass to
  195. assegments_parse. Adjust all its callers to pass 1, unless
  196. otherwise noted.
  197. (assegment_data_put) Adjust to be able to write 2 or 4 byte
  198. AS, according to new use32bit argument.
  199. (aspath_put) Adjust to write 2 or 4.
  200. (aspath_gettoken) Use a long for passed in asno.
  201. * bgp_attr.c: (attr_str) Add BGP_ATTR_AS4_PATH and
  202. BGP_ATTR_AS4_AGGREGATOR.
  203. (bgp_attr_aspath) Call aspath_parse with right 2/4 arg, as
  204. determined by received-capability flag.
  205. (bgp_attr_aspath_check) New, code previously in attr_aspath
  206. but moved to new func so it can be run after NEW_AS_PATH
  207. reconciliation.
  208. (bgp_attr_as4_path) New, handle NEW_AS_PATH.
  209. (bgp_attr_aggregator) Adjust to cope with 2/4 byte ASes.
  210. (bgp_attr_as4_aggregator) New, read NEW_AGGREGATOR.
  211. (bgp_attr_parse) Add handoffs to previous parsers for the two
  212. new AS4 NEW_ attributes.
  213. Various checks added for NEW/OLD reconciliation.
  214. (bgp_packet_attribute) Support 2/4 for AS_PATH and
  215. AGGREGATOR, detect when NEW_ attrs need to be sent.
  216. * bgp_debug.{c,h}: Add 'debug bgp as4'.
  217. * bgp_dump.c: MRTv2 support, unconditionally enabled, which
  218. supports AS4. Based on patches from Erik (RIPE?).
  219. * bgp_ecommunity.c: (ecommunity_ecom2str) ECOMMUNITY_ENCODE_AS4
  220. support.
  221. * bgp_open.c: (peek_for_as4_capability) New, peek for AS4
  222. capability prior to full capability parsing, so we know which
  223. ASN to use for struct peer lookup.
  224. (bgp_open_capability) Always send AS4 capability.
  225. * bgp_packet.c: (bgp_open_send) AS4 handling for AS field
  226. (bgp_open_receive) Peek for AS4 capability first, and figure
  227. out which AS to believe.
  228. * bgp_vty.c: (bgp_show_peer) Print AS4 cap
  229. 2007-09-17 Paul Jakma <paul.jakma@sun.com>
  230. * bgp_open.c: (bgp_capability_mp) We were setting
  231. afc_nego[safi][safi] rather than afc_nego[afi][safi], thus
  232. failling to announce any non-IPv4 prefixes. Remove the extra,
  233. typo-ed character.
  234. 2007-09-07 Paul Jakma <paul.jakma@sun.com>
  235. * (general) bgpd can be made crash by remote peers if debug
  236. bgp updates is set, due to NULL pointer dereference.
  237. Reported by "Mu Security Research Team",
  238. <security@musecurity.com>.
  239. * bgp_attr.c: (bgp_attr_community) If community length is 0,
  240. don't set the community-present attribute bit, just return
  241. early.
  242. * bgp_debug.c: (community_str,community_com2str) Check com
  243. pointer before dereferencing.
  244. 2007-08-31 Paul Jakma <paul.jakma@sun.com>
  245. * (general) Add 'bgp open-accept' option, to allow bgpd to send OPEN
  246. on accepted connections, i.e. to not wait till after
  247. collision-detect to send OPEN, which appears to be allowed in
  248. RFC4271. This may help speed up establishing sessions, or help
  249. avoid FSM problems with sessions to certain peers. Not enabled by
  250. default though.
  251. 2007-08-27 Paul Jakma <paul.jakma@sun.com>
  252. * bgp_route.c: (bgp_announce_check) Fix bug #398, slight
  253. modification of Vladimir Ivanov's suggested fix - to keep
  254. memory alloc conditional.
  255. (bgp_process_announce_selected) Don't take struct attr as
  256. argument, none of the callers need it and it needlessly
  257. distances allocation from use.
  258. Free the extended attr, the attr itself is on the stack.
  259. Fix bad indentation.
  260. * bgp_attr.c: (bgp_packet_attribute) Remove incorrect assert,
  261. and adjust conditional to test attr->extra, diagnosis by
  262. Vladimir Ivanov in bug #398.
  263. 2007-08-27 Vladimir Ivanov <wawa@yandex-team.ru>
  264. * bgp_route.c: (bgp_announce_check_rsclient) copy of
  265. ri->attr is no longer deep enough, due to addition of
  266. attr->extra. It should use bgp_attr_dup, as
  267. bgp_announce_check() does.
  268. 2007-08-23 Paul Jakma <paul.jakma@sun.com>
  269. * bgp_regex.c: (bgp_regcomp) Pass NOSUB flag to regcomp to
  270. prevent parsing of substitutions, which can have profound
  271. performance effects on bgpd and are of no use to the CLI
  272. anyway. How much it helps depends on the regex
  273. implementation.
  274. 2007-07-31 Paul Jakma <paul.jakma@sun.com>
  275. * (general) Support for draft-ietf-idr-as-pathlimit-03.
  276. * bgp_attr.h: (struct attr) Add pathlimit struct
  277. bgp_attr.c: (attr_str) Add BGP_ATTR_AS_PATHLIMIT string.
  278. (attrhash_key_make) tally pathlimit too
  279. (attrhash_cmp) cmp pathlimit attr
  280. (bgp_attr_aspathlimit) New, parse AS_PATHLIMIT attr.
  281. (bgp_attr_parse) ditto
  282. (bgp_packet_attribute) Write out AS_PATHLIMIT when set
  283. (bgp_dump_routes_attr) ditto
  284. * bgp_route.h: (struct bgp_static) Add TTL field
  285. * bgp_route.c: (bgp_announce_check) Drop paths that are over
  286. their hop-count TTL before sending via EBGP.
  287. Mangle ASN in pathlimit for confeds/private as best we can.
  288. (bgp_static_update_{rsclient,main}) Add any configure pathlimit
  289. information.
  290. (bgp_pathlimit_update_parents) New, update atomic-aggr setting for
  291. parents of an aspathlimit'ed static.
  292. (bgp_static_set) Add TTL argument, for all the 'bgp network'
  293. commands.
  294. Call previous for TTL changed statics.
  295. (bgp_static_unset) Call pathlimit_update_parents.
  296. (various bgp network commands) Add 'pathlimit <0-255>' qualifier
  297. to all the various forms, bar route-map - which can set ttl
  298. itself.
  299. * bgp_routemap.c: (general) Add support for 'set pathlimit ttl' and
  300. 'match pathlimit as'.
  301. 2007-07-26 Paul Jakma <paul.jakma@sun.com>
  302. * (general) Clean up and compact capability parsing slightly.
  303. Consolidate validation of length and logging of generic TLV, and
  304. memcpy of capability data, thus removing such from cap specifc
  305. code (not always present or correct).
  306. * bgp_open.h: Add structures for the generic capability TLV header
  307. and for the data formats of the various specific capabilities we
  308. support. Hence remove the badly named, or else misdefined, struct
  309. capability.
  310. * bgp_open.c: (bgp_capability_vty_out) Use struct capability_mp_data.
  311. Do the length checks *before* memcpy()'ing based on that length
  312. (stored capability - should have been validated anyway on input,
  313. but..).
  314. (bgp_afi_safi_valid_indices) new function to validate (afi,safi)
  315. which is about to be used as index into arrays, consolidates
  316. several instances of same, at least one of which appeared to be
  317. incomplete..
  318. (bgp_capability_mp) Much condensed.
  319. (bgp_capability_orf_entry) New, process one ORF entry
  320. (bgp_capability_orf) Condensed. Fixed to process all ORF entries.
  321. (bgp_capability_restart) Condensed, and fixed to use a
  322. cap-specific type, rather than abusing capability_mp.
  323. (struct message capcode_str) added to aid generic logging.
  324. (size_t cap_minsizes[]) added to aid generic validation of
  325. capability length field.
  326. (bgp_capability_parse) Generic logging and validation of TLV
  327. consolidated here. Code compacted as much as possible.
  328. * bgp_packet.c: (bgp_open_receive) Capability parsers now use
  329. streams, so no more need here to manually fudge the input stream
  330. getp.
  331. (bgp_capability_msg_parse) use struct capability_mp_data. Validate
  332. lengths /before/ memcpy. Use bgp_afi_safi_valid_indices.
  333. (bgp_capability_receive) Exported for use by test harness.
  334. * bgp_vty.c: (bgp_show_summary) fix conversion warning
  335. (bgp_show_peer) ditto
  336. * bgp_debug.h: Fix storage 'extern' after type 'const'.
  337. 2007-07-31 Lorenzo Colitti <lorenzo@colitti.com>
  338. * bgp_dump.c: (general) Add comments to code.
  339. (bgp_dump_interval_add) remove some redundant lines.
  340. (bgp_dump_set) Use enum for type argument.
  341. Avoid scheduling dump twice if exact same command
  342. is given twice..
  343. 2007-06-22 Paul Jakma <paul.jakma@sun.com>
  344. * bgp_fsm.c: (struct FSM) Bug #368. TCP Errors during OpenSent
  345. should cycle to Active, not to Idle or else peer bringup can
  346. race and cycle Idle<->Active. Reported and fix tested by
  347. Mukesh Agrawal.
  348. 2007-05-25 Paul Jakma <paul.jakma@sun.com>
  349. * bgp_route.c: (bgp_default_originate) Sanity check added
  350. previously was broken and always failed, thus this function
  351. never could run, bug #370.
  352. 2007-05-03 Paul Jakma <paul.jakma@sun.com>
  353. * bgp_route.h: (struct info) Move less frequently used
  354. fields to a lazily allocated struct info_extra.
  355. Export bgp_info_extra_get
  356. * bgp_route.c: (bgp_info_extra_new) allocate extra
  357. (bgp_info_extra_free) Free damp info and the info_extra.
  358. (bgp_info_extra_get) Retrieve the info_extra of a struct
  359. info, allocating as required.
  360. (generally) adjust to use info->extra
  361. * bgp_damp.c: (generally) use bgp_info_extra_get to access
  362. dampinfo
  363. * bgp_attr.h: Move rarely allocated attributes from struct attr
  364. to a struct attr_extra, for a substantial saving in size of
  365. struct attr.
  366. * bgp_attr.c: (bgp_attr_extra_{new,free}), new, self-explanatory.
  367. (bgp_attr_extra_get) Get the attr_extra for a given struct
  368. attr, allocating it if needs be.
  369. (bgp_attr_dup) Shallow copy the struct attr and its attr_extra.
  370. (generally) adjust to know about attr->extra.
  371. * bgp_debug.c: (bgp_dump_attr) ditto
  372. * bgp_vty.c: (show_bgp_memory) print attr and info extra sizes.
  373. * bgp_nexthop.c: (generally) adjust to know about attr->extra
  374. and info->extra.
  375. * bgp_{packet,routemap,snmp,zebra}.c: ditto
  376. 2007-04-22 Sebastien Tandel <sebastien@tandel.be>
  377. * bgp_advertise.c : (baa_hash_alloc, baa_hash_key, baa_hash_cmp)
  378. conforms to quagga hash API. Defines _hash_[alloc|key|cmp] with
  379. void * arguments as defined by the API.
  380. * bgp_aspath.c,h : (aspath_key_make) conforms to quagga hash API.
  381. Defines _hash_[alloc|key|cmp] with void * arguments as defined by
  382. the API.
  383. * bgp_attr.c,h : (cluster_hash_alloc, cluster_hash_key_make,
  384. cluster_hash_cmp, transit_hash_alloc, transit_hash_key_make,
  385. transit_hash_cmp, attrhash_key_make, attrhash_cmp,
  386. bgp_attr_hash_alloc) conforms to quagga hash API. Defines
  387. _hash_[alloc|key|cmp] with void * arguments as defined by the API.
  388. * bgp_attr.h : Definition of BGP_ATTR_DEFAULT_WEIGHT.
  389. * bgp_attr.c : (bgp_attr_default_intern) now uses
  390. bgp_attr_default_set instead of duplicating the same code.
  391. (general) Use of BGP_ATTR_DEFAULT_WEIGHT. Replace two 16 by
  392. IPV6_MAX_BYTELEN.
  393. 2007-04-15 Sebastien Tandel <sebastien@tandel.be>
  394. * bgp_aspath.c: (aspath_as_add, aspath_segment_add) Minor performance
  395. optimization: while loop should test one pointer instead of two.
  396. 2007-04-08 Paul Jakma <paul.jakma@sun.com>
  397. * bgp_route.c: (general) Same bug as fixed on 2006-11-28 by ajs for
  398. bgp static routes, but for main BGP RIB: Quick 'flap' of routes
  399. can cause bgpd to mistake a new route for a duplicate route,
  400. due to presence of removed, but not yet processed BGP RIB entry.
  401. (bgp_update_rsclient) Ignore REMOVED bgp_info for duplicate,
  402. restore route instead.
  403. (bgp_update_main) Ditto.
  404. * bgp_attr.c: (general) Bug #354: parsing of MP_REACH_NLRI and
  405. MP_UNREACH_NLRI does not take sufficient care to ensure reads
  406. from stream buffer stay in-bounds. Hence bgpd may attempt to read
  407. beyond end of stream, if given a crafted packet. As it uses the
  408. stream access methods to do so, this will typically result in
  409. assert() being hit in stream.c. Where code is compiled without
  410. assert() enabled, result is unknown.
  411. (struct message attr_str) should be static.
  412. (bgp_mp_reach_parse) Carefully check length remaining in stream
  413. against amount desired to read from stream, prior to each read,
  414. particularly where lengths are conditional on data obtained from
  415. stream - using STREAM_READABLE.
  416. Remove code to parse SNPA-number, it's a defunct field and changed
  417. to a fixed size in latest BGP MP update RFC - log warning if
  418. SNPA-number is not 0.
  419. (bgp_mp_unreach_parse) Check withdraw_length carefully against
  420. STREAM_READABLE.
  421. (bgp_attr_parse) If attribute-parser function returns error, log
  422. warning.
  423. Log attribute type on mismatch.
  424. 2007-04-07 Paul Jakma <paul.jakma@sun.com>
  425. * bgpd.c: (general) Fix bug #352
  426. (bgp_config_write_family_header) write ipv6/multicast
  427. address family header.
  428. (bgp_config_write) write out ipv6 multicast AF config.
  429. 2007-02-22 Paul Jakma <paul.jakma@sun.com>
  430. * bgp_fsm.c: (bgp_fsm_change_status) Handle state change into
  431. clearing or greater here. Simpler.
  432. (bgp_event) Clearing state change work moved to previous
  433. * bgp_route.c: (bgp_clear_route_node) Clearing adj-in here
  434. is too late, as it leaves a race between a peer being deleted
  435. and an identical peer being configured before clearing
  436. completes, leading to a crash.
  437. Simplest fix is to clean peers Adj-in up-front, rather than
  438. queueing such work.
  439. (bgp_clear_route_table) Clear peer's Adj-In and Adj-Out
  440. up-front here, rather than queueing such work.
  441. Extensive comment added on the various bits of indexed data
  442. that exist and how they need to be dealt with.
  443. (bgp_clear_route) Update comment.
  444. 2006-12-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  445. * bgp_nexthop.c: (bgp_connected_add, bgp_connected_delete)
  446. Simplify logic by using new CONNECTED_PREFIX macro.
  447. 2006-12-07 Paul Jakma <paul.jakma@sun.com>
  448. * bgp_fsm.c: Bug #302 fix, diagnosis, suggestions and testing
  449. by Juergen Kammer <j.kammer@eurodata.de>. Fix follows from
  450. his suggested fix, just made in a slightly different way.
  451. (bgp_event) Transitions into Clearing always must call
  452. bgp_clear_route_all().
  453. (bgp_stop) No need to clear routes here, BGP FSM should do
  454. it.
  455. 2006-11-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  456. * bgp_debug.h: Declare new bgp_debug_zebra conf and term flags,
  457. and define BGP_DEBUG_ZEBRA.
  458. * bgp_debug.c: Declare conf_bgp_debug_zebra and term_bgp_debug_zebra.
  459. (debug_bgp_zebra, no_debug_bgp_zebra, undebug_bgp_zebra) New
  460. functions to enable/disable bgp zebra debugging.
  461. (no_debug_bgp_all) Turn off zebra debugging.
  462. (show_debugging_bgp) Show whether zebra debugging is on.
  463. (bgp_config_write_debug) Add 'debug bgp zebra' if configured.
  464. (bgp_debug_init) Add new zebra debugging commands.
  465. * bgp_zebra.c: (bgp_router_id_update, bgp_interface_add,
  466. bgp_interface_delete, bgp_interface_up, bgp_interface_down,
  467. bgp_interface_address_add, bgp_interface_address_delete,
  468. zebra_read_ipv4, zebra_read_ipv6, bgp_zebra_announce,
  469. bgp_zebra_withdraw, bgp_redistribute_set, bgp_redistribute_unset)
  470. If zebra debugging is enabled, log an appropriate debug message.
  471. 2006-11-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  472. * bgp_route.c: (bgp_info_restore) New function that undoes
  473. the effects of a previous call to bgp_info_delete. This is
  474. used when a route is deleted and quickly re-added before the
  475. deletion has been processed.
  476. (bgp_static_update_rsclient, bgp_static_update_main,
  477. bgp_redistribute_add) Check whether a pre-existing route
  478. has the BGP_INFO_REMOVED set, and, if so, we need to call
  479. bgp_info_restore to resurrect it.
  480. 2006-10-27 Paul Jakma <paul.jakma@sun.com>
  481. * bgp_route.c: (bgp_table_stats) oops, u_intXX_t should be
  482. uintXX_t
  483. 2006-10-19 Paul Jakma <paul.jakma@sun.com>
  484. * bgpd.c: (peer_new) bgp element of peer absolutely must be
  485. filled in, make peer_new() require it as argument and update
  486. all callers. Fixes a crash reported by Jan 'yanek' Bortl and
  487. Andrew Schorr where bgpd would crash in bgp_pcount_adjust
  488. trying to dereference the bgp member of bgp->peer_self,
  489. triggered through redistribution.
  490. * bgp_route.c: (bgp_pcount_adjust) assert sanity of arguments.
  491. 2006-10-15 Paul Jakma <paul.jakma@sun.com>
  492. * bgp_route.c: (bgp_table_stats_walker) NULL deref if table is
  493. empty, bgp_table_top may return NULL, Coverity CID#73.
  494. * bgp_packet.c: (bgp_update_packet) adv->rn can not be NULL,
  495. check is bogus - changed to assert(), CID#64.
  496. binfo is checked for NULL, but then dereferenced
  497. unconditionally, fix, CID #63.
  498. (bgp_withdraw_packet) Assert adv->rn is valid, as with
  499. bgp_update_packet().
  500. 2006-10-14 Paul Jakma <paul.jakma@sun.com>
  501. * bgp_fsm.h: Remove BGP_EVENT_FLUSH_ADD, dangerous and not
  502. needed.
  503. * bgp_fsm.c: (bgp_stop) Move BGP_EVENT_FLUSH to the top of the
  504. of the function, otherwise it could flush a ClearingCompleted
  505. event, bug #302.
  506. * bgp_packet.c: Replace all BGP_EVENT_FLUSH_ADD with
  507. BGP_EVENT_ADD, fixing bug #302.
  508. 2006-09-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  509. * bgpd.c: (peer_uptime) Fix printf format/arg mismatch in
  510. zlog_warn message (%ld/size_t -> %lu/u_long).
  511. 2006-09-14 Paul Jakma <paul.jakma@sun.com>
  512. * bgp_route.c: (bgp_table_stats_walker) Address space announced
  513. should only count top-level unaggregateable prefixes, to
  514. avoid falling afoul of anti-dodgy-accounting regulations
  515. in various jurisdictions.. ;)
  516. (bgp_process_queue_init) process queue hold time too high,
  517. adds extra memory load. Change to be much lower, until such
  518. time as it's made configurable.
  519. 2006-09-14 Paul Jakma <paul.jakma@sun.com>
  520. * (general) fix the peer refcount issue exposed by previous, by
  521. just removing refcounting of peer threads, which is mostly
  522. senseless as they're references leading from struct peer,
  523. which peer_free cancels anyway. No need to muck around..
  524. * bgp_fsm.h: Just remove the refcounting from the various
  525. TIMER/READ/WRITE/EVENT ON/OFF/ADD macros.
  526. * bgp_fsm.c: (bgp_stop) use BGP_EVENT_FLUSH, no refcounts attached
  527. to events anymore.
  528. (bgp_event) remove peer_unlock, events not refcounted.
  529. * bgpd.c: (peer_free) flush events before free.
  530. 2006-09-14 Paul Jakma <paul.jakma@sun.com>
  531. * (general) Fix some niggly issues around 'shutdown' and clearing
  532. by adding a Clearing FSM wait-state and a hidden 'Deleted'
  533. FSM state, to allow deleted peers to 'cool off' and hit 0
  534. references. This introduces a slow memory leak of struct peer,
  535. however that's more a testament to the fragility of the
  536. reference counting than a bug in this patch, cleanup of
  537. reference counting to fix this is to follow.
  538. * bgpd.h: Add Clearing, Deleted states and Clearing_Completed
  539. and event.
  540. * bgp_debug.c: (bgp_status_msg[]) Add strings for Clearing and
  541. Deleted.
  542. * bgp_fsm.h: Don't allow timer/event threads to set anything
  543. for Deleted peers.
  544. * bgp_fsm.c: (bgp_timer_set) Add Clearing and Deleted. Deleted
  545. needs to stop everything.
  546. (bgp_stop) Remove explicit fsm_change_status call, the
  547. general framework handles the transition.
  548. (bgp_start) Log a warning if a start is attempted on a peer
  549. that should stay down, trying to start a peer.
  550. (struct .. FSM) Add Clearing_Completed
  551. events, has little influence except when in state
  552. Clearing to signal wait-state can end.
  553. Add Clearing and Deleted states, former is a wait-state,
  554. latter is a placeholder state to allow peers to disappear
  555. quietly once refcounts settle.
  556. (bgp_event) Try reduce verbosity of FSM state-change debug,
  557. changes to same state are not interesting (Established->Established)
  558. Allow NULL action functions in FSM.
  559. * bgp_packet.c: (bgp_write) Use FSM events, rather than trying
  560. to twiddle directly with FSM state behind the back of FSM.
  561. (bgp_write_notify) ditto.
  562. (bgp_read) Remove the vague ACCEPT_PEER peer_unlock, or else
  563. this patch crashes, now it leaks instead.
  564. * bgp_route.c: (bgp_clear_node_complete) Clearing_Completed
  565. event, to end clearing.
  566. (bgp_clear_route) See extensive comments.
  567. * bgpd.c: (peer_free) should only be called while in Deleted,
  568. peer refcounting controls when peer_free is called.
  569. bgp_sync_delete should be here, not in peer_delete.
  570. (peer_delete) Initiate delete.
  571. Transition to Deleted state manually.
  572. When removing peer from indices that provide visibility of it,
  573. take great care to be idempotent wrt the reference counting
  574. of struct peer through those indices.
  575. Use bgp_timer_set, rather than replicating.
  576. Call to bgp_sync_delete isn't appropriate here, sync can be
  577. referenced while shutting down and finishing deletion.
  578. (peer_group_bind) Take care to be idempotent wrt list references
  579. indexing peers.
  580. 2006-09-13 Paul Jakma <paul.jakma@sun.com>
  581. * bgp_aspath.c: (aspath_highest) new, return highest ASN in an
  582. aspath.
  583. * bgp_route.c: (bgp_peer_count_walker) new, do the walk done
  584. in bgp_peer_counts as a thread.
  585. (bgp_peer_counts) move walk to previous and call it via
  586. thread_execute so this RIB walk shows up in thread stats.
  587. (bgp_table_stats) New, gather some statistics for a given
  588. RIB.
  589. (bgp_table_stats_walker) New, RIB walker thread for former.
  590. (bgp_table_stats_vty) Parsing front-end for 'show bgp ...',
  591. useful model for future rationalisation of 'show ... bgp'.
  592. (bgp_route_init) Add new RIB stats commands.
  593. 2006-09-06 Paul Jakma <paul.jakma@sun.com>
  594. * (general) Squash any and all prefix-count issues by
  595. abstracting route flag changes, and maintaining count as and
  596. when flags are modified (rather than relying on explicit
  597. modifications of count being sprinkled in just the right
  598. places throughout the code).
  599. * bgp_route.c: (bgp_pcount_{dec,inc}rement) removed.
  600. (bgp_pcount_adjust) new, update prefix count as
  601. needed for a given route.
  602. (bgp_info_{uns,s}et_flag) set/unset a BGP_INFO route status
  603. flag, calling previous function when appropriate.
  604. (general) Update all set/unsets of flags to use previous.
  605. Remove pcount_{dec,inc}rement calls.
  606. No need to unset BGP_INFO_VALID in places where
  607. bgp_info_delete is called, it does that anyway.
  608. * bgp_{damp,nexthop}.c: Update to use bgp_info_{un,}set_flag.
  609. * bgp_route.h: Export bgp_info_{un,}set_flag.
  610. Add a 'meta' BGP_INFO flag, BGP_INFO_UNUSEABLE.
  611. Move BGP_INFO_HOLDDOWN macro to here from bgpd.h
  612. 2006-09-03 Paul Jakma <paul.jakma@sun.com>
  613. * bgp_route.c: Add 'show ... bgp ... <neighbour> prefix-count'
  614. commands, to provide detailed counts of prefixes for a peer.
  615. Informative, and should help pin down to pfxcnt drift
  616. problems.
  617. 2006-08-27 Paul Jakma <paul.jakma@sun.com>
  618. * bgp_advertise.c: (bgp_sync_delete) fix mtype in XFREE.
  619. NULL out peer->hash after free, to be sure.
  620. 2006-08-06 Paul Jakma <paul.jakma@sun.com>
  621. * bgp_aspath.c: (aspath_loop_check) Fix the typo-bug which
  622. essentially had disabled this check. Problem reported by
  623. Bartek Kania <mrbk@gnarf.org> in [quagga-users 7388].
  624. 2006-07-27 Paul Jakma <paul.jakma@sun.com>
  625. * bgpd.c: (peer_delete) Ensure freed buffers can not be
  626. accidently reused. A potential fix for bug #287.
  627. 2006-07-02 Paul Jakma <paul.jakma@sun.com>
  628. * bgp_fsm.c: (bgp_{stop,start}) Move clear/free of certain
  629. bits of state from stop to start, as they may be used via
  630. peer references on clearing queues..
  631. 2006-05-23 Paul Jakma <paul.jakma@sun.com>
  632. * bgp_vty.c: (neighbor_update_source_cmd) Expand tab completion
  633. to make it clear it takes both address and ifname.
  634. 2006-05-12 Paul Jakma <paul.jakma@sun.com>
  635. * bgp_attr.c: (bgp_packet_attribute) Remove dead code, Coverity
  636. CID #1
  637. * bgp_aspath.{c,h}: (aspath_print_vty) take a format string,
  638. so as to reduce burden on callers, all in bgp_route.c
  639. * bgp_route.c: (bgp_static_update_main) Remove useless NULL
  640. check, code already assumes bgp_static can not be NULL,
  641. fixes CID #7.
  642. (bgp_static_update_rsclient) ditto, CID #6
  643. (route_vty_out{,tmp}) Update to match aspath_print_vty,
  644. simplifying checks needed to get spacing right. CID #4,#5.
  645. ({damp,flap}_route_vty_out) Ditto, CID #9, #10
  646. 2006-05-08 Paul Jakma <paul.jakma@sun.com>
  647. * bgp_community.c: (community_str2com) Coverity CID#62, fix
  648. double-free, use-after-free.
  649. * bgp_route.c: (bgp_afi_node_get) given table should never be
  650. NULL, check/assert this.
  651. (bgp_static_update) Bug #240. Rsclients should only be passed
  652. the static update if they are configured for the afi,safi.
  653. 2006-05-04 Paul Jakma <paul.jakma@sun.com>
  654. * (general) VPNv4 fixes. Certain VPNv4 code was not enabled.
  655. See bug #210.
  656. * bgp_attr.{c,h}: (bgp_packet_{withdraw,attribute}) Tag should be
  657. u_char really.
  658. * bgp_packet.c: (bgp_{update,withdraw}_packet) Enable some
  659. VPNv4 code which inexplicably was ifdef'd out. comments from
  660. a tester on IRC suggest this fixes bug #210.
  661. * bgp_route.c: (general) Fix logical bug in clearing, noted
  662. by Chris Caputo in [quagga-users 6728] - clearing depended on
  663. at least one route being added to workqueue, in order for
  664. workqueue completion function to restart FSM. However, if no
  665. routes are cleared, then the completion function never is
  666. called, it needs to be called manually if the workqueue
  667. didn't get scheduled.
  668. Finally, clearing is per-peer-session, not per AFI/SAFI, so
  669. the FSM synchronisation should be in bgp_clear_route_table.
  670. (bgp_clear_route_table) Wrong place for FSM/clearing
  671. synchronisation, move to..
  672. (bgp_clear_route) FSM/clearing synchronisation should be
  673. here.
  674. If no routes were cleared, no workqueue scheduled, call
  675. the completion func to ensure FSM kicks off again.
  676. 2006-03-30 Paul Jakma <paul.jakma@sun.com>
  677. * bgp_community.c: (community_gettoken) Unknown token should
  678. return NULL, to give a strong indication to callers that
  679. the token no longer can be parsed, otherwise callers looping
  680. on this function may have a hard time ending their loop.
  681. (community_str2com) While loop around community_gettoken appears
  682. to have been coded thinking that break statement would break
  683. from the while{}, hence it could never exit for unknown token
  684. case. Fix it to do..while, so it can use the NULL result from
  685. community_gettoken easily.
  686. 2006-03-22 Paul Jakma <paul.jakma@sun.com>
  687. * bgpd.c: (peer_free) release the per-peer workqueue when
  688. freeing the peer.
  689. 2006-03-19 Paul Jakma <paul.jakma@sun.com>
  690. * bgpd/bgp_vty.c: Add includes to get several structs we want
  691. to provide usage statistics on.
  692. (show_bgp_memory_cmd) Show memory usage stats for various
  693. notable fixed size objects. Using mtype_stats_alloc and
  694. mtype_memstr recently added to memory.c.
  695. (bgp_show_summary) Report some additional stats specific to
  696. the given BGP instance and/or AFI/SAFI such as table counts,
  697. peers, rsclients and peer-groups.
  698. (bgp_vty_init) Install show_bgp_memory_cmd.
  699. * bgp_nexthop.h: Include if.h as a dependent header, for struct
  700. connected.
  701. * bgp_advertise.c: Use a distinct memory type for struct
  702. bgp_synchronize.
  703. 2006-03-12 Paul Jakma <paul.jakma@sun.com>
  704. * bgp_attr.h: (struct attr) rearrange fields to avoid
  705. wasted padding between them as much as possible.
  706. (attr_count,attr_unknown_count) export new functions to
  707. return number of counts of cached attributes.
  708. * bgp_attr.c: (attr_count,attr_unknown_count) new functions to
  709. return number of counts of cached attributes.
  710. * bgp_route.h: (struct bgp_info) rearrange fields to avoid
  711. wasted padding.
  712. * bgp_table.h: (struct bgp_table) Add a count field, of number
  713. of nodes in the table.
  714. (struct bgp_node) rearrange fields to avoid
  715. wasted padding between them, though I don't think there
  716. was any in this case.
  717. * bgp_table.c: (bgp_node_{delete,get}) Maintain the table node count.
  718. (bgp_table_count) new function to access the table count.
  719. 2006-03-03 Paul Jakma <paul.jakma@sun.com>
  720. * bgp_route.c: (bgp_clear_node_complete) Doh. When clearing
  721. is complete we need to kick off FSM again.
  722. 2006-02-21 Paul Jakma <paul.jakma@sun.com>
  723. * bgpd.h: move the clear_node_queue to be peer specific.
  724. Add a new peer status flag, PEER_STATUS_CLEARING.
  725. * bgp_table.h: (struct bgp_table) Add fields to record afi,
  726. safi of the table.
  727. (bgp_table_init) Take afi and safi to create table for.
  728. * bgp_table.c: (bgp_table_init) record the afi and safi.
  729. * bgp_nexthop.c: Update all calls to bgp_table_init.
  730. * bgp_vty.c: ditto.
  731. * bgpd.c: ditto.
  732. * bgp_fsm.c: (bgp_timer_set) dont bring up a session which is
  733. clearing.
  734. * bgp_route.c: (general) Update all bgp_table_init calls.
  735. (bgp_process_{rsclient,main}) clear_node is serialised
  736. via PEER_STATUS_CLEARING and fsm now.
  737. (struct bgp_clear_node_queue) can be removed. struct bgp_node
  738. can be the queue item data directly, as struct peer can be
  739. kept in the new wq global user data and afi/safi can be
  740. retrieved via bgp_node -> bgp_table.
  741. (bgp_clear_route_node) fix to get peer via wq->spec.data,
  742. afi/safi via bgp_node->bgp_table.
  743. (bgp_clear_node_queue_del) no more item data to delete, only
  744. unlock the bgp_node.
  745. (bgp_clear_node_complete) only need to unset CLEARING flag
  746. and unlock struct peer.
  747. (bgp_clear_node_queue_init) queue attaches to struct peer
  748. now. record peer name as queue name.
  749. (bgp_clear_route_table) If queue transitions to active,
  750. serialise clearing by setting PEER_STATUS_CLEARING rather
  751. than plugging process queue, and lock peer while queue
  752. active.
  753. Update to pass only bgp_node as per-queue-item specific data.
  754. * bgp_vty.c: (bgp_show_summary) Add a 'Clrng' sub-description
  755. to state of peer while it's suppressed due to clearing.
  756. 2006-02-18 Paul Jakma <paul.jakma@sun.com>
  757. * bgp_routemap.c: (route_set_community) Quick, very hacky, fix
  758. for the set-community leak, bug #89. True fix will be to
  759. detangle the web of *_intern caching and provide saner object
  760. caching for Quagga, future work.
  761. * bgp_route.c: (bgp_announce_check) trivial, move declaration
  762. of two local variables into the only block where they are
  763. used, to aid the reader.
  764. 2006-02-05 Paul Jakma <paul.jakma@sun.com>
  765. * bgp_route.h: Add BGP_INFO_COUNTED to track whether
  766. prefix has been counted or not.
  767. * bgp_route.c: (bgp_pcount_{inc,dec}rement) new helpers, to
  768. centralise inc/dec of prefix-count,
  769. (bgp_rib_remove) Remove pcount decrement, use helper.
  770. (bgp_rib_withdraw) ditto, additionally use previous function
  771. too.
  772. (bgp_update_main) Use pcount helpers.
  773. (bgp_clear_route_node) ditto, aslo REMOVED routes don't need
  774. clearing.
  775. * bgp_aspath.c: (aspath_gettoken) fix gcc warning about
  776. possible uninitialised usage.
  777. 2006-02-02 Paul Jakma <paul.jakma@sun.com>
  778. * bgp_route.c: (bgp_{clear_node,process}_queue_init) delay
  779. field is removed from workqueue spec.
  780. 2006-01-19 Paul Jakma <paul.jakma@sun.com>
  781. * (general) various miscellaneous compiler warning fixes.
  782. Remove redundant break statements from switch clauses
  783. which return.
  784. return from main, not exit, cause it annoys SOS.
  785. Remove stray semi-colons which cause empty-statement
  786. warnings.
  787. 2006-01-17 Paul Jakma <paul.jakma@sun.com>
  788. * bgp_nexthop.c: (zlookup_read*) convert to new Zserv format.
  789. (zlookup_query_ipv6) ditto.
  790. (bgp_import_check) ditto.
  791. 2006-01-16 Paul Jakma <paul.jakma@sun.com>
  792. * bgp_aspath.c: (assegment_append_asns) XREALLOC can return
  793. NULL theoretically, take care not to lose the allocated data.
  794. (aspath_hash_alloc) aspath_dup already set the aspath
  795. string - fix leak.
  796. (aspath_parse) aspath_hash_alloc dupes the entire aspath,
  797. including segments, but we forgot to free the temporary
  798. assegment.
  799. (aspath_snmp_pathseg) move the static stream pointer out to
  800. file scope, so it can be freed.
  801. (aspath_finish) new function, free aspath resources.
  802. * bgp_aspath.h: (aspath_finish) export.
  803. 2006-01-10 Juris Kalnins <juris@mt.lv>
  804. * bgpd.h: (bgp_router_id_unset) ex-function, remove.
  805. 2005-11-23 Paul Jakma <paul.jakma@sun.com>
  806. * bgp_aspath.c: (assegments_parse) should be static
  807. 2005-11-23 Juergen Kammer <j.kammer@eurodata.de>
  808. * bgp_aspath.c: (aspath_cmp_left_confed) fix SEGV for case
  809. where one or both paths are empty.
  810. 2005-11-14 Paul Jakma <paul.jakma@sun.com>
  811. * bgp_route.c: (bgp_process_rsclient) convert to new workqueue
  812. specs and shut up gcc, which complains about cast from void
  813. via function parameters, for some dumb reason. Do the cast
  814. inside the function instead.
  815. (bgp_process_main,bgp_processq_del) ditto.
  816. (bgp_clear_route_node) ditto.
  817. (bgp_clear_node_queue_del) ditto.
  818. 2005-11-03 Paul Jakma <paul.jakma@sun.com>
  819. * bgp_damp.c: (bgp_reuse_timer) struct bgp can be retrieved via
  820. the struct bgp_damp_info, no need to guess by using
  821. bgp_get_default().
  822. 2005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  823. * bgp_vty.c: (bgp_config_write_redistribute) Use new library function
  824. zebra_route_string instead of a local hard-coded table.
  825. 2005-09-30 Vincent Jardin <vincent.jardin@6wind.com>
  826. * bgp_packet.c: fix compilation when DEBUG is used.
  827. 2005-09-10 Paul Jakma <paul.jakma@sun.com>
  828. * Makefile.am: bgpd shouldn't list libgp's sources as its own.
  829. Use LDADD.
  830. * bgp_aspath.h:
  831. (struct assegment) New struct, abstract representation of a
  832. list of AS_PATH segments and the contained ASNs.
  833. (struct aspath) Remove the raw-data related
  834. fields, reference the abstract struct assegment instead.
  835. Remove several other computed fields, it's just a
  836. headache to maintain them and they're cheap to compute from
  837. struct assegment.
  838. (aspath_parse) parse a stream, not a pointer to raw data.
  839. (aspath_count_{hops,confeds,size}) helpers to access
  840. information formerly directly contained in struct aspath.
  841. (aspath_snmp_pathseg) Helper for SNMP, BGP MIB wants
  842. to be able to output hex representation of raw data.
  843. * bgp_aspath.c: (general) partial-rewrite. Store aspath data
  844. as an abstract singly-linked list of abstract segments,
  845. rather than storing the raw data, and parsing it each and
  846. every time. Remove several count/size fields which are cheap
  847. to compute from the abstract segment structure.
  848. (global) Include stream.h, needed for aspath_parse, and
  849. others. Couple of helper macros added.
  850. (struct assegment_header) Just the header, and only the
  851. header.
  852. (assegment_data_{new,free}) convenience functions for
  853. AS_SEG_DATA allocation, the dynamic, per-segment array of
  854. ASNs.
  855. (assegment_{new,free,free_all,dup,dup_all}) convenience
  856. functions for creating struct assegments. The _all forms will
  857. follow the entire chain of segments from the given segment.
  858. (assegment_prepend_asns) new function, prepend an ASN N times
  859. to segment.
  860. (assegment_append_asns) Append a list (array) of ASNs to
  861. segment.
  862. (int_cmp) convenience function for the aspath hash.
  863. (assegment_normalise) new function. Normalise the given
  864. segment chain to meet expectations of Quagga, and to
  865. eliminate differing raw representations of the same paths.
  866. Merge 'runs' of SEQUENCEs into one segment as our internal
  867. segment is not limited by the protocol AS_PATH segment
  868. length. Sort ASNs in SETs.
  869. (aspath_new) Take void argument to quell warnings. Use the
  870. assegment convenience functions.
  871. (assegment_count_{asns,confeds,hops}) new functions to
  872. compute at runtime values previously held in struct aspath.
  873. (aspath_size) ditto.
  874. (aspath_make_str_count) rewritten to stringify new
  875. representation, and to be slightly easier to understand
  876. hopefully.
  877. (aspath_str_update) convenience function, update the aspath
  878. str. Should investigate removing maintained string from
  879. struct aspath, just run-time compute it, as per other fields.
  880. It's just a maintenance headache, would save noticeable
  881. amount of RAM with possibly not much extra run-time cost.
  882. (aspath_dup) use the assegment dup functions.
  883. (aspath_hash_alloc) Take void * argument to satisfy gcc. Use
  884. the proper helper functions to dup data.
  885. (assegments_parse) new function. parse raw AS_PATH data into
  886. struct assegments. Normalise and return the head of the list.
  887. (aspath_parse) Parse a stream, not pointer to raw data and
  888. use assegments_parse to do it.
  889. (assegment_data_put) Write out a single segment data in protocol
  890. form to stream.
  891. (assegment_header_put) ditto but for segment header.
  892. (aspath_put) new function. As per previous but for an entire
  893. struct aspath.
  894. (aspath_snmp_pathseg) wrapper around aspath_put for
  895. bgp_snmp.c. Uses a static buffer sadly.
  896. (aspath_aggregate_as_set_add) rewritten to use assegments.
  897. (aspath_aggregate) ditto
  898. (aspath_{firstas,loop,private_as}_check) ditto
  899. (aspath_{merge,prepend,add_one_as}) ditto
  900. (aspath_cmp_left{_confed}) ditto
  901. (aspath_delete_confed_seq) ditto, plus fixed to properly
  902. delete all leading confed segments.
  903. (aspath_as_add) Just use assegment_append_asns.
  904. (aspath_segment_add) updated to use assegments.
  905. (enum as_token) Add values for confeds
  906. (aspath_gettoken) Add support for confeds
  907. (aspath_str2aspath) ditto
  908. (aspath_key_make) updated to use as_segments. Also, add
  909. segment type into the hash value as appropriate.
  910. (aspath_cmp) updated to use as_segments.
  911. (aspath_print) don't segfault on NULL argument.
  912. * bgp_attr.c: (bgp_attr_aspath) aspath_parse wants the stream
  913. now. No need for manual forwarding of stream.
  914. (bgp_packet_attribute) empty aspath is now denoted by NULL
  915. segment field, length is gone.
  916. Use aspath_size() to determine size.
  917. (bgp_attr_init) Fix declaration, explicitely specify void
  918. arg.
  919. (bgp_dump_routes_attr) Use aspath_size() to determine size.
  920. * bgp_route.c: (bgp_info_cmp) use the aspath_count_* functions.
  921. (bgp_rib_withdraw) remove unused variable. Use
  922. aspath_count_hops.
  923. * bgp_snmp.c: (bgp4PathAttrTable) raw data is gone, use
  924. aspath_snmp_pathseg to get the representation.
  925. 2005-09-10 Paul Jakma <paul.jakma@sun.com>
  926. * bgp_vty.c: (bgp_vty_init) gcc 4 compile fix. static
  927. function declarations shouldn't be inside functions.
  928. * bgp_dump.c: (bgp_dump_interval_add) ditto.
  929. 2005-08-26 Hasso Tepper <hasso at quagga.net>
  930. * bgp_route.c: Third (?) attempt to fix best selection breakage
  931. introduced long time ago with route server patch. Hopefully
  932. it's last case to fix - route-server client not in peer group.
  933. 2005-08-22 Hugo Santos <hsantos@av.it.pt>
  934. * bgp_vty.c: (general) Add support for BGP IPv6 Multicast SAFI
  935. commands and BGP_IPV6M_NODE.
  936. 2005-08-22 Paul Jakma <paul.jakma@sun.com>
  937. * bgp_route.h: (struct bgp_info) add a new flag, BGP_INFO_REMOVED.
  938. BGP_INFO_VALID is already overloaded, don't care to do same thing
  939. to STALE or HISTORY.
  940. * bgpd.h: (BGP_INFO_HOLDDOWN) Add INFO_REMOVED to the macro, as a
  941. route which should generally be ignored.
  942. * bgp_route.c: (bgp_info_delete) Just set the REMOVE flag, rather
  943. than doing actual work, so that bgp_process (called directly,
  944. or indirectly via the scanner) can catch withdrawn routes.
  945. (bgp_info_reap) Actually remove the route, what bgp_info_delete
  946. used to do, only for use by bgp_process.
  947. (bgp_best_selection) reap any REMOVED routes, other than the old
  948. selected route.
  949. (bgp_process_rsclient) reap the old-selected route, if appropriate
  950. (bgp_process_main) ditto
  951. (bgp_rib_withdraw, bgp_rib_remove) make them more consistent with
  952. each other. Don't play games with the VALID flag, bgp_process
  953. is async now, so it didn't make a difference anyway.
  954. Remove the 'force' argument from bgp_rib_withdraw, withdraw+force
  955. is equivalent to bgp_rib_remove. Update all its callers.
  956. (bgp_update_rsclient) bgp_rib_withdraw and force set is same as
  957. bgp_rib_remove.
  958. (route_vty_short_status_out) new helper to print the leading
  959. route-status string used in many command outputs. Consolidate.
  960. (route_vty_out, route_vty_out_tag, damp_route_vty_out,
  961. flap_route_vty_out) use route_vty_short_status_out rather than
  962. duplicate.
  963. (route_vty_out_detail) print state of REMOVED flag.
  964. (BGP_SHOW_SCODE_HEADER) update for Removed flag.
  965. 2005-08-03 Hasso Tepper <hasso at quagga.net>
  966. * bgp_routemap.c: Revert part of leaking communities fix commited in
  967. 2005-05-27. While ecommunity fix seems to be correct, community case
  968. isn't.
  969. 2005-06-28 Paul Jakma <paul.jakma@sun.com>
  970. * (global) The great bgpd extern and static'ification.
  971. * bgp_routemap.c: remove unused ROUTE_MATCH_ASPATH_OLD code
  972. (route_set_metric_compile) fix u_int32_t to ULONG_MAX comparison
  973. warnings.
  974. * bgp_route.h: (bgp_process, bgp_withdraw, bgp_update) export these
  975. used by various files which had their own private declarations,
  976. in the case of mplsvpn - incorrect.
  977. 2005-06-15 Paul Jakma <paul.jakma@sun.com>
  978. * bgpd.c: (bgp_terminate) workqueue's are lazy allocated and its
  979. possible to terminate bgpd before workqueues were setup, causing
  980. an abort/crash. Reported by Ashish Mehta of Sun.
  981. 2005-06-01 Paul Jakma <paul.jakma@sun.com>
  982. * (general) refcount struct peer and bgp_info, hence allowing us
  983. add work_queues for bgp_process.
  984. * bgp_route.h: (struct bgp_info) Add 'lock' field for refcount.
  985. Add bgp_info_{lock,unlock} helper functions.
  986. Add bgp_info_{add,delete} helpers, to remove need for
  987. users managing locking/freeing of bgp_info and bgp_node's.
  988. * bgp_table.h: (struct bgp_node) Add a flags field, and
  989. BGP_NODE_PROCESS_SCHEDULED to merge redundant processing of
  990. nodes.
  991. * bgp_fsm.h: Make the ON/OFF/ADD/REMOVE macros lock and unlock
  992. peer reference as appropriate.
  993. * bgp_damp.c: Remove its internal prototypes for
  994. bgp_info_delete/free. Just use bgp_info_delete.
  995. * bgpd.h: (struct bgp_master) Add work_queue pointers.
  996. (struct peer) Add reference count 'lock'
  997. (peer_lock,peer_unlock) New helpers to take/release reference
  998. on struct peer.
  999. * bgp_advertise.c: (general) Add peer and bgp_info refcounting
  1000. and balance how references are taken and released.
  1001. (bgp_advertise_free) release bgp_info reference, if appropriate
  1002. (bgp_adj_out_free) unlock peer
  1003. (bgp_advertise_clean) leave the adv references alone, or else
  1004. call bgp_advertise_free cant unlock them.
  1005. (bgp_adj_out_set) lock the peer on new adj's, leave the reference
  1006. alone otherwise. lock the new bgp_info reference.
  1007. (bgp_adj_in_set) lock the peer reference
  1008. (bgp_adj_in_remove) and unlock it here
  1009. (bgp_sync_delete) make hash_free on peer conditional, just in
  1010. case.
  1011. * bgp_fsm.c: (general) document that the timers depend on
  1012. bgp_event to release a peer reference.
  1013. (bgp_fsm_change_status) moved up the file, unchanged.
  1014. (bgp_stop) Decrement peer lock as many times as cancel_event
  1015. canceled - shouldnt be needed but just in case.
  1016. stream_fifo_clean of obuf made conditional, just in case.
  1017. (bgp_event) always unlock the peer, regardless of return value
  1018. of bgp_fsm_change_status.
  1019. * bgp_packet.c: (general) change several bgp_stop's to BGP_EVENT's.
  1020. (bgp_read) Add a mysterious extra peer_unlock for ACCEPT_PEERs
  1021. along with a comment on it.
  1022. * bgp_route.c: (general) Add refcounting of bgp_info, cleanup
  1023. some of the resource management around bgp_info. Refcount peer.
  1024. Add workqueues for bgp_process and clear_table.
  1025. (bgp_info_new) make static
  1026. (bgp_info_free) Ditto, and unlock the peer reference.
  1027. (bgp_info_lock,bgp_info_unlock) new exported functions
  1028. (bgp_info_add) Add a bgp_info to a bgp_node in correct fashion,
  1029. taking care of reference counts.
  1030. (bgp_info_delete) do the opposite of bgp_info_add.
  1031. (bgp_process_rsclient) Converted into a work_queue work function.
  1032. (bgp_process_main) ditto.
  1033. (bgp_processq_del) process work queue item deconstructor
  1034. (bgp_process_queue_init) process work queue init
  1035. (bgp_process) call init function if required, set up queue item
  1036. and add to queue, rather than calling process functions directly.
  1037. (bgp_rib_remove) let bgp_info_delete manage bgp_info refcounts
  1038. (bgp_rib_withdraw) ditto
  1039. (bgp_update_rsclient) let bgp_info_add manage refcounts
  1040. (bgp_update_main) ditto
  1041. (bgp_clear_route_node) clear_node_queue work function, does
  1042. per-node aspects of what bgp_clear_route_table did previously
  1043. (bgp_clear_node_queue_del) clear_node_queue item delete function
  1044. (bgp_clear_node_complete) clear_node_queue completion function,
  1045. it unplugs the process queues, which have to be blocked while
  1046. clear_node_queue is being processed to prevent a race.
  1047. (bgp_clear_node_queue_init) init function for clear_node_queue
  1048. work queues
  1049. (bgp_clear_route_table) Sets up items onto a workqueue now, rather
  1050. than clearing each node directly. Plugs both process queues to
  1051. avoid potential race.
  1052. (bgp_static_withdraw_rsclient) let bgp_info_{add,delete} manage
  1053. bgp_info refcounts.
  1054. (bgp_static_update_rsclient) ditto
  1055. (bgp_static_update_main) ditto
  1056. (bgp_static_update_vpnv4) ditto, remove unneeded cast.
  1057. (bgp_static_withdraw) see bgp_static_withdraw_rsclient
  1058. (bgp_static_withdraw_vpnv4) ditto
  1059. (bgp_aggregate_{route,add,delete}) ditto
  1060. (bgp_redistribute_{add,delete,withdraw}) ditto
  1061. * bgp_vty.c: (peer_rsclient_set_vty) lock rsclient list peer
  1062. reference
  1063. (peer_rsclient_unset_vty) ditto, but unlock same reference
  1064. * bgpd.c: (peer_free) handle frees of info to be kept for lifetime
  1065. of struct peer.
  1066. (peer_lock,peer_unlock) peer refcount helpers
  1067. (peer_new) add initial refcounts
  1068. (peer_create,peer_create_accept) lock peer as appropriate
  1069. (peer_delete) unlock as appropriate, move out some free's to
  1070. peer_free.
  1071. (peer_group_bind,peer_group_unbind) peer refcounting as
  1072. appropriate.
  1073. (bgp_create) check CALLOC return value.
  1074. (bgp_terminate) free workqueues too.
  1075. 2005-05-28 Hasso Tepper <hasso at quagga.net>
  1076. * bgp_routemap.c: Sync set_metric_addsub_cmd with ripd.
  1077. 2005-05-27 Hasso Tepper <hasso at quagga.net>
  1078. * bgp_routemap.c: Stop leaking communities.
  1079. 2005-05-27 Hasso Tepper <hasso at quagga.net>
  1080. * bgpd.c: Deleting bgp->rsclient list needs fix similar to pree-groups
  1081. deleting fix. Avoid leaking bgp->group, bgp->peer and bgp->rsclient
  1082. lists.
  1083. 2005-05-26 Hasso Tepper <hasso at quagga.net>
  1084. * bgpd.c: Don't crash while deleting list of peer-groups.
  1085. 2005-05-25 Hasso Tepper <hasso at quagga.net>
  1086. * bgpd.c: Fix obvious (routeserver patch) merge error. This makes "no
  1087. neighbor x.x.x.x routemap [export|import] commands work again.
  1088. 2005-05-23 Paul Jakma <paul@dishone.st>
  1089. * bgp_routemap.c: add semi-colons to VTY_GET_* to match vty.h change
  1090. * bgp_fsm.h: Add extern qualifier to exported functions
  1091. * bgp_nexthop.c: add static to nexthop specific globals
  1092. * *.h: Add guard defines
  1093. 2005-05-19 Paul Jakma <paul@dishone.st>
  1094. * bgp_fsm.c: (bgp_stop) use sockunion_free, not XFREE..
  1095. * bgp_network.c: (bgp_getsockname) ditto
  1096. (bgp_accept) use XSTRDUP
  1097. * bgp_routemap.c: (route_match_peer) ditto, als use a ret value and
  1098. remove one sockunion_free.
  1099. * bgpd.c: (peer_delete) ditto.
  1100. XFREE the correct memtype, not free.
  1101. (peer_create) use XSTRDUP
  1102. * bgp_packet.c: (bgp_stream_dup) deleted, stream_dup should be used
  1103. (various) update -> s/bgp_stream_dup/stream_dup
  1104. 2005-04-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1105. * bgp_zebra.c (bgp_redistribute_set, bgp_redistribute_unset):
  1106. The 2nd arg to zebra_redistribute_send is now zclient instead of
  1107. zclient->sock.
  1108. 2005-04-09 Akihiro Mizutani <mizutani@net-chef.net>
  1109. * bgp_vty.c: Make "exit-address-family" work in IPv4 unicast address
  1110. family node.
  1111. 2005-04-08 Martin Ling <martin-quagga@earth.li>
  1112. * bgp_aspath.[ch], bgp_route.c, bgp_vty.c, bgpd.[ch]: Allow to enable
  1113. the length of confederation path segments to be included during the
  1114. as-path length check in the best path decision.
  1115. 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1116. * bgp_zebra.c: (bgp_interface_delete) After deleting, set ifp->ifindex
  1117. to IFINDEX_INTERNAL.
  1118. 2005-03-21 Hasso Tepper <hasso at quagga.net>
  1119. * bgp_route.c: Don't crash while clearing route tables if there is
  1120. no particular afi/safi configured.
  1121. 2005-02-23 Hasso Tepper <hasso at quagga.net>
  1122. * bgp_route.c: Make reannouncing prefixes with changed attributes
  1123. work again.
  1124. 2005-02-02 Akihiro Mizutani <mizutani@net-chef.net>
  1125. * bgp_vty.c: Deprecate "neighbor transparent-as" and "neighbor
  1126. transparent-nexthop" commands.
  1127. 2005-02-02 Akihiro Mizutani <mizutani@net-chef.net>
  1128. * bgp_routemap.c: New route-map command - "match ip route-source".
  1129. 2005-02-02 Akihiro Mizutani <mizutani@net-chef.net>
  1130. * bgp_clist.[ch], bgp_route.c, bgp_routemap.c, bgp_vty.c:
  1131. community-list cleanup.
  1132. 2005-02-02 Akihiro Mizutani <mizutani@net-chef.net>
  1133. * bgp_route.c, bgp_vty.c, bgp_zebra.c, bgpd.[ch]: "enforce-multihop"
  1134. -> "disable-connected-check".
  1135. 2005-02-02 Akihiro Mizutani <mizutani@net-chef.net>
  1136. * bgp_fsm.c, bgp_open.c, bgp_packet.c, bgp_route.[ch], bgp_vty.c,
  1137. bgpd.[ch]: Add BGP_INFO_STALE flag and end-of-rib support. "bgp
  1138. graceful-restart" commands added. Show numbers of individual
  1139. messages in "show ip bgp neighbor" command. Final pieces of graceful
  1140. restart.
  1141. 2005-02-01 Akihiro Mizutani <mizutani@net-chef.net>
  1142. * bgp_open.c, bgp_packet.c, bgp_vty.c, bgpd.[ch]: Remove "no neighbor
  1143. capability route-refresh" commands. Route refresh capability is sent
  1144. anyway now. Preserve dummy deprecated commands.
  1145. 2005-02-01 Akihiro Mizutani <mizutani@net-chef.net>
  1146. * bgp_attr.c, bgp_snmp.c, bgp_vty.c, bgpd.[ch]: Remove support for old
  1147. draft - ie. "neighbor version 4-" commands. Preserve dummy "neighbor
  1148. version" command as deprecated.
  1149. 2005-02-01 Akihiro Mizutani <mizutani@net-chef.net>
  1150. * bgpd.[ch], bgp_vty.c, bgp_route.c: "Restart session after
  1151. maximum-prefix limit" feature support.
  1152. 2005-02-01 Akihiro Mizutani <mizutani@net-chef.net>
  1153. * bgp_nexthop.c: Improve debug.
  1154. * bgpd.[ch], bgp_nexthop.c, bgp_snmp.c: Remove useless bgp_get_master()
  1155. function.
  1156. * bgp_packet.c: MP AFI_IP update and withdraw parsing.
  1157. * bgp_fsm.c: Reset peer synctime in bgp_stop(). bgp_fsm_change_status()
  1158. is better place to log about peer status change than bgp_event().
  1159. Log in bgp_connect_success().
  1160. * bgp_vty.c: Fix typo in comment.
  1161. * bgp_attr.c: Better log about unknown attribute.
  1162. 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1163. * bgp_filter.c: (ip_as_path,no_ip_as_path) Use argv_concat instead
  1164. of buffer_getstr.
  1165. * bgp_route.c: (bgp_show_regexp) Fix memory leak: need to free string
  1166. returned by buffer_getstr.
  1167. (bgp_show_community) Must use XFREE instead of free on string
  1168. returned by buffer_getstr.
  1169. * bgp_routemap.c: (set_community) Must use XFREE instead of free
  1170. on string returned by buffer_getstr.
  1171. * bgp_vty.c: (neighbor_description) Use argv_concat instead of
  1172. buffer_getstr.
  1173. 2005-01-24 Hasso Tepper <hasso at quagga.net>
  1174. * bgp_route.c: Fix showstopper bug. New route must be selected also
  1175. if old one is flaged as BGP_INFO_ATTR_CHANGED.
  1176. 2005-01-17 Hasso Tepper <hasso at quagga.net>
  1177. * bgp_route.c: Clear peer's routing table regardless whether it's
  1178. configured or not. Being not configured is even better reason to
  1179. do it.
  1180. 2005-01-05 Paul Jakma <paul@dishone.st>
  1181. * bgp_packet.c: (bgp_write) set socket to nonblock while writing
  1182. this should be generalised. See bugzilla #102. Fix supplied by
  1183. wawa@yandex-team.ru (Vladimir Ivanov).
  1184. 2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1185. * *.c: Change level of debug messages to LOG_DEBUG.
  1186. 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1187. * bgp_main.c: (main) The 2nd argument to openzlog has been removed.
  1188. 2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1189. * bgp_main.c: (sigint) Use zlog_notice for termination message.
  1190. (main) Use zlog_notice for startup announcement.
  1191. 2004-11-25 Hasso Tepper <hasso at quagga.net>
  1192. * bgp_main.c: Make group to run as configurable.
  1193. 2004-11-09 Paul Jakma <paul@dishone.st>
  1194. * bgp_nexthop.c: collapse bgp_connected_ipvX, bgp_nexthop_cache_ipvX
  1195. and cache{1,2}.. into arrays of tables and hence collapse
  1196. bgp_scan_ipv{4,6} into a single bgp_scan function. Tested, though
  1197. a long time ago (and this change was hand-merged).
  1198. 2004-11-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1199. * bgp_route.c: Remove all code related to VTY_CONTINUE; this feature
  1200. is deprecated because the output did not represent a single point
  1201. in time. All output needs to be generated inline and buffered
  1202. by the library code.
  1203. (route_vty_out,route_vty_out_tag,damp_route_vty_out,
  1204. flap_route_vty_out) Remove code to count number of lines of output,
  1205. since this was only useful for VTY_CONTINUE behavior.
  1206. (bgp_show_callback,vty_calc_line) Removed.
  1207. (bgp_show_table) Remove hooks for VTY_CONTINUE callback support.
  1208. As a result, there's a new output_arg argument to this function.
  1209. Make function static.
  1210. (bgp_show) Make function static and add a new output_arg argument.
  1211. Change all functions that call bgp_show or bgp_show_table to
  1212. pass the new output_arg argument (that used to be passed inside
  1213. vty->output_arg).
  1214. * bgp_mplsvpn.c: Remove declarations of functions defined in
  1215. bgp_route.c; these declarations belong in bgp_route.h.
  1216. * bgp_route.h: Declare 3 global functions used in both bgp_route.c
  1217. and in bgp_mplsvpn.c.
  1218. 2004-10-31 Paul Jakma <paul@dishone.st>
  1219. * {bgpd,bgp_attr}.c: size_t printf format should be ld.
  1220. 2004-10-25 Paul Jakma <paul@dishone.st>
  1221. * Update with fix in debian bug id 222930.
  1222. * bgp_main.c: Add ZCAP_RAW, needed to bind to interfaces.
  1223. bgp_network.c: (....) raise/lower privs around call to
  1224. SO_BINDTODEVICE sockopt.
  1225. 2004-10-19 Andrew J. Schorr <aschorr@telemetry-investments.com>
  1226. * bgp_nexthop.c: (bgp_connected_add) Connected destination pointer
  1227. may be NULL.
  1228. (bgp_connected_delete) ditto.
  1229. 2004-10-14 Hasso Tepper <hasso at quagga.net>
  1230. * bgp_dump.c: Make dump configuration appear in vtysh.
  1231. 2004-10-13 Hasso Tepper <hasso at quagga.net>
  1232. * bgp_snmp.c: Remove defaults used to initialize smux connection to
  1233. snmpd. Connection is initialized only if smux peer is configured.
  1234. * bgp_view.c: It's dead file. Reomved.
  1235. 2004-10-13 Paul Jakma <paul@dishone.st>
  1236. * (global) more const'ification and fixups of types to clean up code.
  1237. * bgp_mplsvpn.{c,h}: (str2tag) fix abuse. Still not perfect,
  1238. should use something like the VTY_GET_INTEGER macro, but without
  1239. the vty_out bits..
  1240. * bgp_routemap.c: (set_aggregator_as) use VTY_GET_INTEGER_RANGE
  1241. (no_set_aggregator_as) ditto.
  1242. * bgpd.c: (peer_uptime) fix unlikely bug, where no buffer is
  1243. returned, add comments about troublesome return value.
  1244. 2004-10-03 James R. Leu <jleu at mindspring.com>
  1245. * bgp_vty.c: Router id from zebra can be manually overriden.
  1246. * bgp_zebra.c: Read router id related messages from zebra daemon.
  1247. Remove own code related with router id selection.
  1248. * bgpd.c, bgpd.h: Remove own router id selection code. Use the one
  1249. from zebra daemon if it isn't manually overriden.
  1250. 2004-09-26 Hasso Tepper <hasso at quagga.net>
  1251. * bgp_aspath.c, bgp_packet.c, bgp_vty.c: Fix compiler warnings.
  1252. 2004-09-23 Hasso Tepper <hasso at quagga.net>
  1253. * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
  1254. 2004-07-09 Paul Jakma <paul@dishone.st>
  1255. * Merge of GNU Zebra cvs2svn changesets r799, r800 and r807.
  1256. * bgp_dump.c: (bgp_dump_attr) cleanup. return status code. check
  1257. attributes present before printing.
  1258. * bgp_dump.c: update bgp_dump_attr prototype.
  1259. * bgp_packet.c: (bgp_update_receive) init attrstr. check status
  1260. of bgp_dump_attr. Log end-of-rib UPDATEs.
  1261. 2004-07-09 Sowmini Varadhan <sowmini.varadhan@sun.com>
  1262. * bgp_packet.c: (bgp_collision_detect) Send NOTIFY on new socket
  1263. if that is connection we're closing.
  1264. (bgp_read) invalid marker check applies to KEEPALIVE too.
  1265. * bgp_route.c: Ignore multicast NRLI, dont send NOTIFY.
  1266. 2004-06-04 Paul Jakma <paul@dishone.st>
  1267. * type mismatch fixes
  1268. 2004-05-21 Akihiro Mizutani <mizutani@net-chef.net>
  1269. * bgpd.h, bgp_open.[ch], bgp_debug.c, bgp_vty.[ch], bgp_fsm.c:
  1270. Graceful restart capability display.
  1271. 2005-05-20 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1272. * bgp_debug.c: Cosmetical fixes and log neighbor changes.
  1273. 2004-05-20 Akihiro Mizutani <mizutani@net-chef.net>
  1274. * bgp_ecommunity.c: Transit ecommunity support.
  1275. * bgp_ecommunity.c: Fix for unknown community crush.
  1276. 2005-05-20 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1277. * *: Maximum prefix threshold support.
  1278. * *: Reset notification fixups.
  1279. 2004-05-08 Paul Jakma <paul@dishone.st>
  1280. * bgp_zebra.c: (bgp_interface_address_add) sync to zclient changes
  1281. (bgp_interface_address_delete) ditto.
  1282. (bgp_zebra_announce) ditto.
  1283. (bgp_zebra_withdraw) ditto.
  1284. 2004-05-03 Daniel Roesen <dr@cluenet.de>
  1285. * bgp_fsm.c: (bgp_stop) Reset uptime only on transition from
  1286. Established so that it reflects true downtime (rather time
  1287. since last transition, eg Active->Idle)
  1288. 2004-05-01 rivo nurges <rix@estpak.ee>
  1289. * bgp_route.c: fix UNH IOL BGP-4.1.12f
  1290. 2004-05-01 Paul Jakma <paul@dishone.st>
  1291. * Revert the attempted clean-up of the dummy peer hack, reverts
  1292. patchsets 435 (see 2004-02-17 below) and 456.
  1293. 2004-04-16 rivo nurges <rix@estpak.ee>
  1294. * bgpd.h, bgp_debug.c: update cease subcodes to
  1295. draft-ietf-idr-cease-subcode-05
  1296. * bgpd.h, bgpd.c, bgp_route.c, bgp_route.h: fix UNH IOL BGP-4.1.6a
  1297. 2004-02-17 Paul Jakma <paul@dishone.st>
  1298. * bgpd.h: (bgp_peer) add fd_local and fd_accept
  1299. file descriptor's, fd becomes a pointer to one of these.
  1300. * bgpd.c: (global) adjust for fact that fd is now a pointer.
  1301. (peer_create_accept) removed.
  1302. * bgp_route.c: (global) adjust for change of peer fd to pointer
  1303. * bgp_packet.c: (bgp_collision_detect) adjust and remove the
  1304. "replace with other peer" hack.
  1305. * bgp_network.c: (bgp_accept) Remove the dummy peer hack.
  1306. Update peer->fd_accept instead.
  1307. (global) Adjust fd references - now a pointer.
  1308. * bgp_fsm.c: (global) adjust peer fd to pointer.
  1309. (bgp_connection_stop) new function, to stop connection.
  1310. (global) adjust everything which closed peer fd to use
  1311. bgp_connection_stop().
  1312. 2003-12-23 Krzysztof Oledzki <oleq@ans.pl>
  1313. * bgp_network.c: drop privs on error cases
  1314. 2003-08-11 kunihiro <kunihiro@zebra.org>
  1315. * bgp_route{,map}.c: Extend 'set ip next-hop' in route-maps with
  1316. ability to specify 'peer-address' rather than IP.
  1317. 2003-06-09 Paul Jakma <paul@dishone.st>
  1318. * bgp_clist.c (community_list_delete): honour deny statements
  1319. 2003-04-19 Hasso Tepper <hasso@estpak.ee>
  1320. * rip_routemap.c: sync daemon's route-map commands to have same
  1321. syntax
  1322. 2003-01-09 Akihiro Mizutani <mizutani@net-chef.net>
  1323. * bgp_routemap.c: Add match extcommunity command.
  1324. 2002-10-23 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1325. * bgp_aspath.c (aspath_init): Extend hash size from default to
  1326. 32767.
  1327. (aspath_key_make): Use unsigned shoft for making hash. Suggested
  1328. by: Marc Evans <Marc@SoftwareHackery.Com>
  1329. 2002-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1330. * bgp_clist.c (community_entry_free): Fix memory leak of standard
  1331. extcommunity-list config string.
  1332. 2002-08-19 Akihiro Mizutani <mizutani@net-chef.net>
  1333. * bgp_route.c (route_vty_out_detail): Fix bug of router-id display
  1334. when multiple instance is used.
  1335. 2002-08-18 Akihiro Mizutani <mizutani@net-chef.net>
  1336. * bgpd.c: Make "default-originate" and "maximum-prefix" commands
  1337. available in peer-group configuration.
  1338. 2002-08-13 Akihiro Mizutani <mizutani@net-chef.net>
  1339. * bgp_packet.c (bgp_open_send): Put Opt Parm Len 0 when last
  1340. capability packet cause error or dont-capability-negotiate option
  1341. is specified.
  1342. 2002-07-07 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1343. * zebra-0.93 released.
  1344. 2001-10-28 Kunihiro Ishiguro <kunihiro@zebra.org>
  1345. * bgpd.c (bgp_vty_init): Translate update commands are removed.
  1346. 2001-10-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  1347. * bgp_route.c (bgp_static_set): Add workaround for BGP static
  1348. route announcement when there is no zebra running.
  1349. 2001-10-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  1350. * bgpd.c (neighbor_remote_as_unicast): Remove "remote-as nlri
  1351. unicast multicast" commands.
  1352. 2001-09-14 Akihiro Mizutani <mizutani@dml.com>
  1353. * bgp_open.c: When we receive capability route-refresh, we should
  1354. check we send the capability not we receive the capability.
  1355. * bgp_route.c (bgp_network_mask_natural_route_map): network
  1356. statement route-map is added.
  1357. 2001-08-31 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1358. * bgp_advertise.c (bgp_advertise_intern): attr must be interned
  1359. before looking up hash table.
  1360. 2001-08-30 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1361. * bgpd.h (struct peer): BGP filter is moved from peer_conf to
  1362. peer.
  1363. 2001-08-28 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1364. * bgp_nexthop.c (bnc_nexthop_free): Fix next pointer bug.
  1365. Suggested by: "Hong-Sung Kim" <hoskim@lanbird.co.kr>.
  1366. 2001-08-26 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1367. * bgp_table.c (bgp_node_create): Clearn memory before use it.
  1368. 2001-08-24 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1369. * Change to use bgp_table.[ch].
  1370. 2001-08-23 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1371. * bgpd.c (bgp_init): Add "transparent-as" and
  1372. "transparent-nexthop" for old version compatibility.
  1373. 2001-08-23 Akihiro Mizutani <mizutani@dml.com>
  1374. * bgpd.h (struct peer): default-originate route-map is added.
  1375. * bgp_route.c: When self originated route is advertised with
  1376. attrubute-unchanged, nexthop was not properly set. This bug is
  1377. fixed.
  1378. 2001-08-22 Akihiro Mizutani <mizutani@dml.com>
  1379. * bgpd.c (neighbor_attr_unchanged): transparent-as and
  1380. transparent-next-hop commands are restructured. Instead of
  1381. current transparent-* commands, attribute-unchanged command is
  1382. introduced.
  1383. neighbor A.B.C.D attribute-unchanged [as-path|next-hop|med]
  1384. (neighbor_default_originate): "default-originate" configuration
  1385. announce default route even 0.0.0.0/0 does not exists in BGP RIB.
  1386. 2001-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1387. * zebra-0.92a released.
  1388. 2001-08-19 Akihiro Mizutani <mizutani@dml.com>
  1389. * bgpd.c: AF specific soft-reconfiguration inbound commands are
  1390. added.
  1391. 2001-08-17 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1392. * bgp_route.c (bgp_show_callback): Do not do community NULL check.
  1393. * bgp_community.c (community_cmp): Add check for commnunity NULL
  1394. check.
  1395. * bgp_routemap.c (route_match_community): Do not check comunity is
  1396. NULL. It may match to community-list "^$".
  1397. * bgp_community.c (community_match): Add check for community is
  1398. NULL case.
  1399. 2001-08-17 Akihiro Mizutani <mizutani@dml.com>
  1400. * bgpd.c: AF specific route-reflector-client and
  1401. route-server-client configuration are added.
  1402. 2001-08-17 Rick Payne <rickp@ayrnetworks.com>
  1403. * bgp_clist.c (community_match_regexp): Check special ^$ case.
  1404. 2001-08-17 Akihiro Mizutani <mizutani@dml.com>
  1405. * bgp_clist.c (community_list_match): Fix bug of community list
  1406. permit and deny check.
  1407. 2001-08-16 Akihiro Mizutani <mizutani@dml.com>
  1408. * bgp_mplsvpn.c (bgp_mplsvpn_init): Add AF specific "nexthop-self"
  1409. command.
  1410. 2001-08-15 Akihiro Mizutani <mizutani@dml.com>
  1411. * bgpd.h (PEER_FLAG_SEND_COMMUNITY): Per AF based configuration
  1412. flag is introduced.
  1413. * bgp_mplsvpn.c (bgp_mplsvpn_init): VPNv4 filtering is added.
  1414. 2001-08-15 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1415. * zebra-0.92 released.
  1416. 2001-08-13 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1417. * bgpd.c (bgp_delete): "no router bgp" free static, aggregate, rib
  1418. table properly.
  1419. 2001-08-12 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1420. * bgp_route.c (bgp_node_safi): Return SAFI of current node.
  1421. (bgp_config_write_network_vpnv4): VPNv4 static configuration
  1422. display.
  1423. 2001-08-11 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1424. * bgpd.c (no_bgp_ipv4_multicast_route_map): Add IPv4 multicast
  1425. node filter commands.
  1426. 2001-08-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  1427. * bgpd.h (PEER_FLAG_IGNORE_LINK_LOCAL_NEXTHOP): Add
  1428. "ignore-link-local-nexthop" flag for ignore link-local nexthop for
  1429. IPv6.
  1430. 2001-08-07 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1431. * bgpd.c (address_family_ipv4_multicast): "address-family ipv4
  1432. multicast" is added.
  1433. (address_family_ipv6_unicast): "address-family ipv6 unicast" is
  1434. added.
  1435. 2001-08-07 Akihiro Mizutani <mizutani@dml.com>
  1436. * bgp_route.c (bgp_process): Use flag instead of as_selected
  1437. memeber in struct bgp_info.
  1438. * bgp_route.h (struct bgp_info): Remove as_selected memeber from
  1439. struct bgp_info.
  1440. 2001-07-31 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1441. * bgp_route.c (bgp_announce_check): Enclose sending time AS loop
  1442. check code with #ifdef BGP_SEND_ASPATH_CHECK.
  1443. 2001-07-29 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1444. * bgp_packet.c (bgp_withdraw_send): Simplify address family check.
  1445. * bgpd.h (BGP_INFO_HOLDDOWN): Introduce new macro to check BGP
  1446. information is alive or not.
  1447. * bgp_community.c: Use community_val_get() on all OS.
  1448. 2001-07-24 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1449. * bgp_route.c (bgp_announce_check): Simplify set next-hop self
  1450. check.
  1451. 2001-07-24 Akihiro Mizutani <mizutani@dml.com>
  1452. * bgp_route.c (bgp_announce_check): To route server clients, we
  1453. announce AS path, MED and nexthop transparently.
  1454. 2001-06-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  1455. * bgp_routemap.c (route_set_atomic_aggregate_free): Do not call
  1456. XFREE. No memory is allocated in
  1457. route_set_atomic_aggregate_compile().
  1458. 2001-06-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  1459. * bgp_routemap.c (bgp_route_map_init): `match nlri` and `set nlri`
  1460. are replaced by `address-family ipv4` and `address-family vpnvr'.
  1461. 2001-06-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  1462. * bgp_route.c (bgp_withdraw): Add check for BGP_PEER_CONFED.
  1463. Reported by Rick Payne <rickp@rossfell.co.uk>.
  1464. 2001-06-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  1465. * bgp_zebra.c (bgp_zebra_announce): When global IPv6 nexthop is
  1466. empty, use socket's remote address for the nexthop.
  1467. 2001-06-04 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1468. * bgpd.c (peer_delete): Fix memory leak. Reported by Yosi Yarchi
  1469. <Yosi_Yarchi@KereniX.com>
  1470. 2001-06-01 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1471. * bgpd.c (bgp_delete): Fix memory leak. Reported by Yosi Yarchi
  1472. <Yosi_Yarchi@KereniX.com>
  1473. 2001-05-27 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1474. * bgp_route.c (bgp_route_clear_with_afi_vpnv4): Use next instead
  1475. of ri->next.
  1476. * bgp_packet.c (bgp_withdraw_send): MPLS/VPN withdraw takes effect
  1477. when HAVE_IPV6 is not defined.
  1478. 2001-03-07 "Akihiro Mizutani" <mizutani@dml.com>
  1479. * bgpd.c (peer_timers_set): Adjust keepalive timer to fit less
  1480. than holdtime / 3.
  1481. (bgp_confederation_peers_unset): Only set peer->local_as when
  1482. confederation is enabled.
  1483. (bgp_timers): Add "timers bgp <0-65535> <0-65535>" command.
  1484. * bgp_route.c (bgp_announce_check): Set med of redistributed route
  1485. when it is announced to EBGP peer.
  1486. 2001-03-06 "Akihiro Mizutani" <mizutani@dml.com>
  1487. * bgp_nexthop.c (bgp_scan_ipv4): bgp_scan() call bgp_process() for
  1488. all prefixes.
  1489. 2001-03-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  1490. * bgp_attr.c (bgp_attr_origin): When bgpd send NOTIFICATION with
  1491. erroneous attribute (type, length and value), it does include
  1492. attribute flags field.
  1493. 2001-02-21 "Akihiro Mizutani" <mizutani@dml.com>
  1494. * bgp_route.c (bgp_announce_check): The route reflector is not
  1495. allowed to modify the attributes of the reflected IBGP routes.
  1496. 2001-02-20 "Akihiro Mizutani" <mizutani@dml.com>
  1497. * bgp_route.c (bgp_info_cmp): During path seleciton, BGP
  1498. confederation peer is treated as same as IBGP peer.
  1499. 2001-02-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  1500. * bgp_route.c (bgp_redistribute_add): Initialize attr_new with
  1501. attr. Call aspath_unintern when return from this function.
  1502. 2001-02-19 "Akihiro Mizutani" <mizutani@dml.com>
  1503. * bgpd.c (bgp_router_id_set): Reset BGP peer when router-id is
  1504. changed.
  1505. 2001-02-18 "Akihiro Mizutani" <mizutani@dml.com>
  1506. * bgp_packet.c (bgp_open_receive): When user configure holdtimer,
  1507. do not refrect the value to current session.
  1508. 2001-02-16 Kunihiro Ishiguro <kunihiro@zebra.org>
  1509. * bgp_route.c (bgp_aggregate_delete): Set BGP_INFO_ATTR_CHANGE to
  1510. suppress route withdraw.
  1511. * bgp_damp.c (bgp_damp_init): Fix bug of flap dampening.
  1512. 2001-02-16 "Akihiro Mizutani" <mizutani@dml.com>
  1513. * bgp_aspath.c (aspath_make_str_count): Use ',' for separator for
  1514. AS_SET and AS_CONFED_SET.
  1515. 2001-02-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  1516. * bgp_route.c (bgp_process): Do not consider suppress route.
  1517. * bgp_aspath.c (aspath_aggregate_as_set_add): Reset asset when
  1518. aspath->data is realloced.
  1519. 2001-02-15 "Akihiro Mizutani" <mizutani@dml.com>
  1520. * bgp_attr.c (bgp_attr_aggregate_intern): Do not set atomic
  1521. aggregate when using as-set.
  1522. 2001-02-14 "Akihiro Mizutani" <mizutani@dml.com>
  1523. * bgpd.c (bgp_confederation_peers_unset): Set peer's local-as
  1524. correctly.
  1525. * bgp_route.c (bgp_update): Just ignore AS path loop for
  1526. confederation peer.
  1527. 2001-02-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  1528. * bgp_route.c (bgp_aggregate_set): Add as_set argument.
  1529. (bgp_aggregate_unset): Remove summary_only argument.
  1530. (aggregate_address_as_set): New commands.
  1531. "aggregate-address A.B.C.D/M as-set"
  1532. "no aggregate-address A.B.C.D/M as-set"
  1533. 2001-02-08 "Akihiro Mizutani" <mizutani@dml.com>
  1534. * bgp_route.c (bgp_announce_check): Do not modify nexthop when the
  1535. route is passed by route reflector.
  1536. 2001-02-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  1537. * bgp_route.c: "no bgp dampening" with argument.
  1538. (bgp_announce_check): Do not modify nexthop when the route is
  1539. passed by route reflector.
  1540. 2001-02-07 "Akihiro Mizutani" <mizutani@dml.com>
  1541. * bgpd.c (neighbor_passive): Change "neighbor NEIGHBOR remote-as
  1542. ASN passive" to "neighbor NEIGHBOR passive".
  1543. (bgp_announce_check): Check well-known community attribute even
  1544. when "no neighbor send-community" is set.
  1545. 2001-02-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  1546. * bgp_fsm.c (bgp_establish): Do not send keepalive at established
  1547. time when keepalive timer is configured as zero.
  1548. 2001-02-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  1549. * bgp_attr.c (bgp_attr_check): When peer is IBGP peer, local
  1550. preference is well-known attribute.
  1551. 2001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  1552. * zebra-0.91 is released.
  1553. * bgp_attr.h (struct attr): Comment out DPA value.
  1554. (struct attr): Change refcnt type from int to unsinged long.
  1555. * bgp_attr.c (attrhash_key_make): Likewise.
  1556. (attrhash_cmp): Likewise.
  1557. (bgp_attr_dpa): Likewise.
  1558. 2001-01-30 "Akihiro Mizutani" <mizutani@dml.com>
  1559. * bgp_route.c (bgp_info_cmp): Make route selection completely same
  1560. as Cisco's.
  1561. 2001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  1562. * bgp_attr.h (BGP_ATTR_FLAG_OPTIONAL): Rename old ATTR_FLAG_* to
  1563. BGP_ATTR_FLAG_* to clarify meenings.
  1564. 2001-01-30 "Akihiro Mizutani" <mizutani@dml.com>
  1565. * bgp_route.c (route_vty_out): Display argument to suppress same
  1566. prefix information display.
  1567. (route_vty_out_route): Don't display mask information for
  1568. classfull network.
  1569. 2001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  1570. * bgp_attr.h (SET_BITMAP): Simple bitmapping macros.
  1571. * bgp_attr.c (bgp_attr_parse): Use bitmap for attribute type
  1572. check.
  1573. 2001-01-29 Kunihiro Ishiguro <kunihiro@zebra.org>
  1574. * bgp_attr.c (bgp_mp_reach_parse): Enclose loggin with BGP_DEBUG.
  1575. (bgp_attr_parse): Comment out well-known attribute check.
  1576. 2001-01-28 Kunihiro Ishiguro <kunihiro@zebra.org>
  1577. * bgp_route.c (bgp_static_unset): Link-local IPv6 address can't be
  1578. used for network advertisement.
  1579. (nlri_parse): When link-local IPv6 address NLRI comes from
  1580. remote-peer, log the information then simply ignore it.
  1581. * bgp_zebra.c (zebra_read_ipv6): Link-local IPv6 address is not
  1582. redistributed.
  1583. * bgp_route.c (bgp_update): Check IPv6 global nexthop
  1584. reachability.
  1585. 2001-01-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  1586. * bgp_route.c (bgp_update): Check nexthop points local address or
  1587. not.
  1588. (bgp_static_update_vpnv4): Set valid flag.
  1589. * bgp_attr.c (bgp_attr_parse): Duplicate attribute check.
  1590. (bgp_attr_parse): Well-known attribute check.
  1591. * bgp_open.c (bgp_auth_parse): Authentication is not yet supported.
  1592. * bgp_packet.c (bgp_valid_marker): Check marker is synchronized.
  1593. * bgpd.c (clear_bgp): Send NOTIFICATION Cease when SEND_CEASE is
  1594. defined.
  1595. * bgp_snmp.c (bgp4PathAttrTable): Fix compile error.
  1596. 2001-01-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  1597. * bgpd.c (bgp_network_import_check): New command for IGP network
  1598. check.
  1599. 2001-01-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  1600. * bgp_nexthop.c (bgp_scan): Run bgp_process when IGP metric is
  1601. changed. Call bgp_process once for each node.
  1602. 2001-01-23 "Akihiro Mizutani" <mizutani@dml.com>
  1603. * bgp_route.c (bgp_info_cmp): Add IGP metric comparison.
  1604. 2001-01-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  1605. * bgp_route.c (bgp_info_cmp): Add IGP metric comparison.
  1606. * bgp_nexthop.c (bgp_nexthop_lookup): Set IGP metric for valid
  1607. IBGP route.
  1608. 2001-01-23 "Akihiro Mizutani" <mizutani@dml.com>
  1609. * bgp_route.c (show_ip_bgp_prefix_longer): Add new commands.
  1610. "show ip bgp A.B.C.D/M longer-prefixes"
  1611. "show ip bgp ipv4 (unicast|multicast) A.B.C.D/M longer-prefixes"
  1612. "show ipv6 bgp X:X::X:X/M longer-prefixes"
  1613. "show ipv6 mbgp X:X::X:X/M longer-prefixes"
  1614. 2001-01-20 "Akihiro Mizutani" <mizutani@dml.com>
  1615. * bgp_route.c (show_ip_bgp_cidr_only): Add new commands.
  1616. "show ip bgp cidr-only"
  1617. "show ip bgp ipv4 (unicast|multicast) cidr-only"
  1618. 2001-01-18 "Akihiro Mizutani" <mizutani@dml.com>
  1619. * bgp_route.c (bgp_update): AS path lookup check is done in
  1620. bgp_update() not in attr_parse().
  1621. 2001-01-18 Kunihiro Ishiguro <kunihiro@zebra.org>
  1622. * bgp_route.c (bgp_update): Call bgp_aggregate_decrement() just
  1623. before bgp_attr_unintern().
  1624. 2001-01-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  1625. * bgp_route.c (bgp_update): Now intern is performed very last part
  1626. of the BGP packet update procedure.
  1627. 2001-01-17 "Akihiro Mizutani" <mizutani@dml.com>
  1628. * bgp_route.c (bgp_update): When implicit withdraw occur, reuse
  1629. existing bgp_info structure.
  1630. 2001-01-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  1631. * bgp_route.c (bgp_aggregate_decrement): Fix bug of aggregate
  1632. address matching method.
  1633. (bgp_update):
  1634. * bgp_nexthop.c (bgp_nexthop_onlink): Separate EBGP nexthop onlink
  1635. check and IBGP nexthop route check.
  1636. 2001-01-16 "Akihiro Mizutani" <mizutani@dml.com>
  1637. * bgp_route.h (BGP_INFO_ATRR_CHANGED): Added for track attribute
  1638. change.
  1639. 2001-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
  1640. * bgp_route.h (struct bgp_info): Remove selected flag. Use
  1641. BGP_INFO_SELECTED for flags instead.
  1642. (struct bgp_info): Remove valid flag. Use BGP_INFO_VALID for
  1643. flags instead.
  1644. (struct bgp_info): Add igpmetric for IBGP route nexthop IGP
  1645. metric.
  1646. (struct bgp_info_tab): Struct bgp_info_tag is integrated into
  1647. struct bgp_info.
  1648. (BGP_INFO_ATRR_CHANGED): Added for track attribute change.
  1649. * bgp_community.c (community_val_get): gcc-2.95 on
  1650. sparc-sun-solaris cause crush. This function is for avoid the
  1651. crush.
  1652. 2001-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  1653. * bgp_packet.c (bgp_open_receive): Translated peer's packet_size
  1654. clear bug is fixed.
  1655. 2001-01-14 "Akihiro Mizutani" <mizutani@dml.com>
  1656. * bgp_packet.c (bgp_open_receive): Return notification with
  1657. supported version number.
  1658. 2001-01-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  1659. * bgpd.c (bgp_show_summary): Display AS path and community
  1660. entries. Suggested by: "Matt Ranney" <mjr@ranney.com>.
  1661. * bgp_packet.c (bgp_read_packet): Fix bug of unblocking BGP socket
  1662. read. When BGP packet read is partial, we must get size and type
  1663. from packet again.
  1664. 2001-01-12 "Akihiro Mizutani" <mizutani@dml.com>
  1665. * bgp_route.c (bgp_update): Do not unset BGP_INFO_HISTORY flag.
  1666. (bgp_update): When there is a history entry increment route count.
  1667. (bgp_damp_set): Check BGP_CONFIG_DAMPENING flag.
  1668. * bgp_damp.c (bgp_damp_withdraw): Set status to
  1669. BGP_DAMP_DISCONTINUE.
  1670. 2001-01-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  1671. * bgp_attr.c (bgp_mp_reach_parse): Fix warning code when second
  1672. IPv6 nexthop is not link-local addresss.
  1673. 2001-01-11 "Akihiro Mizutani" <mizutani@dml.com>
  1674. * bgp_damp.c (bgp_config_write_damp): Smart flap dampening
  1675. configuration display.
  1676. (bgp_damp_info_print): Display elapsed time from flap started.
  1677. * bgp_damp.h (struct bgp_damp_info): Add flap start time.
  1678. * bgpd.c (peer_create): Set last read time.
  1679. (bgp_show_peer): Display last read time.
  1680. (bgp_show_summary): Use BGP_CONFIG_DAMPENING flag to check
  1681. configuration.
  1682. * bgpd.h (BGP_CONFIG_DAMPENING): Add new configuration option.
  1683. (struct peer): Add last read time member.
  1684. (BGP_VERSION_MP_4): Remove obsolete definition.
  1685. 2001-01-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  1686. * bgp_nexthop.c: Remove OLD_RIB codes.
  1687. * bgp_route.c (bgp_process): Likewise.
  1688. * zebra-0.90 is released.
  1689. * bgp_route.h (BGP_INFO_HISTORY): Remove damped member from struct
  1690. bgp_info. Instead of that use BGP_INFO_DAMPED flag.
  1691. (struct bgp_info): Remove invalid member from struct bgp_info.
  1692. Instead of that use BGP_INFO_HISTORY flag.
  1693. 2001-01-10 "Akihiro Mizutani" <mizutani@dml.com>
  1694. * bgp_damp.c (bgp_damp_info_print): New function to display
  1695. dampening status.
  1696. (DEFAULT_HARF_LIFE): Define default value.
  1697. (DEFAULT_REUSE): Likewise.
  1698. (DEFAULT_SUPPRESS): Likewise.
  1699. (bgp_config_write_damp): When config value is same as default
  1700. value, simply display "bgp dampening" to configuration.
  1701. * bgp_damp.h (struct bgp_damp_info): Add flap member.
  1702. * bgp_route.h (struct bgp_info): Added for BGP flap dampening
  1703. history status.
  1704. 2001-01-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  1705. * bgp_nexthop.c (bgp_connected_add): Point-to-point connected
  1706. address is properly handled.
  1707. (bgp_connected_delete): Likewise.
  1708. * bgp_route.c (bgp_route_init): Turn off BGP Flap dampening code
  1709. until it works fine.
  1710. 2001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  1711. * bgpd.c (bgp_show_summary): Add BGP_VERSION_MP_4 case.
  1712. * bgp_route.c (bgp_update): When this is not damped route, clear
  1713. ri pointer.
  1714. 2001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  1715. * bgp_main.c: Add "-n" no_kernel option to not install route to
  1716. kernel. Suggested by: "Matt Ranney" <mjr@ranney.com>
  1717. 2001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  1718. * bgp_nexthop.c (bgp_connected_add): Revert point-to-point
  1719. connected route patch. Reported by ruud@ruud.org (Ruud de Rooij)
  1720. * bgp_damp.c (bgp_config_write_damp): Add configuration display
  1721. function.
  1722. * bgp_route.c (bgp_info_free): Set NULL to BGP dampening
  1723. information when BGP info structure is freed.
  1724. (bgp_info_cmp): Check damped flag.
  1725. (bgp_announce_check): Damped route is not announced.
  1726. 2001-01-09 "Akihiro Mizutani" <mizutani@dml.com>
  1727. * bgpd.c (neighbor_capability_route_refresh): Change "neighbor
  1728. route-refresh" command to "neighbor capability route-refresh".
  1729. (clear_bgp_soft_in): Change soft-reconfig method.
  1730. clear ip bgp <neighbor> soft in
  1731. --------------------------------------
  1732. Try stored cache first then route-refresh
  1733. clear ip bgp <neighbor> in
  1734. ---------------------------------
  1735. Try route-refresh first then try to use stored cache
  1736. 2001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  1737. * bgp_nexthop.c (bgp_connected_add): Check point-to-point
  1738. connected route. Reported by ruud@ruud.org (Ruud de Rooij)
  1739. 2001-01-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  1740. * bgp_nexthop.c (bgp_nexthop_lookup): When IBGP nexthop is
  1741. changed, refresh it.
  1742. 2001-01-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  1743. * bgp_route.h (struct bgp_info_tag): Add as_selected to
  1744. bgp_info_tag.
  1745. 2001-01-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  1746. * bgp_route.h (struct bgp_info_tag): Add damped and bgp_damp_info
  1747. member for BGP flap dampening.
  1748. * bgp_damp.c: New file is added.
  1749. * bgp_damp.h: Likewise.
  1750. 2001-01-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  1751. * bgpd.h (BGP_VTYSH_PATH): Change "/tmp/bgpd" to "/tmp/.bgpd".
  1752. 2000-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
  1753. * bgp_nexthop.c (zlookup_connect): Change to use UNIX domain
  1754. socket for zebra communication.
  1755. 2000-12-29 Akihiro Mizutani <mizutani@dml.com>
  1756. * bgp_route.c (bgp_process): Fix "bgp deterministic-med" process.
  1757. 2000-12-27 Akihiro Mizutani <mizutani@dml.com>
  1758. * bgp_route.c (bgp_process): Add "bgp deterministic-med" process.
  1759. 2000-12-25 Akihiro Mizutani <mizutani@dml.com>
  1760. * bgp_route.c (bgp_info_cmp): Use ntohl comparing router ID.
  1761. 2000-12-18 Akihiro Mizutani <mizutani@dml.com>
  1762. * bgp_route.c (bgp_info_cmp): When over three same prefix exit,
  1763. withdrawing best prefix perform router ID comparison.
  1764. 2000-12-15 Akihiro Mizutani <mizutani@dml.com>
  1765. * bgp_route.c (bgp_info_cmp): Do not compare router ID when the
  1766. routes comes from EBGP peer. When originator ID is same, take
  1767. shorter cluster-list route. If cluster-list is same take smaller
  1768. IP address neighbor's route.
  1769. * bgpd.c (bgp_bestpath_aspath_ignore): Add "bgp bestpath as-path
  1770. ignore" command. When this option is set, do not concider AS path
  1771. length when route selection.
  1772. (bgp_bestpath_compare_router_id): Add "bgp bestpath
  1773. compare-routerid". When this option is set, compare router ID
  1774. when the routes comes from EBGP peer.
  1775. 2000-12-15 Akihiro Mizutani <mizutani@dml.com>
  1776. * bgp_route.c (bgp_info_cmp): Compare originator ID when it is
  1777. available.
  1778. 2000-12-14 Akihiro Mizutani <mizutani@dml.com>
  1779. * bgp_packet.c (bgp_notify_receive): Disply received Notify data
  1780. information.
  1781. 2000-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  1782. * bgp_filter.c (as_filter_free): Use MTYPE_AS_FILTER_STR to make
  1783. it sure the memory is freed.
  1784. * bgp_route.c (route_vty_out_detail): Do not use AF_INET6 outside
  1785. HAVE_IPV6.
  1786. 2000-12-08 Akihiro Mizutani <mizutani@dml.com>
  1787. * bgp_packet.c (bgp_notify_send_with_data): Store BGP notification
  1788. data part.
  1789. * bgp_network.c (bgp_accept): When BGP connection comes from
  1790. unconfigured IP address, close socket immediately.
  1791. * bgpd.c: Fix some display format.
  1792. 2000-11-29 Kunihiro Ishiguro <kunihiro@zebra.org>
  1793. * bgp_packet.c (bgp_keepalive_send): Delete duplicate
  1794. bgp_packet_set_size () call.
  1795. 2000-11-28 Kunihiro Ishiguro <kunihiro@zebra.org>
  1796. * bgp_packet.c (bgp_read_packet): Remove debug codes.
  1797. 2000-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
  1798. * bgp_snmp.c (write_bgpPeerTable): Add SNMP set method routine.
  1799. * bgp_fsm.c (bgp_stop): Use fsm_change_status to change peer's
  1800. status.
  1801. (bgp_establish): Likewise.
  1802. 2000-11-26 Akihiro Mizutani <mizutani@dml.com>
  1803. * bgp_open.c: Fix error messages.
  1804. 2000-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  1805. * bgp_fsm.c (bgp_establish): Call BGP trap when the peer is
  1806. established.
  1807. (bgp_stop): Call BGP trap when the peer is dropped.
  1808. 2000-11-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  1809. * bgp_snmp.c (bgp4PathAttrTable): Return BGP path attribute table.
  1810. * bgpd.h (struct peer): Add update_time for track last update
  1811. received time.
  1812. * bgp_packet.c (bgp_notify_receive): Preserv notify code and sub
  1813. code in any case.
  1814. * bgp_snmp.c (bgpPeerTable): Return remote router ID instead of
  1815. peering IP address.
  1816. (bgpPeerTable): Return actual BGP version number.
  1817. 2000-11-22 Akihiro Mizutani <mizutani@dml.com>
  1818. * bgp_debug.c (bgp_notify_print): Notify data length display bug
  1819. is fixed.
  1820. 2000-11-16 Kunihiro Ishiguro <kunihiro@zebra.org>
  1821. * bgp_nexthop.c (zlookup_connect): When UNIX domain connection to
  1822. zebra is enabled, use the method.
  1823. 2000-11-16 Akihiro Mizutani <mizutani@dml.com>
  1824. * bgpd.c: Revise debug message output.
  1825. 2000-11-15 Akihiro Mizutani <mizutani@dml.com>
  1826. * bgp_clist.c (ip_community_list): Fix bug of string comparison.
  1827. 2000-11-14 Akihiro Mizutani <mizutani@dml.com>
  1828. * bgp_community.c (community_match): Fix bug of memcmp return
  1829. value check.
  1830. 2000-11-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  1831. * bgp_clist.c (community_list_match_exact): Add check for
  1832. entry->style is COMMUNITY_LIST.
  1833. (community_match_regexp): Apply new com_nthval macro.
  1834. 2000-11-07 Rick Payne <rickp@rossfell.co.uk>
  1835. * bgp_routemap.c (route_set_community_delete): "set
  1836. community-delete COMMUNITY-LIST" is added.
  1837. * bgp_community.c (community_del_val): Delete one community.
  1838. (community_delete): Delete all community included in list.
  1839. (community_match): Fix bug of matching community value.
  1840. * bgp_clist.c (community_entry_free): Free community regular
  1841. expression.
  1842. (community_entry_make): Default style is COMMUNITY_LIST.
  1843. (community_entry_lookup): Make it sure style is COMMUNITY_LIST.
  1844. (community_entry_regexp_lookup): New function for community
  1845. regular expression lookup.
  1846. (community_match_regexp): New function.
  1847. (community_delete_regexp): New function.
  1848. (community_list_delete_entries): New function.
  1849. (community_list_match): Add COMMUNITY_REGEXP treatment.
  1850. (community_list_match_exact): Likewise.
  1851. (config_write_community): Write community list according to
  1852. entry->style.
  1853. 2000-11-07 Rick Payne <rickp@rossfell.co.uk>
  1854. * bgp_attr.c (bgp_attr_aspath): AS path first AS check.
  1855. * bgp_clist.c (struct community_entry): Add style, regexp, reg to
  1856. community_entry.
  1857. 2000-11-06 Rick Payne <rickp@rossfell.co.uk>
  1858. * bgp_aspath.c (aspath_firstas_check): AS path first AS check.
  1859. * bgpd.c (bgp_enforce_first_as): New command "bgp
  1860. enforce-first-as".
  1861. * bgpd.h (BGP_CONFIG_ENFORCE_FIRST_AS): Add new flag.
  1862. 2000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  1863. * bgp_community.c (community_compare): Copy byte stream data to
  1864. actual value instead of using type casting hack.
  1865. (community_add_val): Likewise.
  1866. (community_uniq_sort): Likewise.
  1867. (community_print): Likewise.
  1868. (community_print_vty): Likewise.
  1869. (community_include): Use memcmp to compare community value.
  1870. * bgp_community.h (com_lastval): com_lastval and com_nthval macro
  1871. return pointer.
  1872. 2000-11-06 Akihiro Mizutani <mizutani@dml.com>
  1873. * bgpd.h (struct peer): Add established and dropped member for
  1874. count peering up/down statistics.
  1875. * bgpd.c (bgp_show_peer): Display peering up/down statistics.
  1876. * bgp_fsm.c (bgp_establish): Increment established count.
  1877. (bgp_stop): Increment dropped count.
  1878. * bgp_packet.c (bgp_notify_receive): Increament notify count.
  1879. 2000-11-1 Akihiro Mizutani <mizutani@dml.com>
  1880. * bgp_fsm.c: Fix bug of holdtimer is not reset when bgp cleared.
  1881. 2000-10-31 Kunihiro Ishiguro <kunihiro@zebra.org>
  1882. * bgpd.h: Static bit flag is set by (1 << DIGIT).
  1883. 2000-10-24 Akihiro Mizutani <mizutani@dml.com>
  1884. * bgp_ecommunity.c (ecommunity_dup): Extended community display
  1885. format fix.
  1886. 2000-10-24 Arkadiusz Miskiewicz <misiek@pld.org.pl>
  1887. * bgp_network.c (bgp_serv_sock_addrinfo): Use gai_strerror.
  1888. (bgp_serv_sock_addrinfo): Check address family.
  1889. 2000-10-23 Jochen Friedrich <jochen@scram.de>
  1890. * bgp_snmp.c: bgp_oid and bgpd_oid are used in smux_open after it
  1891. is registered. So those variables must be static.
  1892. 2000-10-23 Akihiro Mizutani <mizutani@dml.com>
  1893. * bgp_routemap.c (route_match_ip_next_hop): Change "match ip
  1894. next-hop" argument from IP address to access-list name.
  1895. Remove zebra-0.88 compatibility commands.
  1896. "match ip prefix-list WORD"
  1897. "match ipv6 prefix-list WORD"
  1898. 2000-10-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  1899. * bgp_routemap.c (route_match_ipv6_next_hop_compile): Fix bug of
  1900. passing the pointer to the pointer of struct in6_addr instead of
  1901. the pointer of struct in6_addr in "match ipv6 next-hop" command.
  1902. * bgp_route.c (bgp_announce_check): Enclose IPv6 part with
  1903. HAVE_IPV6.
  1904. 2000-10-20 Jasper Wallace <jasper@ivision.co.uk>
  1905. * bgp_snmp.c (bgpPeerTable): ntohs missing bug is fixed. Change
  1906. to use linklist.c. Define COUNTER32 as ASN_COUNTER.
  1907. 2000-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
  1908. * bgp_route.c (bgp_announce_check): attr->nexthop empty check
  1909. should be done by attr->nexthop.s_addr instead of strcmp.
  1910. 2000-10-18 Akihiro Mizutani <mizutani@dml.com>
  1911. * bgp_zebra.c (zebra_read_ipv4): Pass nexthop value to
  1912. bgp_redistribute_add().
  1913. * bgp_nexthop.c (bgp_multiaccess_check_v4): New function for
  1914. checking IPv4 multiaccess nexthop.
  1915. * bgp_route.c (bgp_announce_check): In case of the nexthop is
  1916. reachable on multiaccess media, do not change nexthop.
  1917. (bgp_redistribute_add): Set nexthop when the value is passed.
  1918. 2000-10-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  1919. * bgp_fsm.c (bgp_timer_set): If peer is passive mode, do not set
  1920. connect timer.
  1921. (bgp_start): If the peer is passive mode, force to move to Active
  1922. mode.
  1923. 2000-10-17 Horms <horms@vergenet.net>
  1924. * bgp_debug.c (debug_bgp_fsm): Fix typo.
  1925. 2000-10-17 Akihiro Mizutani <mizutani@dml.com>
  1926. * bgp_route.c: "show ipv6 bgp" route display improvement.
  1927. 2000-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  1928. * bgp_route.c (neighbor_routes): Allocate sockunion for callback
  1929. function.
  1930. (bgp_show_neighbor_route): Remove static declaration for union
  1931. sockunion.
  1932. * bgpd.c (peer_update_source_set): Clean previously allocated
  1933. memory before allocate new one.
  1934. 2000-10-03 Akihiro Mizutani <mizutani@dml.com>
  1935. * bgp_route.c (neighbor_routes): Add show neighbor's routes
  1936. command.
  1937. "show ip bgp neighbors (A.B.C.D|X:X::X:X) routes"
  1938. "show ip bgp ipv4 (unicast|multicast) neighbors (A.B.C.D|X:X::X:X) routes"
  1939. "show ipv6 bgp neighbors (A.B.C.D|X:X::X:X) routes"
  1940. "show ipv6 mbgp neighbors (A.B.C.D|X:X::X:X) routes"
  1941. 2000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  1942. * zebra-0.89 is released.
  1943. 2000-10-02 Akihiro Mizutani <mizutani@dml.com>
  1944. * bgpd.c: "bgp deterministic-med" command is added.
  1945. 2000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  1946. * bgp_nexthop.c (bgp_connected_add): Apply mask for connected
  1947. route addition and deletion.
  1948. 2000-09-29 Kunihiro Ishiguro <kunihiro@zebra.org>
  1949. * bgp_aspath.c (aspath_cmp_left): Skip confederation AS segment
  1950. when comparing leftmost AS number.
  1951. 2000-09-29 Akihiro Mizutani <mizutani@dml.com>
  1952. * bgpd.c (peer_route_reflector): Route reflector can be set for
  1953. IBGP peer.
  1954. (bgp_distribute_set): Fix bug of string check for (in|out).
  1955. (bgp_show_summary): Display total neighbor count.
  1956. 2000-09-28 Akihiro Mizutani <mizutani@dml.com>
  1957. * bgp_attr.c (bgp_packet_attribute): Only add cluster_list and
  1958. originator for clinet to client routes.
  1959. (bgp_packet_attribute): Add new cluster_list to the beginning of
  1960. existing cluster_list.
  1961. (bgp_packet_attribute): Fix bug of originator is rewritten even
  1962. when originator is already set.
  1963. 2000-09-27 Kunihiro Ishiguro <kunihiro@zebra.org>
  1964. * bgpd.c (bgp_client_to_client_reflection): Add new command.
  1965. "no bgp client-to-client reflection"
  1966. "bgp client-to-client reflection"
  1967. * bgpd.h (BGP_CONFIG_NO_CLIENT_TO_CLIENT): Add new definition.
  1968. 2000-09-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  1969. * bgp_packet.c (bgp_read): Make BGP packet read to non-blocking
  1970. read.
  1971. (bgp_read_packet): Likewise.
  1972. (bgp_read_packet): When errono is EAGAIN, try to read it again.
  1973. * bgp_fsm.c (bgp_stop): Clear packet size and read buffer.
  1974. 2000-09-26 Akihiro Mizutani <mizutani@dml.com>
  1975. * bgp_routemap.c: Configuration of prefix-list match is shown as
  1976. "match ip address prefix-list <WORD>". Old configuration "match
  1977. ip prefix-list <WORD>" is left for compatibilitty.
  1978. 2000-09-25 Akihiro Mizutani <mizutani@dml.com>
  1979. * bgpd.h (BGP_CONFIG_MED_MISSING_AS_WORST): Changed from
  1980. BGP_CONFIG_MISSING_AS_WORST.
  1981. * bgpd.c (bgp_bestpath_med): Change missing-as-worst syntax.
  1982. Old "bgp bestpath missing-as-worst"
  1983. New "bgp bestpath med missing-as-worst"
  1984. 2000-09-24 Akihiro Mizutani <mizutani@dml.com>
  1985. * bgp_route.c: Compare MED properly in case of CONFED-IBGP.
  1986. 2000-09-21 steve@Watt.COM (Steve Watt)
  1987. * bgp_debug.h: Do not declare debug variables conf_bgp_debug_* and
  1988. term_bgp_debug_*.
  1989. * bgp_debug.c: Declare variables here.
  1990. 2000-09-21 Akihiro Mizutani <mizutani@dml.com>
  1991. * bgpd.c: MBGP soft-reconfiguration command is added.
  1992. clear ip bgp x.x.x.x ipv4 (unicast|multicast) in
  1993. clear ip bgp x.x.x.x ipv4 (unicast|multicast) out
  1994. clear ip bgp x.x.x.x ipv4 (unicast|multicast) soft
  1995. clear ip bgp <1-65535> ipv4 (unicast|multicast) in
  1996. clear ip bgp <1-65535> ipv4 (unicast|multicast) out
  1997. clear ip bgp <1-65535> ipv4 (unicast|multicast) soft
  1998. clear ip bgp * ipv4 (unicast|multicast) in
  1999. clear ip bgp * ipv4 (unicast|multicast) out
  2000. clear ip bgp * ipv4 (unicast|multicast) soft
  2001. Change "clear ip bgp vpnv4 x.x.x.x soft" command to
  2002. "clear ip bgp x.x.x.x vpnv4 unicast soft".
  2003. "bgp bestpath med confed" command is added.
  2004. * bgpd.h (BGP_CONFIG_MED_CONFED): Add New definition.
  2005. 2000-09-18 Rick Payne <rickp@rossfell.co.uk>
  2006. * bgpd.c (bgp_show_peer): Fix misplaced #endif.
  2007. 2000-09-12 Akihiro Mizutani <mizutani@dml.com>
  2008. * bgpd.c (bgp_default_local_preference): Add "bgp default
  2009. local-preference" command.
  2010. * bgp_nexthop.c (no_bgp_scan_time): Add "no bgp scan-time"
  2011. command.
  2012. 2000-09-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2013. * bgp_zebra.c (bgp_zebra_announce): BGP confederation peer's routes
  2014. are passed to zebra like IBGP route.
  2015. 2000-09-10 Akihiro Mizutani <mizutani@dml.com>
  2016. * bgpd.c (bgp_config_write_peer): Make it consistent passive
  2017. configuration.
  2018. * bgp_route.c: Community match command is added.
  2019. "show ip bgp community <val>"
  2020. "show ip bgp community <val> exact-match"
  2021. 2000-09-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2022. * bgp_nexthop.c (bgp_nexthop_lookup): ebgp-multihop routes are
  2023. treated as IBGP routes.
  2024. 2000-09-08 Akihiro Mizutani <mizutani@dml.com>
  2025. * bgp_route.c (bgp_show_route): When local-AS community route is
  2026. selected, display "not advertised outside local AS" to "show ip
  2027. route A.B.C.D" output.
  2028. (show_ip_bgp_ipv4_filter_list): Add below four commands.
  2029. "show ip bgp ipv4 (unicast|multicast) filter-list WORD"
  2030. "show ip bgp ipv4 (unicast|multicast) community"
  2031. "show ip bgp ipv4 (unicast|multicast) community-list WORD"
  2032. "show ip bgp ipv4 (unicast|multicast) community-list WORD exact-match"
  2033. * bgp_clist.c (community_list_match_exact): Community exact match
  2034. function.
  2035. 2000-09-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2036. * bgp_route.c (bgp_update): Add peer's ttl check.
  2037. * bgpd.h (struct peer): Structure member refresh is renamed to
  2038. refresh_adv.
  2039. * bgpd.c (clear_bgp_soft_in): Check PEER_FLAG_ROUTE_REFRESH flag
  2040. when soft reconfiguration is performed.
  2041. * bgp_zebra.c (bgp_zebra_announce): When the peer is EBGP and
  2042. ebgp-multiphop is set, set ZEBRA_FLAG_INTERNAL for nexthop lookup.
  2043. * bgp_route.h (struct bgp_info_tag): Add valid flag.
  2044. 2000-08-25 Akihiro Mizutani <mizutani@dml.com>
  2045. * bgpd.c: Add AS base BGP soft reconfiguration.
  2046. * bgp_route.c: When no-advertise or no-export route is selected,
  2047. "show ip bgp" display "not advertised to EBGP peer" or "not
  2048. advertised to any peer" message.
  2049. 2000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2050. * zebra-0.88 is released.
  2051. * bgp_dump.c (dump_bgp_routes): Change "dump bgp routes" to "dump
  2052. bgp route-mrt" to support MRT specific dump format.
  2053. * bgpd.c (bgp_init): "clear ip bgp vpnv4 soft {in,out}" command is
  2054. added.
  2055. * bgp_route.c (bgp_update): Currently nexthop check is only works
  2056. for IPv4.
  2057. 2000-08-17 Akihiro Mizutani <mizutani@dml.com>
  2058. * bgpd. (clear_ip_bgp_all_soft): Add "clear ip bgp * soft" for
  2059. both inbound and outbound soft reconfiguration.
  2060. 2000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2061. * bgpd.c (clear_ip_bgp_peer_soft_out): Add soft-reconfiguration
  2062. outbound.
  2063. (peer_new): Set route-refresh flag.
  2064. 2000-08-16 Akihiro Mizutani <mizutani@dml.com>
  2065. * bgpd.c: "no bgp router-id A.B.C.D" alias is added. "no bgp
  2066. cluster-id A.B.C.D" alias is added. " bgp cluster-id
  2067. <1-4294967295>" alias is added. "clear ip bgp * soft in" command
  2068. is added. "clear ip bgp A.B.C.D in" alias is added. "clear ip
  2069. bgp * in" alias is added.
  2070. 2000-08-16 Kunihiro Ishiguro <kunihiro@zebra.org>
  2071. * bgp_route.c (bgp_update): Add soft_reconfig flag. When the flag
  2072. is set do not install the route into Adj-RIBs-In.
  2073. (bgp_update): Perform implicit withdraw before filtering of the
  2074. route.
  2075. * bgp_packet.c (bgp_read): draft-ietf-idr-bgp-route-refresh-01.txt
  2076. capability code and BGP message can be accepted.
  2077. * bgp_open.c (bgp_capability_parse): Likewise.
  2078. * bgp_route.c (bgp_refresh_table): New function for route refresh.
  2079. (bgp_refresh_rib): Likewise.
  2080. * bgpd.c (bgp_show_peer): Display route refresh status.
  2081. * bgp_route.c (bgp_aggregate_add): Add check for the route
  2082. validness.
  2083. (bgp_aggregate_delete): Likewise.
  2084. 2000-08-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2085. * bgp_nexthop.c (bgp_scan): Care for aggregate route when the
  2086. route become inaccessible.
  2087. 2000-08-15 Akihiro Mizutani <mizutani@dml.com>
  2088. * bgp_route.c (show_ip_bgp_prefix): "show ip bgp A.B.C.D/M"
  2089. command is added.
  2090. 2000-08-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2091. * bgp_zebra.c (bgp_interface_up): Register connected route.
  2092. (bgp_interface_down): Unregister connected route.
  2093. 2000-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2094. * bgp_route.h (struct bgp_info): Add distance to the structure.
  2095. * bgp_route.c (bgp_aggregate_increment): Aggregate route only
  2096. match to smaller prefixlen route not match same prefixlen route.
  2097. (bgp_aggregate_decrement): Likewise.
  2098. (bgp_aggregate_add): Likewise.
  2099. (bgp_aggregate_delete): Likewise.
  2100. (bgp_network_backdoor): Add backdoor network configuration.
  2101. * bgpd.h (struct bgp ): Add distance_{ebgp,ibgp,local} for store
  2102. configuration distance value.
  2103. * bgp_route.c (bgp_update): Filter EBGP route which has non
  2104. connected nexthop.
  2105. * bgp_attr.c (bgp_attr_aggregate_intern): New function for
  2106. aggregate route. Set origin to IGP. Set atomic aggregate flag.
  2107. Set aggregator AS and address.
  2108. (bgp_attr_aggregate_intern): Check BGP_CONFIG_CONFEDERATION when
  2109. filling aggregator_as.
  2110. * bgp_route.c (bgp_process): Delete suppress check for install
  2111. suppressed route into local routing table.
  2112. (bgp_aggregate_increment): Use bgp_attr_aggregate_intern() instead
  2113. of bgp_attr_default_intern ().
  2114. (bgp_aggregate_add): Likewise.
  2115. * bgpd.c (bgp_get): Call bgp_if_update_all() after BGP instance is
  2116. created. This is for avoid 0.0.0.0 router-id.
  2117. 2000-08-13 Akihiro Mizutani <mizutani@dml.com>
  2118. * bgp_route.c (route_vty_out_detail): Display "valid" when the
  2119. route is valied. Display "aggregated" when the route is
  2120. aggregated. "Advertisements suppressed by an aggregate" is
  2121. displayed when the route is suppressed.
  2122. (bgp_info_cmp): Prefer EBGP than Confed-EBGP.
  2123. 2000-08-10 Akihiro Mizutani <mizutani@dml.com>
  2124. * bgp_route.c (route_vty_out_detail): Display format change.
  2125. 2000-08-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2126. * bgp_route.c (bgp_update): Only AFI_IP nexthop check is enabled.
  2127. * bgpd.c (bgp_delete): Delete static route before delete peer
  2128. configuration.
  2129. 2000-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2130. * bgpd.c: Include bgpd/bgp_nexthop.h.
  2131. 2000-07-31 Akihiro Mizutani <mizutani@dml.com>
  2132. * bgpd.c (bgp_show_summary): "show ip bgp summary" shows own BGP
  2133. identifier. And status is changed like below.
  2134. State/Pref -> State/PfxRcd
  2135. Shutdown -> Idle (Admin)
  2136. PrefixOvflw -> Idle (PfxCt)
  2137. * bgp_route.c (route_vty_out): Show internal route as "i".
  2138. 2000-07-13 Jim Bowen <jimb@zereau.net>
  2139. * bgp_snmp.c: Add BGP peer MIB implementation.
  2140. 2000-07-12 Akihiro Mizutani <mizutani@dml.com>
  2141. * bgpd.c (bgp_show_peer): Fix typo.
  2142. 2000-07-11 Akihiro Mizutani <mizutani@dml.com>
  2143. * bgp_routemap.c: Add commands for deleting set without argument.
  2144. 2000-07-03 Akihiro Mizutani <mizutani@dml.com>
  2145. * bgp_zebra.c: Fix redistribute help strings.
  2146. 2000-07-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2147. * bgp_route.c (bgp_show): When bgpd works as vtysh server send all
  2148. output to vty at once.
  2149. 2000-06-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2150. * bgp_mplsvpn.c (no_vpnv4_network): "no network A.B.C.D/M rd WORD
  2151. tag WORD" command is added.
  2152. * bgp_ecommunity.c (ecommunity_vty_out): New function added.
  2153. 2000-06-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2154. * bgp_route.c (bgp_show): Fix total number of prefix count bug.
  2155. * bgpd.c (bgp_show_peer): Display VPNv4 unicast configuration and
  2156. negotiation result in "show ip bgp neighbors".
  2157. 2000-06-12 Akihiro Mizutani <mizutani@dml.com>
  2158. * bgpd.c: Fix help strings.
  2159. * bgpd.h: Likewise.
  2160. 2000-06-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  2161. * bgp_route.c (bgp_aggregate_unset): Fix bug of checking rn->info
  2162. instead of rn. Reported by Akihiro Mizutani <mizutani@dml.com>.
  2163. * bgp_mplsvpn.c (vpnv4_network): For testing purpose, "network
  2164. A.B.C.D rd RD" is added to address-family vpnv4 unicast node.
  2165. * bgp_route.c (bgp_static_set): Set safi to p.safi.
  2166. 2000-06-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2167. * bgp_route.c (bgp_show_prefix_list): Change to use bgp_show().
  2168. (bgp_show_regexp): Change to use bgp_show().
  2169. (show_adj_route): Change to display header.
  2170. * bgpd.c (clear_bgp): Set peer->v_start to default value when peer
  2171. is cleared manually.
  2172. * bgp_route.c (bgp_show_route): New function which display
  2173. specific BGP route. Divided from bgp_show().
  2174. (bgp_static_delete): Delete all static route.
  2175. 2000-06-09 NOGUCHI Kay <kay@v6.access.co.jp>
  2176. * bgp_route.c (show_ipv6_bgp): "show ipv6 bgp" is broken with
  2177. invalid privious fix. Now show_ipv6_bgp and show_ipv6_bgp_route
  2178. take care of "show ipv6 bgp [X:X::X:X]". Same change for "show ip
  2179. mbgp" and "show ipv6 mbgp".
  2180. 2000-06-07 Akihiro Mizutani <mizutani@dml.com>
  2181. * bgp_route.c: Fix help strings and command arguments.
  2182. 2000-06-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2183. * bgp_ecommunity.c: Include prefix.h
  2184. 2000-06-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2185. * bgp_route.h (struct bgp_info_tag): New structure to hold tag
  2186. value.
  2187. * bgp_route.c (bgp_adj_set): table NULL check is added.
  2188. (bgp_adj_unset): Likewise.
  2189. (bgp_adj_lookup): Likewise.
  2190. (bgp_adj_clear): Likewise.
  2191. (route_vty_out): Add SAFI check for nexthop display.
  2192. (bgp_withdraw): Add SAFI check for withdraw route.
  2193. * Remove all #ifdef MPLS_VPN then include it as default.
  2194. * bgpd.c: Temporary disable peer-group command until the
  2195. implementation is completed.
  2196. * bgp_routemap.c (bgp_route_map_init): Install
  2197. route_metric_match_cmd.
  2198. (route_match_metric_compile): MED value compile using strtoul.
  2199. 2000-06-05 Akihiro Mizutani <mizutani@dml.com>
  2200. * bgp_filter.c: Fix help strings. Change REGEXP to LINE. Change
  2201. NAME to WORD.
  2202. * Change command argument to more comprehensive.
  2203. METRIC -> <0-4294967295>
  2204. WEIGHT -> <0-4294967295>
  2205. LOCAL_PREF -> <0-4294967295>
  2206. IP_ADDR -> A.B.C.D
  2207. AS -> <1-65535>
  2208. AS-PATH-NAME -> WORD
  2209. ACCESS_LIST -> WORD
  2210. PREFIX_LIST -> WORD
  2211. COMMUNITY -> AA:NN
  2212. EXT_COMMUNITY -> ASN:nn_or_IP-address:nn
  2213. IPv6_ADDR -> X:X::X:X
  2214. * bgp_clist.c: Fix help strings.
  2215. 2000-06-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  2216. * bgpd.c (peer_active): Add new function for check the peer is
  2217. active or not.
  2218. (neighbor_activate): New command "neighbor PEER activate" and "no
  2219. neighbor PEER activate" are added.
  2220. * bgp_packet.c: Include bgpd/bgp_mplsvpn.h.
  2221. 2000-06-02 Akihiro Mizutani <mizutani@dml.com>
  2222. * bgp_clist.c: Fix commuity-list help strings.
  2223. * bgp_routemap.c: Fix "set community" help strings. Add #define
  2224. SET_STR. Use (unicast|multicast) argument for "set nlri" command.
  2225. 2000-06-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2226. * bgp_routemap.c (route_set_community_none_cmd): "set community
  2227. none" command is added to route-map.
  2228. 2000-06-01 Akihiro Mizutani <mizutani@dml.com>
  2229. * bgp_debug.c: Change "show debug" to "show debugging". Now "show
  2230. debugging" is not used in VIEW_NODE.
  2231. 2000-05-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2232. * bgp_fsm.c (bgp_timer_set): Add check for shutdown flag. This
  2233. fix unconditional BGP connection.
  2234. * bgpd.c (peer_shutdown): Replace peer_shutdown() with
  2235. peer_change_flag_with_reset().
  2236. 2000-05-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  2237. * bgpd.c (no_bgp_default_ipv4_unicast): Add "no bgp default
  2238. ipv4-unicast" command.
  2239. * bgpd.h (BGP_CONFIG_NO_DEFAULT_IPV4): Add new definition.
  2240. * bgp_filter.c (as_list_delete): Free all AS filter.
  2241. * bgp_clist.c (community_list_delete): Free all community entry.
  2242. * bgp_filter.c (no_ip_as_path_all): New DEFUN for "no ip as-path
  2243. access-list NAME".
  2244. * bgp_clist.c (no_ip_community_list_all): New DEFUN for "no ip
  2245. community-list NAME".
  2246. 2000-05-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  2247. * bgp_route.c (ipv6_mbgp_neighbor_routes): Change "show ip bgp PEER
  2248. routes" to "show ip bgp PEER received-routes"
  2249. 2000-05-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2250. * bgp_ecommunity.c (ecommunity_parse): New file for Extended
  2251. Communities attribute.
  2252. * bgp_ecommunity.h: Likewise.
  2253. 2000-05-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  2254. * bgp_mplsvpn.h: New file for MPLS-VPN.
  2255. * bgp_mplsvpn.c: Likewise.
  2256. * bgpd.c (bgp_delete): Fix bug of "no router bgp" crush.
  2257. 2000-05-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2258. * bgpd.c (bgp_bestpath_missing_as_worst): Add "bgp bestpath
  2259. missing-as-worst".
  2260. 2000-05-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2261. * bgp_routemap.c (match_community): Clarify help of "match
  2262. community".
  2263. 2000-05-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2264. * bgp_aspath.c (aspath_cmp_left): Remove debug code.
  2265. 2000-04-27 Kunihiro Ishiguro <kunihiro@zebra.org>
  2266. * bgp_route.c (bgp_info_cmp): Compare MED only both routes comes
  2267. from same neighboring AS.
  2268. * bgp_aspath.c (aspath_cmp_left): Compare leftmost AS value.
  2269. * bgp_route.c (bgp_info_cmp): Fix misused htonl() to ntohl().
  2270. 2000-04-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  2271. * bgp_route.c (bgp_output_filter): When distribute-list's
  2272. corresponding access-list does not exist, filter all routes.
  2273. (bgp_input_filter): Likewise.
  2274. 2000-04-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  2275. * bgp_attr.c (bgp_packet_attribute): Propagate MED to IBGP peer.
  2276. * bgp_route.c (bgp_info_cmp): Add evaluation of local preference.
  2277. 2000-04-18 Kunihiro Ishiguro <kunihiro@zebra.org>
  2278. * bgpd.c (bgp_distribute_update): Add struct access_list *
  2279. argument.
  2280. 2000-04-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2281. * bgp_clist.c (community_list_dup_check): Add duplicate insertion
  2282. check.
  2283. * bgp_filter.c (as_list_dup_check): Add duplicate insertion check.
  2284. * bgp_route.c (bgp_show): Fix undeclared write variable.
  2285. 2000-04-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2286. * bgp_routemap.c: Add "match ip address prefix-list".
  2287. 2000-03-29 Rick Payne <rickp@rossfell.co.uk>
  2288. * bgp_aspath.c (aspath_strip_confed): Fix realloc problem.
  2289. 2000-03-16 Kunihiro Ishiguro <kunihiro@zebra.org>
  2290. * bgp_fsm.c (bgp_reconnect): Connect retry timer is expired when
  2291. the peer status is Connect.
  2292. 2000-03-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  2293. * Fix bug of rewritten originator-id.
  2294. 2000-01-27 Rick Payne <rickp@rossfell.co.uk>
  2295. * bgp_aspath.c (aspath_delimiter_char): New function. Instead of
  2296. directly referencing array, search proper AS path delimiter.
  2297. (aspath_strip_confed): Strip the confederation stuff from the
  2298. front of an AS path.
  2299. (aspath_add_left_confed): New function for adding specified AS to
  2300. the leftmost AS_CONFED_SEQUENCE.
  2301. * bgp_aspath.h: Change AS_CONFED_SEQUENCE and AS_CONFED_SET value
  2302. to Cisco compatible.
  2303. * bgpd.c (bgp_confederation_id_set): Confederation configuration.
  2304. (bgp_confederation_id_unset): Likewise.
  2305. (bgp_confederation_peers_check): Likewise.
  2306. (bgp_confederation_peers_add): Likewise.
  2307. (bgp_confederation_peers_remove): Likewise.
  2308. (bgp_confederation_peers_set): Likewise.
  2309. (bgp_confederation_peers_unset): Likewise.
  2310. (bgp_confederation_peers_print): Likewise.
  2311. 2000-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
  2312. * bgpd.c: Introduce peer_change_flag_with_reset() fucntion.
  2313. 2000-01-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2314. * bgp_open.c (bgp_open_option_parse): When there is no common
  2315. capability send Unsupported Capability error to the peer.
  2316. 2000-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2317. * bgp_open.c (bgp_capability_mp): Fix bug of mis-negotiation about
  2318. IPv6 unicast.
  2319. * bgpd.c (bgp_init): Add "soft-reconfiguration inbound" command.
  2320. 2000-01-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2321. * bgpd.c (neighbor_strict_capability): Add
  2322. "strict-capability-match" command.
  2323. * bgp_zebra.c (bgp_if_update): Ignore NET127 determining
  2324. router-id.
  2325. * bgpd.c (peer_override_capability): Add "override-capability"
  2326. command.
  2327. 1999-12-16 Kunihiro Ishiguro <kunihiro@zebra.org>
  2328. * bgp_packet.c (bgp_write): Change status to Idle and set timer
  2329. after write failed.
  2330. 1999-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2331. * bgp_zebra.c (bgp_zebra_announce): Add info->selected check.
  2332. 1999-12-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2333. * bgp_route.c (nlri_unfeasible): nlri_unfeasible() is merged with
  2334. nlri_parse().
  2335. 1999-12-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2336. * bgp_fsm.h (BGP_EVENT_DELETE): Macro added.
  2337. * bgp_fsm.c (bgp_stop): Clear all event threads of the peer when
  2338. the peer is cleared.
  2339. * bgp_zebra.c (bgp_nexthop_set): Clear interface index of
  2340. link-local address. This is KAME specific problem.
  2341. 1999-12-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2342. * bgp_attr.c (bgp_mp_reach_parse): Comment out previous code for a
  2343. while. We don't completely detect the link is shared or not at
  2344. this moment.
  2345. * bgp_packet.c (bgp_notify_send): Make shortcut call of
  2346. bgp_write() and bgp_stop().
  2347. * bgp_attr.c (bgp_mp_reach_parse): Fix serious bug when getting
  2348. global and link-local address.
  2349. 1999-12-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2350. * bgpd.c (no_neighbor_port): New command added.
  2351. (peer_new): Set send_community.
  2352. 1999-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2353. * bgpd.c (show_ip_bgp_summary): Changed to use bgp_show_summary().
  2354. (show_ip_mbgp_summary): Likewise.
  2355. (show_ipv6_bgp_summary): Likewise.
  2356. (show_ipv6_mbgp_summary): Add new command.
  2357. (peer_free): Free peer->host.
  2358. (peer_lookup_by_su): Delete function.
  2359. (ipv6_bgp_neighbor): Changed to use peer_remote_as().
  2360. (sockunion_vty_out): Function deleted.
  2361. (vty_clear_bgp): Use afi instead of family.
  2362. Delete old list bgp_list. Use struct newlist *bgplist.
  2363. (peer_lookup_by_host): Function deleted.
  2364. 1999-12-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  2365. * bgpd.h (struct peer_group): New structure added.
  2366. (struct peer_conf): New structure added.
  2367. (struct peer): Change all prefix_count to unsigned long.
  2368. * bgpd.c: Reconstruct all of VTY commands reflect internal
  2369. structure change.
  2370. Use bgplist instead of bgp_list.
  2371. Use peerlist intstead of peer_list.
  2372. * bgp_attr.c (bgp_mp_reach_parse): If nlri_parse return -1, stop
  2373. parsing then return immediately.
  2374. * bgp_route.c (nlri_parse): When NLRI parse error occured, return
  2375. -1.
  2376. (nlri_process): Use pcount_v4_{unicast,multicast}.
  2377. (nlri_delete): Likewise.
  2378. 1999-11-25 Robert Olsson <Robert.Olsson@data.slu.se>
  2379. * bgp_routemap.c (route_match_nlri): `match nlri
  2380. unicast|multicast' and `set nlri unicast|multicast' command are
  2381. added.
  2382. 1999-11-22 Robert Olsson <Robert.Olsson@data.slu.se>
  2383. * bgpd.c: Add translate-update support.
  2384. * bgpd.h (TRANSLATE_UPDATE_OFF): Add translate-update definition.
  2385. 1999-11-19 Robert.Olsson@data.slu.se
  2386. * bgp_route.c (bgp_peer_delete): Add MBGP peer clear codes.
  2387. 1999-11-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2388. * bgp_open.c (bgp_capability_mp): Temporary comment out
  2389. SAFI_UNICAST_MULTICAST handling until we know the meanings.
  2390. 1999-11-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2391. * bgp_btoa.c: New file added.
  2392. 1999-11-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2393. * bgpd.h (struct peer): Add dont_capability flag.
  2394. (struct peer): Add override_capability flag.
  2395. * bgpd.c (neighbor_dont_capability_negotiation): `neighbor PEER
  2396. dont-capability-negotiation' added.
  2397. 1999-11-12 Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
  2398. * bgp_attr.c (bgp_mp_reach_parse): Ignore link-local addresses
  2399. attribute from non-shared-network peers.
  2400. 1999-11-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2401. * bgp_snmp.c: New file added.
  2402. * BGP4-MIB.txt: Updated to the latest Internet-Draft
  2403. draft-ietf-idr-bgp4-mib-04.txt.
  2404. 1999-11-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2405. * bgp_route.c (bgp_route_init): Add `show ipv6 bgp prefix-list'.
  2406. * bgp_attr.c (bgp_mp_unreach_parse): Enclose safi setup with
  2407. #ifdef HAVE_MBGPV4.
  2408. 1999-11-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2409. * bgp_dump.c (no_dump_bgp_all): Add [PATH] and [INTERVAL] to no
  2410. dump bgp commands.
  2411. (config_write_bgp_dump): Write interval value to the
  2412. configuration.
  2413. 1999-11-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2414. * bgp_zebra.c: Redistribute route-map support is added.
  2415. * bgp_zebra.h: New file added.
  2416. 1999-11-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2417. * bgp_dump.c: BGP packet dump routine compatible with MRT.
  2418. * bgp_dump.h: BGP packet dump routine compatible with MRT.
  2419. * bgp_debug.c: Renamed from bgp_dump.c
  2420. * bgp_debug.h: Renamed from bgp_dump.h
  2421. 1999-10-27 Kunihiro Ishiguro <kunihiro@zebra.org>
  2422. * BGP4-MIB.txt: New file added. Edited version of RFC1657.
  2423. 1999-10-25 Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
  2424. * bgp_route.c (bgp_announce): If we're not on a shared network
  2425. with the peer and we don't have a link-local next hop, but the
  2426. inbound next-hop has a link-local address, don't readvertise it to
  2427. our peer.
  2428. 1999-10-25 Marc Boucher <marc@mbsi.ca>
  2429. * bgp_zebra.c: Add redistribute kernel command.
  2430. 1999-10-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  2431. * bgp_route.c (bgp_reset): New function added.
  2432. * bgpd.conf.sample2: Add IPv6 configuration sample.
  2433. 1999-10-24 Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
  2434. * bgp_route.c (ipv6_aggregate_address): Function added.
  2435. 1999-10-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  2436. * bgp_packet.c (bgp_update): Unintern aspath, community, cluster
  2437. list after parsing BGP update packet.
  2438. * bgp_attr.c (bgp_attr_aspath): Intern parsed aspath.
  2439. (bgp_attr_community): Intern parsed community.
  2440. (bgp_attr_cluster_list): Intern parsed cluster list.
  2441. * bgp_routemap.c: Add `set community-additive' command.
  2442. 1999-10-21 Alexandr D. Kanevskiy <kad@blackcatlinux.com>
  2443. * bgp_routemap.c (route_set_local_pref): Fix bug of setting
  2444. attribute flag.
  2445. 1999-10-21 Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
  2446. * bgp_route.c (bgp_announce): Add check of IPv6 default route
  2447. announcement.
  2448. * bgp_packet.c (bgp_update_send): Add BGP announcement logging.
  2449. 1999-10-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2450. * `show ip[v6] bgp PREFIX' show uptime of the route.
  2451. 1999-10-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2452. * bgpd.c (bgp_filter_set): Delete PEER_FAMILY_{IPV4,IPV6}. instead
  2453. of that use AF_INET and AF_INET6 directly.
  2454. (vty_clear_bgp): Add new function to support various clear ip bgp
  2455. method.
  2456. 1999-10-04 Lars Fenneberg <lf@elemental.net>
  2457. * bgpd.c (clear_ip_bgp): Add `clear ip bgp ASN'.
  2458. 1999-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  2459. * bgp_routemap.c: Add `match ip prefix-list' and `match ipv6
  2460. prefix-list'.
  2461. 1999-09-28 Kunihiro Ishiguro <kunihiro@zebra.org>
  2462. * bgpd.c (bgp_collision_detect): Add BGP collision detection
  2463. function.
  2464. 1999-09-26 Blake Meike <bmeike@adero.com>
  2465. * bgpd.c (neighbor_port): New command `neighbor PEER port PORT' is
  2466. added.
  2467. 1999-08-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  2468. * bgpd.c (no_neighbor_timers_keepalive): Change MIN to min. Add
  2469. min() macro.
  2470. 1999-08-19 Rick Payne <rickp@rossfell.co.uk>
  2471. * bgp_packet.c (bgp_open): BGP holdtimer bug is fixed. Make BGP
  2472. keepalive timer configurable.
  2473. 1999-08-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2474. * bgp_zebra.c (bgp_redistribute_set): Fix redistribute bug.
  2475. 1999-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2476. * bgpd.c (bgp_peer_display): show ip bgp neighbors PEER only list
  2477. the peer not all of them.
  2478. 1999-08-11 Rick Payne <rickp@rossfell.co.uk>
  2479. * bgp_route.c (bgp_announce): Remove MED if its an EBGP peer -
  2480. will get overwritten by route-maps.
  2481. 1999-08-08 Rick Payne <rickp@rossfell.co.uk>
  2482. * bgp_routemap.c: Multi protocol route-map modification.
  2483. 1999-08-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2484. * bgp_route.c: Set network statement route's origin attribute as
  2485. igp.
  2486. * bgp_zebra.c: Set redistribute route's origin attribute as
  2487. incomplete.
  2488. * bgp_route.c (bgp_info_cmp): Add attribute existance check,
  2489. origin attribute check, BGP peer type check.
  2490. 1999-07-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2491. * bgp_route.c (bgp_peer_delete): Reselect of IPv6 route.
  2492. 1999-07-29 Rick Payne <rickp@rossfell.co.uk>
  2493. * Changed route-maps to behave in a more cisco-like fashion
  2494. 1999-07-27 Kunihiro Ishiguro <kunihiro@zebra.org>
  2495. * bgp_fsm.c (bgp_stop): Very serious bug of bgp_stop () is fixed.
  2496. When multiple route to the same destination exist, bgpd try to
  2497. announce the information to stopped peer. Then add orphan write
  2498. thread is added. This cause many strange behavior of bgpd.
  2499. Reported by Georg Hitsch <georg@atnet.at>.
  2500. 1999-07-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  2501. * bgpd.c: Change peer's A.B.C.D to PEER.
  2502. 1999-07-22 Kunihiro Ishiguro <kunihiro@zebra.org>
  2503. * bgp_route.c (bgp_announce): Add hack for link-local nexthop.
  2504. * bgp_zebra.c (bgp_zebra_announce): Fill in nexthop address from
  2505. local address.
  2506. 1999-07-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  2507. * bgp_packet.c (bgp_open): Holdtime fetch bug is fixed. Reported
  2508. by Yuji SEKIYA <sekiya@sfc.wide.ad.jp>.
  2509. 1999-07-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2510. * bgp_fsm.c (fsm_holdtime): Don't close file descriptor in
  2511. fsm_holdtime ().
  2512. 1999-07-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  2513. * bgp_routemap.c: Add `set atomic-aggregate' command.
  2514. 1999-07-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2515. * bgp_routemap.c (route_set_ip_nexthop_cmd): Change "ip nexthop"
  2516. to "ip next-hop".
  2517. 1999-07-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2518. * bgp_route.c (show_ipv6_bgp_regexp): `show ipv6 bgp regexp'
  2519. added.
  2520. 1999-07-01 Rick Payne <rickp@rossfell.co.uk>
  2521. * bgp_zebra.c (zebra_init): Install standard commands to
  2522. ZEBRA_NODE.
  2523. 1999-06-28 Rick Payne <rickp@rossfell.co.uk>
  2524. * bgpd.c (bgp_delete): bgp peer deletion bug is fixed.
  2525. 1999-06-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  2526. * bgpd.c: Add neighbor update-source command as ALIAS to
  2527. neighbor_interface.
  2528. 1999-06-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  2529. * bgp_attr.c (bgp_packet_attribute): Send community attribute when
  2530. send_community flag is set.
  2531. * bgpd.h (struct peer): Add send_community flag.
  2532. 1999-06-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2533. * bgpd.c (router_bgp): router bgp's argument changed from AS_NO to
  2534. <1-65535>.
  2535. 1999-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2536. * bgp_route.h (struct bgp_info): Add subtype for BGP route type.
  2537. 1999-06-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2538. * bgp_community.c (community_merge): Function added.
  2539. 1999-06-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2540. * bgp_clist.c: New file.
  2541. * bgp_clist.h: New file.
  2542. * bgp_community.h (COMMUNITY_LOCAL_AS): Added for Cisco
  2543. compatibility.
  2544. (COMMUNITY_NO_ADVERTISE): Fix typo.
  2545. 1999-05-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2546. * bgp_routemap.c: Add `set weight WEIGHT' command.
  2547. * bgpd.c: Remove all_digit_check function. Instead of that use
  2548. all_digit function in lib/prefix.c.
  2549. * bgp_routemap.c (bgp_route_map_init): Install
  2550. no_set_ipv6_nexthop_global_cmd and no_set_ipv6_nexthop_local_cmd
  2551. element to the RMAP_NODE.
  2552. 1999-05-28 Kunihiro Ishiguro <kunihiro@zebra.org>
  2553. * bgp_aspath.c (aspath_make_str): Declare aspath_delimiter_char
  2554. inside aspath_make_str function.
  2555. (aspath_prepend): New function is added for AS path prepend.
  2556. (aspath_make_str_count): Renamed from aspath_make_str. AS path
  2557. count is set to the structure.
  2558. (aspath_merge): New function.
  2559. 1999-05-22 Kunihiro Ishiguro <kunihiro@zebra.org>
  2560. * bgp_zebra.c (redistribute_bgp): Add new DEFUN.
  2561. (no_redistribute_bgp): Likewise.
  2562. (router_zebra): Semantics changed. Now 'router zebra' is default
  2563. behavior of bgpd.
  2564. 1999-05-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2565. * bgp_routemap.c: Add some commands to bgp route-map.
  2566. match ip next-hop: New command.
  2567. match metric: New command.
  2568. set metric: Doc fix.
  2569. set local-preference: Add DEFUN.
  2570. 1999-05-14 Stephen R. van den Berg <srb@cuci.nl>
  2571. * bgp_main.c (signal_init): SIGTERM call sigint.
  2572. (sigint): Loggging more better message.
  2573. 1999-05-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2574. * bgp_attr.c (bgp_packet_attribute): AS path attribute extended
  2575. length bit check is added.
  2576. 1999-05-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  2577. * bgp_routemap.c (bgp_route_map_init): Call route_map_install_set
  2578. function with route_set_local_pref_cmd argument.
  2579. (no_match_aspath): Function added.
  2580. (route_set_metric): Set attribute flag bit.
  2581. * bgp_attr.c (bgp_packet_attribute): MULTI_EXIT_DISC is now in BGP
  2582. packet.
  2583. 1999-05-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2584. * bgpd.c (no_neighbor_timers_holdtime): `no neighbor PEER timers
  2585. holdtime' command is added.
  2586. * bgpd.h (BGP_DEFAULT_HOLDTIME_BIG): Delete define.
  2587. * bgpd.c (bgp_prefix_list_set): New function added.
  2588. (bgp_prefix_list_unset): Likewise.
  2589. (bgp_prefix_list_update): Likewise.
  2590. (show_ip_bgp_neighbors): prefix-list information display.
  2591. 1999-05-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2592. * bgpd.c (bgp_delete): Function added for `no router bgp'.
  2593. 1999-05-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2594. * bgp_dump.c (bgp_dump_attr): Add originator_id display.
  2595. * bgpd.c (bgp_router_id): Even when address is malformed set the
  2596. value to configuration bug fixed.
  2597. (no_bgp_router_id): New function.
  2598. (no_bgp_cluster_id): New function.
  2599. 1999-05-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2600. * bgpd.h (BGP_ATTR_ORIGINATOR_ID): Changed from BGP_ATTR_ORIGINATOR.
  2601. 1999-05-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2602. * bgp_route.c (bgp_announce): Add route reflector check.
  2603. 1999-05-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2604. * bgpd.c (bgp_cluster_id): Add function for route reflector.
  2605. (neighbor_route_reflector_client): Likewise.
  2606. (no_neighbor_route_reflector_client): Likewise.
  2607. * bgpd.h (struct bgp ): Add cluster for route reflector.
  2608. * bgp_route.c (show_ip_bgp_prefix_list): New command is added.
  2609. 1999-04-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  2610. * Makefile.am (noinst_HEADERS): Add bgp_filter.h
  2611. * bgp_aspath.c (aspath_undup): Function deleted. aspath_free ()
  2612. has same functionality.
  2613. * bgp_filter.h: New file.
  2614. * bgp_aspath.c (aspath_unintern): Rename aspath_free () to
  2615. aspath_unintern ()
  2616. (aspath_free): New function.
  2617. 1999-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  2618. * bgp_aspath.c (aspath_aggregate): Function added.
  2619. * bgp_aspath.h (aspath_aggregate): Prototype added.
  2620. * bgp_aspath.c (aspath_empty_aspath): New argument
  2621. gated_dont_eat_flag is added.
  2622. 1999-04-18 Kunihiro Ishiguro <kunihiro@zebra.org>
  2623. * bgp_route.c: Add bgp_aggregate_ipv4 and bgp_aggregate_ipv6.
  2624. 1999-04-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2625. * bgp_route.c (aggregate_address): Function added.
  2626. * bgp_zebra.c (zebra_read): Change log to zlog.
  2627. 1999-04-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2628. * Makefile.am (noninst_HEADERS): Added for make dist.
  2629. 1999-04-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2630. * aspath_regex.c: Removed from distribution.
  2631. 1999-04-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2632. * bgp_attr.c (bgp_packet_attribute): Old draft-00 packet treatment
  2633. bug fixed.
  2634. 1999-04-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2635. * bgp_aspath.c (aspath_add_left): Fix empty aspath bug. Reported
  2636. by kad@gibson.skif.net.
  2637. * bgp_regex.[ch]: New file added.
  2638. 1999-04-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2639. * bgp_filter.c: New file added.
  2640. 1999-04-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2641. * bgp_aspath.c (aspath_empty_aspath): Change for peering with
  2642. gated.
  2643. 1999-03-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  2644. * bgp_main.c (main): Default loggin method changed from syslog to
  2645. stdout.
  2646. 1999-03-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2647. * bgp_route.c: Delete obsolete default attribute DEFUN.
  2648. 1999-03-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2649. * bgp_attr.c: Make attribute structure put into attribute hash.
  2650. 1999-03-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2651. * bgp_view.c : Delete file.
  2652. 1999-02-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  2653. * bgp_routemap.c (bgp_apply_route_map): Add prefix argument.
  2654. * bgp_route.h (struct bgp_info): Add bgp_info structre. I'll
  2655. replace bgp_route with this.
  2656. * bgp_routemap.c (route_match_ip_address): Fix bug of passing non
  2657. prefix value to access_list_apply().
  2658. * bgpd.conf.sample: Add route-map sample.
  2659. Delete obsolete default-attr statements.
  2660. * bgp_packet.c: Use stream_fifo for packet queueing.
  2661. 1999-02-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  2662. * bgp_aspath.c (aspath_add_left): add non empty aspath treatment.
  2663. * bgp_main.c: include unistd.h for daemon().
  2664. * bgp_route.c (nlri_process): add IPv6 table lookup.
  2665. * bgp_attr.c (route_parse_ipv6): call nlri_process().
  2666. (attr_make): Obsolete function attr_make deleted.
  2667. 1999-02-22 Kunihiro Ishiguro <kunihiro@zebra.org>
  2668. * bgp_aspath.c (aspath_add_left): change function name from
  2669. aspath_add_leftmost_as().
  2670. 1999-02-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  2671. * bgp_aspath.c: add aspath_add_leftmost_as ().
  2672. 1999-02-18 Peter Galbavy <Peter.Galbavy@knowledge.com>
  2673. * syslog support added
  2674. 1999-01-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  2675. * bgpd.c: DEFUN (neighbor_nexthop): deleted.
  2676. DEFUN (neighbor_distribute_list): added.
  2677. 1999-01-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  2678. * bgpd.h (struct peer ): header_buf and read_buf is removed.
  2679. * bgp_peer.[ch]: Deleted. Peer related functions are merged to
  2680. bgpd.c
  2681. * bgp_network.c: New file.
  2682. * bgp_network.h: New file.
  2683. * bgp_packet.h: New file.
  2684. 1999-01-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  2685. * bgp_packet.c (bgp_keepalive_send): Now BGP keepalive packet is
  2686. buffered.
  2687. 1999-01-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2688. * bgp_packet.c: New file.
  2689. 1998-12-22 Kunihiro Ishiguro <kunihiro@zebra.org>
  2690. * bgp_zebra.c (zebra_client): Use zebra_connect() in lib/client.c.
  2691. * `show ip bgp' bug fixed.
  2692. * aspath_log (): Remove argument logfp.
  2693. 1998-12-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2694. * bgp_fsm.h: New file.
  2695. 1998-12-15 Magnus Ahltorp <map@stacken.kth.se>
  2696. * bgp_attr.c, bgp_community.h, bgp_dump.c, bgp_fsm.c, bgp_open.c
  2697. bgp_peer.c, bgp_peer.h, bgp_route.c, bgp_route.h, bgp_view.c
  2698. bgpd.c, bgpd.h, bgp_attr.c, bgp_community.h, bgp_dump.c,
  2699. bgp_fsm.c, bgp_open.c, bgp_peer.c, bgp_peer.h: Prototype fixes.
  2700. 1998-12-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2701. * bgpd.c (bgp_config_write): Delete vector v argument.
  2702. 1998-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2703. * bgpd.h: Delete annoying ld_[124]byte and st_[124]byte macros.
  2704. 1998-11-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  2705. * bgp_radix.[ch]: removed.
  2706. 1998-09-15 HEO SeonMeyong <seirios@matrix.iri.co.jp>
  2707. * bgp_main.c: ifdef HYDRANGEA -> ifdef KAME
  2708. 1998-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2709. * bgp_dump.c: delete nroute().
  2710. 1998-05-19 Yamshita TAKAO <jargon@lares.dti.ne.jp>
  2711. * bgp_aspath.c: HAVE_CONFIG_H typo :-)
  2712. * bgpd.h: Modify for compile on Solaris.
  2713. * bgp_aspath.h: likewize
  2714. * bgp_community.h: likewize
  2715. * bgp_routemap.c: likewize
  2716. 1998-05-18 Yamshita TAKAO <jargon@lares.dti.ne.jp>
  2717. * bgpd.h: Modify for compile on Solaris.
  2718. * bgp_aspath.h: likewize
  2719. 1998-05-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2720. * routemap.[ch]: move to ../lib directory.
  2721. 1998-05-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2722. * routemap.c (route_map_apply): add function.
  2723. 1998-05-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2724. * routemap.h: add file.
  2725. * bgp_peer.h (enum ): change PEER_{IBGP,EBGP} to BGP_PEER_{IBGP,EBGP}
  2726. 1998-05-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  2727. * Makefile.am: sysconfdir_DATA added.
  2728. 1998-05-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2729. * bgp_dump.c: add `debug bgp fsm'
  2730. add `no debug bgp fsm'
  2731. add `show debug bgp'
  2732. * bgp_open.c: File added.
  2733. 1998-05-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2734. * .cvsignore: File added.
  2735. 1998-04-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2736. * bgp_community.[ch]: File added.
  2737. 1998-03-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2738. * bgpd now use lib/thread.[ch].
  2739. 1998-01-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2740. * bgpd.c (show_ip_bgp_neighbors): add 'show ip bgp neighbors' command.
  2741. * bgpd.h (BGP_DEFAULT_START_TIMER): change from 1 to 30.
  2742. 1997-12-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2743. * bgp_vty.c: bgp_vty.c deleted.
  2744. * bgpd.c (config_write_neighbor): add ebgp-multihop command.
  2745. 1997-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
  2746. * bgp_fsm.c: [-p bgp_port] and [-P vty_port] works
  2747. 1997-12-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2748. * bgp_vty.c: new file.
  2749. * bgp_attr.c: add new logging system.
  2750. 1997-11-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  2751. * Change all inet_addr call into inet_aton.
  2752. 1997-11-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2753. * bgp_radix.c: change radix_peer_delete
  2754. 1997-10-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2755. * bgp_aspath.c: move AS_TOKEN_??? definition from header to c source.
  2756. 1997-09-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2757. * bgp_dump.c (bgp_log_route): add dump_attr function
  2758. 1997-09-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2759. * bgp_aspath.c (aspath_test): change AS_SET brace from '[' to '{'
  2760. * bgp_dump.c (bgp_log_route): change logfile format.
  2761. 1997-08-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  2762. * bgp_open.c (bgp_open): move bgp_open function from bgpd.c
  2763. * bgp_attr.c (community_str2com): add community value generation
  2764. * bgp_attr.h: add SAFI definition for BGP-4+
  2765. 1997-08-18 Kunihiro Ishiguro <kunihiro@zebra.org>
  2766. * bgpd.h: add BGP_OPEN_OPT_CAP for Capabilities Optional Parameter
  2767. * Makefile.in: add bgp_open.o, delete bgp_loop.o
  2768. * bgp_open.c: newfile which manages BGP Open message
  2769. * bgp_loop.c: this file is merged with bgp_fsm.c
  2770. * bgp_radix.c (radix_add): radix_add() now return route_t instead
  2771. of int
  2772. (bgp_sim): now we can read update & withdraw from file
  2773. * bgp_route.c: add route_free() call into route_parse etc.
  2774. 1997-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2775. * bgp_radix.c: Radix code is completely rewritten. It has better
  2776. memory treatment than old one.
  2777. 1997-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2778. * bgp_route.c: route_alloc for route struct allocation statistics.
  2779. * bgpd.c (bgp_make_update): now we cann announce MED attribute.
  2780. * bgp_aspath.c (aspath_print_all): change aspath_print_all output
  2781. format.
  2782. 1997-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2783. * bgp_term.c (term_parse): add command : show asstat, show ashash
  2784. * bgp_aspath.c: aspath_cmp bug fix
  2785. (aspath_print_all): add aspath_print_all ();
  2786. * bgp_peer.h: delete rlist element from struct peer.
  2787. 1997-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2788. * bgp_aspath.c: completely rewritten.
  2789. * bgp_aspath.h: completely rewritten.
  2790. add AsPath, AsSegment structure
  2791. add AS_SET treatment
  2792. change Hash codes
  2793. 1997-08-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2794. * bgp_attr.h: add Attribute flags defines
  2795. * bgp_route.c: delete rlist related functions
  2796. * bgp_aspath.c (as_origin): add as_origin function
  2797. (aspath_print): move from bgp_dump.c and add support of AS_SET
  2798. change Hash related function names.
  2799. 1997-08-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2800. * bgp_aspath.h: add next entry, delete rlist entry from struct aspath
  2801. 1997-08-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2802. * bgp_aspath.c (as_sort): add function as_sort
  2803. * bgp_aspath.h: add IBGP, EBGP