ChangeLog 133 KB

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