ChangeLog 115 KB

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