ChangeLog 148 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221
  1. 2008-01-08 Pavol Rusnak <prusnak@suse.cz>
  2. * memory.c: (mtype_memstr) Fix accidental shift past width of type,
  3. constant should have been forced to UL, rather than being left to
  4. default to int.
  5. 2007-11-12 Denis Ovsienko
  6. * linklist.c: (listnode_add_after) Don't forget to increment list
  7. items counter.
  8. * workqueue.h: Changed working queue flags from enum into integer
  9. and introduced WQ_AIM_HEAD flag to indicate our will to insert
  10. new data before the list head.
  11. * workqueue.[ch]: (work_queue_schedule, show_work_queues,
  12. work_queue_plug, work_queue_unplug) Adjust to the new flags style.
  13. * workqueue.[ch]: (work_queue_aim_head) new function to control the
  14. WQ_AIM_HEAD flag
  15. * workqueue.[ch]: (work_queue_new) Explicitly set both WQ flags
  16. during new WQ initialization.
  17. * workqueue.[ch]: (work_queue_add) If WQ_AIM_HEAD indicates a need
  18. to place the new data into list head, do it.
  19. 2007-10-22 Lorenzo Colitti <lorenzo@colitti.com>
  20. * smux.c: (smux_stop) Avoid cancelling a defunct thread pointer
  21. (smux_start) Stop smux before trying to start it, possibly again.
  22. 2007-10-04 Denis Ovsienko
  23. * pid_output.c: (pid_output) stop using LOGFILE_MASK
  24. (0600 by default), introduce and use PIDFILE_MASK (0644)
  25. instead.
  26. 2007-09-18 Paul Jakma <paul.jakma@sun.com>
  27. * privs.c: definition of ZCAP_NET_ADMIN on Solaris should
  28. be PRIV_SYS_IP_CONFIG, when that's available. Thus allowing
  29. Quagga to work with in Solaris zones with exclusive IP
  30. instances.
  31. 2007-08-21 Denis Ovsienko
  32. * sockopt.[ch]: (setsockopt_so_sendbuf, getsockopt_so_sendbuf):
  33. new functions to adjust ospfd working socket.
  34. 2007-08-13 Denis Ovsienko
  35. * zebra.h: introduce ZEBRA_ERR_KERNEL and ZEBRA_ERR_NOERROR
  36. 2007-07-06 Atis Elsts <atis@mikrotik.com>
  37. * pqueue.{c,h}: Export trickle_up
  38. 2007-07-26 Paul Jakma <paul.jakma@sun.com>
  39. * log.c: (mes_lookup) warning about code not being in same-number
  40. array slot should be debug, not warning. E.g. BGP has several
  41. discontigious number spaces, allocating from different parts of a
  42. space is not uncommon (e.g. IANA assigned versus vendor-assigned
  43. code points in some number space).
  44. 2007-07-06 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  45. * sockopt.{c,h}: (setsockopt_multicast_ipv4) Add some comments about
  46. the arguments.
  47. 2007-06-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  48. * zebra.h: On linux, we seem to need to include <linux/types.h> before
  49. <sys/sysctl.h>, otherwise we get isisd compilation errors about
  50. __be16 not being defined.
  51. 2007-05-10 Paul Jakma <paul.jakma@sun.com>
  52. * zebra.h: Don't try define _GNU_SOURCE, autoconf should do it.
  53. 2007-05-03 Paul Jakma <paul.jakma@sun.com>
  54. * memtypes.c: Add MTYPE_ATTR_EXTRA and MTYPE_BGP_ROUTE_EXTRA
  55. 2007-05-01 David L Stevens <dlstevens@us.ibm.com>
  56. * (general) These changes collectively add route-map and
  57. prefix-list support to zebra and fix a bug in "show
  58. route-map" (with no argument).
  59. * command.h: added PROTOCOL_NODE type
  60. * log.c: (proto_name2num) new function, protocol name to
  61. number translation.
  62. * routemap.c: (vty_show_route_map) fixed "show route-map"
  63. without route-map name
  64. * routemap.h: added RMAP_ZEBRA type
  65. * zebra.h: added proto_name2num() prototype
  66. 2007-04-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  67. * log.c: (quagga_timestamp) Optimize the subsecond timestamp generation.
  68. 2007-04-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  69. * command.c: (config_write_host) Save "log timestamp precision"
  70. if not default value.
  71. (show_logging) Show configured timestamp precision.
  72. (config_log_timestamp_precision) Enable configuration of timestamp
  73. precision.
  74. (no_config_log_timestamp_precision) Restore default timestamp
  75. precision.
  76. (cmd_init) Install new timestamp precision commands.
  77. * log.h: (struct zlog) New timestamp_precision field.
  78. (quagga_timestamp) New function to generate a timestamp with the
  79. desired precision.
  80. (struct timestamp_control) Declare a structure for use in avoiding
  81. repeated duplicate calls to quagga_timestamp.
  82. * log.c: (quagga_timestamp) New function to generate a timestamp
  83. of the desired precision.
  84. (time_print) Call quagga_timestamp if the time hasn't already been
  85. calculated.
  86. (vzlog) Initialize a timestamp_control structure and pass it to
  87. time_print and vty_log.
  88. (zlog_backtrace) Fix 64-bit problem: cannot print size_t with %u.
  89. * vty.h: Must now include "log.h".
  90. (vty_log) Takes an additional struct timestamp_control argument.
  91. * vty.c: (vty_log_out) Use new struct timestamp_control and new
  92. quagga_timestamp function to print timestamps of the desired
  93. precision.
  94. (vty_time_print) Use new quagga_timestamp function.
  95. (vty_log) Accept new struct timestamp_control argument and pass it
  96. down to vty_log_out.
  97. 2007-04-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  98. * smux.c: (smux_trap) Fix printf format to work with 64-bit size_t.
  99. 2007-04-07 Paul Jakma <paul.jakma@sun.com>
  100. * prefix.h: Add define to match IPv4 Link-Local addresses
  101. 2007-03-20 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  102. * log.c: (mes_lookup) Make the function more robust: check for
  103. cases where the index does not match the key value at that position.
  104. If so, give a warning and fall back to a linear search.
  105. And improve the error message in cases where even that fails.
  106. 2006-12-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  107. * if.h: (struct connected) Add new ZEBRA_IFA_PEER flag indicating
  108. whether a peer address has been configured. Comment now shows
  109. the new interpretation of the destination addr: if ZEBRA_IFA_PEER
  110. is set, then it must contain the destination address, otherwise
  111. it may contain the broadcast address or be NULL.
  112. (CONNECTED_DEST_HOST,CONNECTED_POINTOPOINT_HOST) Remove obsolete
  113. macros that were specific to IPv4 and not fully general.
  114. (CONNECTED_PEER) New macro to check ZEBRA_IFA_PEER flag.
  115. (CONNECTED_PREFIX) New macro giving the prefix to insert into
  116. the RIB: if CONNECTED_PEER, then use the destination (peer) address,
  117. else use the address field.
  118. (CONNECTED_ID) New macro to come up with an identifying address
  119. for the struct connected.
  120. * if.c: (if_lookup_address, connected_lookup_address) Streamline
  121. logic with new CONNECTED_PREFIX macro.
  122. * prefix.h: (PREFIX_COPY_IPV4, PREFIX_COPY_IPV6) New macros
  123. for better performance than the general prefix_copy function.
  124. * zclient.c: (zebra_interface_address_read) For non-null destination
  125. addresses, set prefixlen to equal the address prefixlen. This
  126. is needed to get the new CONNECTED_PREFIX macro to work properly.
  127. 2006-10-14 Paul Jakma <paul.jakma@sun.com>
  128. * if.c: (general) Handle upgrades from SUNWzebra, which tried
  129. to track each logical interface as a seperate struct
  130. interface, to Quagga, which assigns only one struct interface
  131. per ifindex.
  132. (if_sunwzebra_get) Try decompose a logical interface name
  133. (fooX:Y) to the 'primary' name (fooX), for Solaris.
  134. (interface_cmd) Use if_sunwzebra_get on Solaris.
  135. 2006-09-26 Pierre-Yves Ritschard <pierre-yves@spootnik.org>
  136. * smux.c: (smux_open,smux_trap,smux_register) Fix various
  137. asn_build_* calls to pass the proper length in the final
  138. argument: use sizeof(<variable>) instead of sizeof(<type>),
  139. since there were several inconsistencies between the actual
  140. variable type and the size that was passed. This should
  141. fix some problems on 64-bit architectures where sizeof(int)
  142. != sizeof(long).
  143. 2006-08-25 Paul Jakma <paul.jakma@sun.com>
  144. * thread.c: (general) Add support for monotonic clock, it may still
  145. jump forward by huge amounts, but should be immune to going
  146. backwards. Fixes bug #134.
  147. (quagga_gettimeofday_relative_adjust) helper, does what name
  148. says - adjusts gettimeofday based relative timer.
  149. (quagga_gettimeofday) helper to keep recent_time up to date.
  150. (quagga_get_relative) helper, update and getch the relative
  151. timer using gettimeofday(). POSIX CLOCK_MONOTONIC is also
  152. supported, but the code is not enabled yet nor tested.
  153. (quagga_real_stabilised) helper, retrieve absolute time but
  154. stabilised so as to never decrease.
  155. (quagga_gettime) Exported interface, analogous to POSIX
  156. clock_gettime() in interface, supporting several clocks.
  157. (quagga_time) Exported interface, analogous to traditional
  158. time(), will never decrease.
  159. (recent_relative_time) Convenience function to retrieve
  160. relative_time timeval, similar to existing recent_time absolute
  161. timeval, for when an approximately recent value will do.
  162. (remainder) Update to use above helpers.
  163. (thread_getrusage) Previously was a macro, but needs to be
  164. a function to twiddle with thread.c private stuff.
  165. * thread.c: Point the GETRUSAGE macro at previous function.
  166. Export quagga_gettime, quagga_time and recent_relative_time for
  167. general use.
  168. 2006-07-25 Paul Jakma <paul.jakma@sun.com>
  169. * thread.h: (struct thread) Add a cache pointer to the struct
  170. cpu_thread_history, if it is known - saving hash lookup on
  171. each thread_call.
  172. * thread.c: (thread_call) Cache the pointer to the
  173. cpu_thread_history, so that future thread_calls of same
  174. thread can avoid the hash_lookup.
  175. 2006-07-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  176. * vty.c: (vty_log_out) Do not call vty_close, because this could
  177. result in a parent function's accessing the freed memory.
  178. Instead, set status VTY_CLOSE and call shutdown(vty->fd, SHUT_RDWR).
  179. And add a comment on vty_close.
  180. 2006-07-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  181. * vty.c: (vty_log_out, vty_read, vty_flush, vtysh_flush, vtysh_read)
  182. After an I/O error, must set vty->monitor to 0 before calling
  183. zlog_warn, otherwise an infinite recursion could occur
  184. (since zlog_warn triggers a message to be written to the vty,
  185. and that in turn triggers another error message when it fails, etc.).
  186. 2006-07-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  187. * vty.c: (vty_log_out) Debug messages to terminal vty sessions
  188. should include timestamps.
  189. 2006-06-28 Paul Jakma <paul.jakma@sun.com>
  190. * memory.c: Fix typo in cpp conditional around malloc.h, from
  191. comment in bug #269.
  192. 2006-06-27 Paul Jakma <paul.jakma@sun.com>
  193. * route_types.awk: Remove setting the 'bare' numeric route type
  194. in redist strings.
  195. 2006-06-15 Paul Jakma <paul.jakma@sun.com>
  196. * command.c: (cmd_describe_command_real) Fix leak, CID #38.
  197. * memory.h: Experimental, have XFREE macro NULL out the freed
  198. pointer.
  199. * linklist.c: (list_delete) call list_delete_all_node, don't
  200. duplicate it.
  201. * if.c: (if_flag_dump) remove the whitespace indentation, callers
  202. should provide.
  203. 2006-05-28 Paul Jakma <paul.jakma@sun.com>
  204. * zebra.h: Include inttypes.h rather than stdint.h, best practice
  205. according to the autoconf manual.
  206. Add UINT*_MAX defines for older platforms lacking these (FBSD 4)
  207. * memory.c: malloc.h is deprecated in favour of stdlib.h, however
  208. we still need it on GNU Libc for mallinfo().
  209. * vty.c: (vty_log/vty_log_fixed) dont crash if called when vty
  210. hasn't been initiliased.
  211. * log.c: (general) Add support for Sun libc printstack().
  212. (hex_append) make the cpp conditional on general HAVE_STACK_TRACE
  213. define.
  214. (zlog_backtrace_sigsafe) Ditto. Add printstack() version of the
  215. the DUMP macro in this function.
  216. 2006-05-23 Paul Jakma <paul.jakma@sun.com>
  217. * route_types.txt: New file, table of ZEBRA_ROUTE definitions.
  218. * route_types.awk: New script, to parse previous and generate
  219. (for now) redistribute string defines.
  220. * Makefile.am: build route_types.h using previous two, ala
  221. memtypes.h, include the script and table file in EXTRA_DIST.
  222. * command.h: pull in route_types.h, add a REDIST_STR define.
  223. 2006-05-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  224. * if.h: (struct connected) Document the meaning of the
  225. ZEBRA_IFC_REAL and ZEBRA_IFC_CONFIGURED flags.
  226. 2006-05-15 Paul Jakma <paul.jakma@sun.com>
  227. * log.c: (general) Generalise struct zebra_route_desc into
  228. struct zebra_desc_table and, similar to route_types, add a
  229. command_types table to describe Zserv protocol commands.
  230. (route_types[]) use a macro to use designated initialisers
  231. while avoiding tedious duplication.
  232. (zserv_command_string) lookup string from zebra_desc_table,
  233. similar to zebra_route_string
  234. * zebra.h: Add declaration for zserv_command_string, adjust the
  235. comments to reflect zebra_desc_table.
  236. 2006-05-13 Paul Jakma <paul.jakma@sun.com>
  237. * vty.c: (vty_describe_command) CID #39 fix was too hasty, just
  238. cause it /can/ leak doesn't mean it always will have, check
  239. first.
  240. 2006-05-12 Paul Jakma <paul.jakma@sun.com>
  241. * plist.c: (vty_prefix_list_uninstall) Fix potential NULL deref
  242. of prefix and typestr strings, Coverity CID #3.
  243. * command.c: (cmd_complete_command_real) Fix leak of cmd_vector
  244. in error case, Coverity CID #37.
  245. (cmd_describe_command_real) Fix return of freed pointer when
  246. no-match, CID #55.
  247. * vty.c: (vty_describe_command) fix leak of describe vector in
  248. error path, CID #39.
  249. 2006-03-30 Paul Jakma <paul.jakma@sun.com>
  250. * command.h: (DEFUN_CMD_FUNC_TEXT) Annotate arguments as
  251. potentially being unused.
  252. * workqueue.c: (work_queue_run) fix line length of comment
  253. 2006-03-27 Paul Jakma <paul.jakma@sun.com>
  254. * memtypes.awk: Fix gensub call, g should be a string..
  255. 2006-03-25 Paul Jakma <paul.jakma@sun.com>
  256. * workqueue.h: (struct work_queue) Remove status field and
  257. state flag, no longer used.
  258. 2006-03-19 Paul Jakma <paul.jakma@sun.com>
  259. * memtypes.c: Add MTYPE_BGP_SYNCHRONISE.
  260. 2006-03-16 Paul Jakma <paul.jakma@sun.com>
  261. * Makefile.am: Fix -version-info argument.
  262. 2006-03-15 Paul Jakma <paul.jakma@sun.com>
  263. * memory.c: (mtype_memstr) new helper function to
  264. return human friendly string for a byte count.
  265. (mtype_stats_alloc) new function, for users to retrieve
  266. number of objects allocated.
  267. (show_memory_mallinfo) New function, show mallinfo statistics
  268. if available.
  269. (show_memory_all_cmd) Call show_memory_mallinfo, if mallinfo
  270. is available.
  271. * memory.h: Export mtype_memstr and mtype_stats_alloc.
  272. Provide a define for a reasonable buffer size for
  273. mtype_memstr.
  274. 2006-03-14 Paul Jakma <paul.jakma@sun.com>
  275. * privs.c: (zprivs_caps_init) Change user IDs before lowering
  276. privileges, while this seems to work on Linux, on Solaris
  277. it rightfully refuses due to PRIV_PROC_SETID having been
  278. dropped.
  279. * command.h: Add the struct host global exported from command.c
  280. 2006-03-06 Paul Jakma <paul.jakma@sun.com>
  281. * if.h: export show_address_cmd, for anyone who wishes to use
  282. it.
  283. 2006-02-21 Paul Jakma <paul.jakma@sun.com>
  284. * sockunion.c: (sockunion_{su2str,log}) Use XSTRDUP.
  285. Particularly with _su2str, as that string gets XFREEd,
  286. which can be annoying if run debug code in memory.c.
  287. 2006-02-02 Paul Jakma <paul.jakma@sun.com>
  288. * workqueue.h: (struct work_queue) Remove the delay field.
  289. It served no purpose and just introduced bad behaviour.
  290. Should be excised before its allowed to escape into 1.0.
  291. This removes need for the 'flood' and runs_since_clear
  292. fields.
  293. * workqueue.c: (general) excise delay factor between queue
  294. runs, hence the 'flood' crap too.. See above.
  295. 2006-01-19 Paul Jakma <paul.jakma@sun.com>
  296. * stream.c: (stream_getq_from) should use POSIX uint64_t
  297. not u_int64_t. Latter is neither a traditional BSD type, nor
  298. a POSIX type.
  299. 2006-01-17 Vincent Jardin <vincent.jardin@6wind.com>
  300. * md5.c: Don't forget to keep const.
  301. * regex.c: Cleanup code and remove warnings.
  302. 2006-01-17 Paul Jakma <paul.jakma@sun.com>
  303. * md5.{c,h}: (md5_loop) Is better off taking a void * and doing
  304. cast to byte wise type internally, avoids needs for casts
  305. in users.
  306. * vty.c: (no_terminal_monitor_cmd) New ALIAS for
  307. terminal_no_monitor, in the more normal negating format,
  308. to be kind to my fingers.
  309. (vty_init) install new ALIAS.
  310. * zclient.{c,h}: (zclient_create_header) export this, seems others
  311. could use it (in lieu of more complete zserv helpers).
  312. 2006-01-16 Paul Jakma <paul.jakma@sun.com>
  313. * zclient.h: Update the Zserv protocol header with a version
  314. field. Define the old command field to be a 'marker', to
  315. allow old Zserv and updated Zserv to be differentiated.
  316. Future updates will bump the version field obviously. New
  317. command field is made wider. Try to stop using the
  318. 'zebra_size_t' typedef in the callbacks.
  319. * zclient.c: Update to read/write new format header.
  320. 2006-01-11 Paul Jakma <paul.jakma@sun.com>
  321. * if.h: (struct interface) expand flags to 8 bytes.
  322. * zclient.c: (zebra_interface_{add,state}_read) stream read of
  323. interface flags now need to use stream_getq.
  324. (zebra_interface_if_set_value) ditto
  325. 2006-01-10 Paul Jakma <paul.jakma@sun.com>
  326. * stream.c: (stream_new) Allocate stream data as seperate object.
  327. (stream_free) free the data.
  328. (stream_resize) new function, resize stream to new size.
  329. (stream_{get,put}q*) new functions to get/put quad word size
  330. types.
  331. * stream.h: (struct stream) make data seperate from the stream.
  332. Export new stream_resize and quad-word get/put functions.
  333. 2005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com>
  334. * vty.c (vty_hello): add cast to quiet lint (from David Young)
  335. 2005-11-26 Paul Jakma <paul.jakma@sun.com>
  336. * buffer.c: (struct buffer_data) change gcc zero array
  337. declaration to C99 incomplete array.
  338. * stream.h: (struct stream) same
  339. 2005-11-24 Paul Jakma <paul.jakma@sun.com>
  340. * privs.c: (zcaps2sys/solaris) remove unused variable.
  341. (zprivs_state_caps/solaris) Format string missing a
  342. specifier.
  343. * zebra.h: s/u_int/unsigned int/, u_int is a BSD type, defining
  344. __USE_BSD on Linux pulls in further things from netinet/ip.h
  345. which dont preprocess for some reason. There is no C99
  346. shorthand type directly equivalent to u_int afaict, so don't
  347. use it.
  348. 2005-11-14 Paul Jakma <paul.jakma@sun.com>
  349. * (general) pass struct work-queue to callback functions.
  350. * workqueue.h: (struct work_queue) move the state flag
  351. variables to end.
  352. Add an opaque pointer to spec, for user-data global to the
  353. queue.
  354. Pass reference to work_queue to all callbacks.
  355. * workqueue.c: (work_queue_item_remove) pass ref to workqueue
  356. to user callbacks.
  357. (work_queue_run) ditto.
  358. 2005-11-14 Paul Jakma <paul.jakma@sun.com>
  359. * (general) Add state to detect queue floods. There's no sense
  360. trying to be sparing of CPU resources, if the queue is
  361. flooding and using ever more memory resources. we should just
  362. get on with clearing the queue.
  363. The sense of delay and hold were wrong way around, fix.
  364. * workqueue.h: (struct work_queue) Add status bitfield. Add
  365. 'flood' integer to workqueue spec. Add runs_since_clear
  366. counter to workqueue.
  367. * workqueue.c: (work_queue_new) set defaults for delay, hold
  368. and flood.
  369. (work_queue_add) initial schedule should use delay, not hold.
  370. (show_work_queues) Print flood field, conserve whitespace.
  371. (work_queue_unplug) use delay, not hold.
  372. (work_queue_run) consecutive runs should be seperated by hold
  373. time, not delay.
  374. Keep track of number of consecutive runs, go into 'overdrive'
  375. if queue is being flooded, we can't avoid making heavy use of
  376. resources, better to use CPU than ever more RAM.
  377. * zebra.h: [bug #231] include stdint, if its there.
  378. 2005-11-05 Paul Jakma <paul.jakma@sun.com>
  379. * routemap.c: (vty_show_route_map_entry) call action is
  380. seperate from exit action, latter should still be printed
  381. regardless of whether a call is specified.
  382. 2005-11-03 Paul Jakma <paul.jakma@sun.com>
  383. * zebra.h: BSD BYTE_ORDER define isn't available everywhere,
  384. define if needs be.
  385. * checksum.h: new file. checksum.c exports in_cksum, provide
  386. a header for it.
  387. * checksum.c: (in_cksum) callers shouldn't have to know it uses
  388. a u_short internally, change to void *.
  389. * Makefile.am: Add checksum.h
  390. * command.h: remove bogus trailling slash.
  391. * md5.c: (general) Update it for the twentieth century. ANSI
  392. declarations are widely supported now.. Don't include system
  393. headers, only include zebra.h. Use POSIX types (the
  394. alternative is to define u_int64_t in a portable way - rest
  395. of Quagga needs same cleanup).
  396. Make endian-conditional code be compiler conditional rather
  397. than preprocessor conditional, so that breakage gets noticed
  398. quicker.
  399. * md5.h: POSIX types. Get rid of the odd __P() non-ANSI capable
  400. compiler compatibility hack.
  401. * if.c: (connected_free) use MTYPE for connected label.
  402. * memtypes.c: Add MTYPE_CONNECTED_LABEL
  403. * memtypes.h: Update auto-built file.
  404. 2005-10-26 Paul Jakma <paul.jakma@sun.com>
  405. * (general) Cleanup a some calls to XFREE,strdup, etc. to use
  406. the memory.h macros.
  407. * memtypes.c: Add MTYPE_IF_RMAP_NAME, MTYPE_PQUEUE,
  408. MTYPE_PQUEUE_DATA and MTYPE_HOST.
  409. * memtypes.h: update auto-built file.
  410. * if_rmap.c: Use MTYPE_IF_RMAP_NAME.
  411. * pqueue.c: Use the two MTYPE_PQUEUE mtypes for allocations.
  412. * command.c: Use MTYPE_HOST, MTYPE_STRVEC. Some other fixups,
  413. including fixing some likely leaks in config_write_file.
  414. * vty.c: memory macro usage fixes.
  415. (vty_read_config) fix leak where relative config file is
  416. specified.
  417. 2005-10-20 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  418. * sockopt.c: (setsockopt_multicast_ipv4) If IP_ADD_MEMBERSHIP
  419. fails with errno equal to EADDRINUSE, then issue an info
  420. message and try IP_DROP_MEMBERSHIP followed by IP_ADD_MEMBERSHIP.
  421. 2005-10-20 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  422. * memory.c: (show_memory_vty) Omit zero statistics. Print separators
  423. only if some non-zero stats have been printed in between.
  424. (show_separator) New function to print a separator.
  425. (show_memory_all) Keep track of whether a separator is needed
  426. between the different memory statistics groups.
  427. 2005-10-18 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  428. * memtypes.h: Add MTYPE_OSPF_VERTEX_PARENT (to match memtypes.c).
  429. 2005-10-18 Paul Jakma <paul.jakma@sun.com>
  430. * memtypes.c: (memory_list_ospf) Add MTYPE_OSPF_VERTEX_PARENT.
  431. 2005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  432. * zebra.h: Declare new functions zebra_route_string() and
  433. zebra_route_char().
  434. * log.c: (zroute_lookup,zebra_route_string,zebra_route_char) New
  435. functions to map zebra route numbers to strings.
  436. 2005-09-29 Alain Ritoux <alain.ritoux@6wind.com>
  437. * smux.[ch]: allow to retreive global OID (identified by <0
  438. namelen).
  439. 2005-09-29 Paul Jakma <paul.jakma@sun.com>
  440. * zebra.h: Solaris capabilities requires priv.h to be included.
  441. * privs.{c,h}: Add support for Solaris Least-Privileges.
  442. privs.h: Reduce some of the abstract capabilities, which do
  443. not have rough equivalents on both systems. Rename the net
  444. related caps to _NET, as they should have been in first
  445. place.
  446. (zprivs_terminate) should take the zebra_privs_t as argument so
  447. that it can update change pointer.
  448. Add an additional privilege state, ZPRIVS_UNKNOWN.
  449. * privs.c: (various capability functions) Add
  450. Solaris privileges variants.
  451. (zprivs_state) Use privs.c specific generic types to
  452. represent various capability/privilege related types, so that
  453. each can be typedef'd as appropriate on each platform.
  454. (zprivs_null_state) static added, to hold the state the null
  455. method should report (should be raised by default, and
  456. LOWERED if zprivs_terminate has been called)
  457. (zprivs_state_null) Report back the zprivs_null_state.
  458. (cap_map) Make it able to map abstract capability to multiple
  459. system capabilities.
  460. (zcaps2sys) Map to abstract capabilities to multiple system
  461. privileges/capabilities.
  462. (zprivs_init) move capability related init to seperate
  463. function, zprivs_caps_init.
  464. (zprivs_terminate) ditto, moved to zprivs_caps_terminate.
  465. Set the change_state callback to the NULL state, so the
  466. user can continue to run and use the callbacks.
  467. 2005-09-29 Alain Ritoux <alain.ritoux@6wind.com>
  468. * filer.c: show protocol name in filter_show()
  469. * plist.c: show protocol name in vty_show_prefix_entry()
  470. * routemap.c: show protocol name in vty_show_route_map_entry()
  471. * vty.c: in vty_command(), show protocol name if command unknown
  472. 2005-09-28 Alain Ritoux <alain.ritoux@6wind.com>
  473. * md5-gnu.h: removed
  474. * md5.h: replaces md5-gnu.h
  475. * Makefile.am: use correct md5.h
  476. * md5.c: import from WIDE
  477. 2005-09-21 Paul Jakma <paul.jakma@sun.com>
  478. * memtypes.{c,h}: Add MTYPE_AS_SEG_DATA.
  479. 2005-09-19 Hasso Tepper <hasso at quagga.net>
  480. * str.[ch]: Add strndup() from glibc.
  481. 2005-09-05 Paul Jakma <paul.jakma@sun.com>
  482. * command.c: (install_element) be more robust. Eg, cmd_init
  483. need not have been called, some applications may use other
  484. library subsystems, which call install_element, without the
  485. application wanting commands and hence not calling cmd_init.
  486. 2005-08-22 Hugo Santos <hsantos@av.it.pt>
  487. * command.h: (enum node_type) Add BGP_IPV6M_NODE
  488. * command.c: (node_parent) Handle BGP_IPV6M_NODE node
  489. (config_exit, config_end) ditto
  490. * vty.c: (vty_end_config) Handle BGP_IPV6M_NODE node
  491. 2005-08-10 Greg Troxel <gdt@fnord.ir.bbn.com>
  492. * getopt.h: Don't declare getopt (rather than getopt_long), since
  493. quagga doesn't need it.
  494. * getopt.c (getopt): Don't define getopt.
  495. 2005-07-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  496. * prefix.c: (prefix_ipv4_new, prefix_ipv6_new): Call prefix_new
  497. to allocate the memory to make sure that all struct prefix pointers
  498. point to objects of the same length (avoids memory overruns
  499. on struct prefix assignments).
  500. (prefix_ipv4_free, prefix_ipv6_free): Simply call prefix_free.
  501. It is interesting to note that these functions are never actually
  502. called anywhere in the code. Instead prefix_free was already
  503. being called directly, despite the previous MTYPE incompatibility.
  504. 2005-07-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  505. * prefix.c: (ip_masklen) While loop should test that 'pnt' pointer is
  506. in range before dereferencing it.
  507. 2005-06-24 Pawel Worach <pawel.worach@gmail.com>
  508. * getopt.h: add further tests for full getopt declaration on
  509. various systems.
  510. 2005-06-18 Paul Jakma <paul.jakma@sun.com>
  511. * memtypes.h: update autobuilt file to match memtypes.c changes
  512. 2005-06-01 Paul Jakma <paul.jakma@sun.com>
  513. * memtypes.c: Add MTYPE_BGP_PROCESS_QUEUE and
  514. MTYPE_BGP_CLEAR_NODE_QUEUE
  515. 2005-05-24 Paul Jakma <paul@dishone.st>
  516. * memtypes.h: update this auto-built file. (maybe we should just
  517. remove it, is GNU awk a terrible dependency to have?)
  518. 2005-05-23 Paul Jakma <paul@dishone.st>
  519. * memtypes.awk: use character classes, which work correctly in
  520. all LC_COLLATE environments, unlike A-Z, which doesnt work in
  521. eg estonian collate order. Reported by Hasso.
  522. * routemap.c: (rmap_onmatch_goto) fix crash if 'continue' command
  523. is used, which does not supply an argv[0].
  524. this is a backport candidate /iff/ the trailing ; is removed
  525. from VTY_GET_INTEGER_RANGE
  526. * vty.h: fix the VTY_GET macros, do {..} while(0) so they have
  527. correct function like syntax in usage.
  528. * workqueue.h: Add a WQ_QUEUE_BLOCKED item_status return code,
  529. to allow a queue function to indicate the queue is not
  530. ready/blocked - rather than any problem with the item at hand.
  531. Add a notion of being able to 'plug' and 'unplug' a queue.
  532. Add helpers to plug/unplug a queue.
  533. Add a completion callback, to be called when a queue is emptied.
  534. * workqueue.c: (work_queue_new) remove useless list_free.
  535. (work_queue_schedule) new internal helper function to schedule
  536. queue, if appropriate.
  537. (work_queue_add) use work_queue_schedule
  538. (show_work_queues) Print 'P' if queue is plugged.
  539. (work_queue_plug) new API function, plug a queue - ie prevent it
  540. from 'drained' / processed / scheduled.
  541. (work_queue_unplug) unplug a queue, allowing it to be drained
  542. / scheduled / processed again.
  543. (work_queue_run) Add support for WQ_QUEUE_BLOCKED.
  544. Add comment for RETRY_NOW case.
  545. Make hysteris more aggresive in ramping up granularity, improves
  546. performance significantly.
  547. Add support for calling completion callback when queue is emptied,
  548. possibly useful for knowing when to unplug a queue.
  549. 2005-05-19 Paul Jakma <paul@dishone.st>
  550. * thread.c: (thread_cancel_event) the number of pending events
  551. cancelled is potentially useful information, dont throw it away,
  552. pass it back to the caller.
  553. * sockunion.c: (sockunion_getsockname) use MTYPE_SOCKUNION, not TMP
  554. (sockunion_getpeername) ditto
  555. * memtypes.c: (memory_list_bgp) add MTYPE_BGP_PEER_HOST
  556. 2005-05-15 Paul Jakma <paul@dishone.st>
  557. * getopt.h: It's not just __GNU_LIBRARY__ which defines
  558. getopt, eg __EXTENSIONS__ does too on SunOS. It still seems
  559. awfully fragile though.
  560. * getopt.c: include zebra.h after config.h, before including
  561. getopt.h so that things at least are consistent..
  562. * getopt1.c: ditto
  563. 2005-05-07 Yar Tikhiy <yar@comp.chem.msu.su>
  564. * sockopt.c: Add support for BSD style ifindex in ip_mreq.
  565. 2005-05-06 Paul Jakma <paul@dishone.st>
  566. * (general) extern and static'ification of functions in code and
  567. header.
  568. Cleanup any definitions with unspecified arguments.
  569. Add casts for callback assignments where the callback is defined,
  570. typically, as passing void *, but the function being assigned has
  571. some other pointer type defined as its argument, as gcc complains
  572. about casts from void * to X* via function arguments.
  573. Fix some old K&R style function argument definitions.
  574. Add noreturn gcc attribute to some functions, as appropriate.
  575. Add unused gcc attribute to some functions (eg ones meant to help
  576. while debugging)
  577. Add guard defines to headers which were missing them.
  578. * command.c: (install_node) add const qualifier, still doesnt shut
  579. up the warning though, because of the double pointer.
  580. (cmp_node) ditto
  581. * keychain.c: (key_str2time) Add GET_LONG_RANGE() macro, derived
  582. fromn vty.h ones to fix some of the (long) < 0 warnings.
  583. * thread.c: (various) use thread_empty
  584. (cpu_record_hash_key) should cast to uintptr_t, a stdint.h type
  585. * vty.h: Add VTY_GET_IPV4_ADDRESS and VTY_GET_IPV4_PREFIX so they
  586. removed from ospfd/ospf_vty.h
  587. * zebra.h: Move definition of ZEBRA_PORT to here, to remove
  588. dependence of lib on zebra/zserv.h
  589. 2005-05-06 Hasso Tepper <hasso at quagga.net>
  590. * sockunion.c: Fix warning message.
  591. 2005-05-03 Paul Jakma <paul@dishone.st>
  592. * stream.h: Add comment about the special zero-ing ability of
  593. stream_put.
  594. (stream_recvmsg, stream_write) should return ssize_t and size_t
  595. respectively. Should both be extern linkage.
  596. (stream_recvfrom) Stream aware wrapper around recvfrom, in style
  597. of stream_read_try.
  598. * stream.c: (stream_recvfrom) new function, wrapper around recvfrom.
  599. (stream_recvmsg, stream_write) ssize_t and size_t return values
  600. 2005-04-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  601. Add wall-clock timing statistics to 'show thread cpu' output.
  602. * thread.h: Define struct rusage_t to contain wall-clock time
  603. and cpu time. Change GETRUSAGE macro to collect both pieces
  604. of data. Make appropriate changes to struct cpu_thread_history
  605. to track CPU time and real time. Change proto for
  606. thread_consumed_time to return real and cpu time elapsed.
  607. And declare a new global variable 'struct timeval recent_time'.
  608. * thread.c (struct timeval recent_time): New global timestamp variable.
  609. (timeval_adjust): If timeout is negative, set to 0 (not 10
  610. microseconds). And remove upper bound of 1,000,000 seconds, since
  611. this does not seem to make any sense (and it breaks
  612. funcname_thread_add_timer_timeval).
  613. (timeval_cmp): Should return long, not int.
  614. (vty_out_cpu_thread_history): Show CPU time and real time.
  615. (cpu_record_hash_print): Calculate totals for CPU and real time.
  616. (cpu_record_print): Change 'show thread cpu' title to show CPU and
  617. real time.
  618. (thread_timer_remain_second): Put current time in global recent_time.
  619. (funcname_thread_add_timer_timeval): Fix assert. Replace 2-case
  620. switch assignment with a ternary expression. Use global recent_time
  621. variable. Fix use of timeval_adjust (previously, the value was not
  622. actually being adjusted).
  623. (thread_cancel): Add missing "break" statement in case
  624. THREAD_BACKGROUND.
  625. (thread_timer_wait): Use global recent_time value instead of calling
  626. gettimeofday. And there's no need to check for negative timeouts,
  627. since timeval_subtract already sets these to zero.
  628. (thread_timer_process): Timers are sorted, so bail out once we
  629. encounter a timer that has not yet popped. And remove some
  630. extraneous asserts.
  631. (thread_fetch): Do not process foreground timers before calling
  632. select. Instead, add them to the ready list just after the select.
  633. Also, no need to maintain a count of the number of ready threads,
  634. since we don't care how many there are, just whether there's
  635. one at the head of the ready list (which is easily checked).
  636. Stick current time in global variable recent_time to reduce
  637. the number of calls to gettimeofday. Tighten logic for
  638. calculating the select timeout.
  639. (thread_consumed_time): Now returns real time and puts the elapsed
  640. cpu time in an additional argument.
  641. (thread_should_yield): Use real (wall-clock) time to decide whether
  642. to yield.
  643. (thread_call): Maintain CPU and real time statistics.
  644. * vty.c (vty_command): For slow commands, show real and cpu time.
  645. 2005-04-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  646. * workqueue.c (show_work_queues): Remove unused gettimeofday call.
  647. 2005-04-27 Paul Jakma <paul.jakma@sun.com>
  648. * workqueue.h: (struct work_queue_item) change retry_count to ran,
  649. its a count of number item has been run.
  650. * workqueue.c: (show_work_queues) Fix formating of slightly
  651. bugfix: fix SIGFPE if wq->runs is 0.
  652. (work_queue_run) retry logic was slightly wrong.
  653. cycles.best is 0 initialy, granularity is 1, so update best
  654. if cycles >= granularity, not just >.
  655. * memory.h: memtypes is built source, default includes points to
  656. top_builddir, so we should refer to lib/memtypes.h
  657. 2005-04-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  658. * buffer.c (buffer_write): Comment out call to buffer_flush_available.
  659. This should speed up buffering at the expense of a possible increase
  660. in latency in flushing the data if inside a long-running thread.
  661. 2005-04-25 Paul Jakma <paul.jakma@sun.com>
  662. * workqueue.{c,h}: Helper API for setting up and running queues via
  663. background threads.
  664. * command.c: install the 'show workqueues' command
  665. * memtypes.c: Add work queue mtypes, and a rib-queue type for
  666. a zebra rib work queue.
  667. * memtypes.h: Updated to match memtypes.c
  668. * Makefile.am: Refer to source files via srcdir variable, fix
  669. out-of-tree build breakage.
  670. Add new workqueue files to build.
  671. * memory.c: Make the string field much wider
  672. * memtypes.c: Correct the prefix list str/entry strings
  673. * thread.c: Kill unused TIMER_NO_SORT bits
  674. 2005-04-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  675. * thread.h: Fix type for struct thread_master add_type: should be
  676. unsigned char. Also, add some documentation of thread_add_background
  677. args. And remove extraneous declaration of
  678. show_thread_work_queues_cmd.
  679. 2005-04-22 Paul Jakma <paul.jakma@sun.com>
  680. * memory.h: Move include of memtypes.h to after the definition of
  681. struct memory_list, gcc 4.0 doesn't like arrays of incomplete
  682. types.
  683. * thread.h: Add background thread type and thread_add_background
  684. macro and accompanying funcname_... function.
  685. export thread_should_yield, background threads can use it.
  686. Lower thread yield time to 10ms, 100ms is noticeable lag and
  687. a thread would only be /starting/ to finish sometime afterward.
  688. * thread.c: (general) Add background thread type and schedule
  689. nearly all thread types through the ready list for fairness.
  690. (timeval_adjust) static qualifier missing
  691. (vty_out_cpu_thread_history) add support for printout of
  692. background threads
  693. (show_thread_cpu) ditto.
  694. (thread_master_debug) add debug of background list
  695. (thread_master_create) fixup long line
  696. (thread_add_unuse) add asserts for required state.
  697. (thread_master_free) free background thread list
  698. (funcname_thread_add_timer_timeval) make generic, able to
  699. support arbitrary timer-like thread types.
  700. (funcname_thread_add_timer) pass thread type to .._add_timer_timeval
  701. (funcname_thread_add_timer_msec) ditto
  702. (funcname_thread_add_background) Add a background thread, with an
  703. optional millisecond delay factor, using .._add_timer_timeval.
  704. (thread_cancel) Add background thread type.
  705. Move the thread_list_delete common to all cases to bottom of
  706. function, after the switch statement..
  707. (thread_cancel_event) indent
  708. (thread_timer_wait) Static qualifier, and make it able to cope
  709. with arbitrary timer-like thread lists, so its of use to
  710. background threads too.
  711. (thread_process_fd) static qualifier. Again, make it take a list
  712. reference rather than thread_master. Fix indentation.
  713. (thread_timer_process) Check for ready timer-like threads in the
  714. given list and move them on to the ready list - code originally
  715. embedded in thread_fetch.
  716. (thread_fetch) Schedule all threads, other than events, through
  717. the ready list, to ensure fairness. Timer readying code moved to
  718. thread_timer_process so it can be reused for background threads.
  719. Remove the unneeded quagga_sigevent_process, as pointed out by
  720. John Lin <john.ch.lin@gmail.com>.
  721. (thread_should_yield) make this available.
  722. 2005-04-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  723. * thread.h (thread_consumed_time): Declare new function to calculate
  724. elapsed microseconds.
  725. * thread.c (thread_consumed_time): Must be global not static so we
  726. can call it from lib/vty.c:vty_command.
  727. (thread_should_yield): Surround with `#if 0' to make clear that this
  728. function is not currently being used anywhere.
  729. (thread_call): If CONSUMED_TIME_CHECK is defined, print a CPU HOG
  730. warning message if the thread takes more than CONSUMED_TIME_CHECK
  731. microseconds.
  732. * vty.c (vty_command): If CONSUMED_TIME_CHECK is defined, print a CPU
  733. HOG warning message if the command takes more than CONSUMED_TIME_CHECK
  734. microseconds.
  735. 2005-04-16 Paul Jakma <paul@dishone.st>
  736. * memtypes.c: the comment about use of comments in the comments
  737. headers was causing comment within comment warnings from compiler
  738. * memtypes.awk: Add extensive comments on the file format for
  739. memtypes.c.
  740. tighten the pattern for the MTYPE matching action (suggestion from
  741. Andrew) and tighten which field we try the match on.
  742. 2005-04-15 Paul Jakma <paul@dishone.st>
  743. * memtypes.c: The new, unified location for memory type definitions.
  744. The memtype enum and declarations for memory_lists are built from
  745. this automatically and put into memtypes.h.
  746. * memtypes.awk: New script to generate memtypes.h from memtypes.c
  747. * memory.h: Finally, the enum can banished!
  748. * memory.c: Finally, the seperate mtype memory_list definitions can
  749. be banished!
  750. (log_memstats) Increase width of fields
  751. (show_memory_zebra_cmd) display zebra specific memory types.
  752. Increase width of fields.
  753. * Makefile.am: Add memtypes.{c,h}, add BUILT_SOURCES for memtypes.h
  754. Add a rule to build memtypes.h using memtypes.awk.
  755. Add memtypes.awk to EXTRA_DIST.
  756. memtypes.awk is gawk dependent, use the GAWK automake var.
  757. * memtypes.h: New file, auto-generated, checked in for convenience.
  758. 2005-04-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  759. * zclient.h (struct zclient): Add two fields to support non-blocking
  760. I/O: struct buffer *wb, and struct thread *t_write.
  761. (zclient_free): Remove function.
  762. (zebra_redistribute_send): Change 2nd arg from socket fd to
  763. struct zclient * (needed to support non-blocking I/O and buffering).
  764. (zclient_send_message): New function to send an arbitrary
  765. message with non-blocking I/O.
  766. * zclient.c (zclient_new): Create write buffer.
  767. (zclient_free): Remove unused function.
  768. (zclient_stop): Must cancel new t_write thread. Also, reset
  769. all buffers: ibuf, obuf, and wb.
  770. (zclient_failed): New helper function for typical error handling.
  771. (zclient_flush_data): New thread to flush queued data.
  772. (zclient_send_message): New function to send the message in
  773. zclient->obuf to zebra using non-blocking I/O and buffering.
  774. (zebra_message_send, zapi_ipv4_route, zapi_ipv6_route): Use
  775. new zclient_send_message function instead of calling writen.
  776. (zclient_start): Set socket non-blocking. Also, change 2nd arg
  777. to zebra_redistribute_send from zclient->sock to zclient.
  778. (zebra_redistribute_send): Change 2nd arg to struct zclient *.
  779. Can now use zclient->obuf to assemble the message instead of
  780. allocating a temporary stream. And call zclient_send_message to
  781. send the message instead of writen.
  782. (zclient_read): Convert to support non-blocking I/O by using
  783. stream_read_try instead of deprecated stream_read.
  784. (zclient_redistribute): Change 2nd arg to zebra_redistribute_send
  785. from zclient->sock to zclient.
  786. 2005-04-09 Jeroen Simonetti <jeroens@office.netland.nl>
  787. * routemap.c: Show description in "show route-map" output.
  788. 2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  789. * sigevent.c: On GNU_LINUX, check whether __USE_GNU is already defined.
  790. 2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  791. * vty.c: (vty_log_fixed) Use casts to (void *) to try to eliminate
  792. compiler warnings when assigning a (const char *) value to
  793. struct iovec iov_base.
  794. 2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  795. * zebra.h: If GNU_LINUX is defined, then define _GNU_SOURCE. This
  796. fixes a problem where we were not getting the declaration of strnlen
  797. in <string.h>.
  798. 2005-04-08 Hasso Tepper <hasso at quagga.net>
  799. * routemap.[ch]: Added "description ..." command.
  800. 2005-04-08 Hasso Tepper <hasso at quagga.net>
  801. * prefix.[hc]: Pass argument to the inet6_ntoa by value making it more
  802. inet_ntoa alike.
  803. 2005-04-07 Paul Jakma <paul.jakma@sun.com>
  804. * linklist.h: Add usage comments.
  805. Rename getdata macro to listgetdata.
  806. Rename nextnode to listnextnode and fix its odd behaviour to be
  807. less dangerous.
  808. Make listgetdata macro assert node is not null, NULL list entries
  809. should be bug condition.
  810. ALL_LIST_ELEMENTS, new macro, forward-referencing macro for use
  811. with for loop, Suggested by Jim Carlson of Sun.
  812. Add ALL_LIST_ELEMENTS_RO for cases which obviously do not need the
  813. "safety" of previous macro.
  814. LISTNODE_ADD and DELETE macros renamed to ATTACH, DETACH, to
  815. distinguish from the similarly named functions, and reflect their
  816. effect better.
  817. Add a QUAGGA_NO_DEPRECATED_INTERFACES define guarded section
  818. with the old defines which were modified above,
  819. for backwards compatibility - guarded to prevent Quagga using it..
  820. * linklist.c: fix up for linklist.h changes.
  821. * *.c: fix up for new list loop macro, try audit other loop
  822. usage at same time, to some degree.
  823. 2004-04-05 Hasso Tepper <hasso at quagga.net>
  824. * lib/prefix.[hc]: inet6_ntoa utility function copied from
  825. ripngd/ripngd.c (inet6_ntop).
  826. 2004-04-05 Paul Jakma <paul@dishone.st>
  827. * vty.c: Improve logging of failures to open vty socket(s).
  828. See bugid #163.
  829. 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  830. * if.h: Fix comments to reflect that if_lookup_by_name and
  831. if_get_by_name now require the argument strings to be NUL-terminated.
  832. * if.c: (if_lookup_by_name) Compare using strcmp.
  833. (if_get_by_name) Pass strlen(ifname) as 2nd arg to if_create.
  834. 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  835. * if.c: (if_nametoindex) The man page is rather vague, but it seems
  836. like the argument to if_nametoindex has an implicit maximum length
  837. of IFNAMSIZ characters.
  838. 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  839. * if.h: (if_lookup_by_name_len, if_get_by_name_len) New functions.
  840. * if.c: (if_lookup_by_name_len, if_get_by_name_len) New functions.
  841. (if_get_by_name) Tighten up code.
  842. (interface) Use new function if_get_by_name_len.
  843. * zclient.c: (zebra_interface_add_read) Use new if_get_by_name_len
  844. function.
  845. (zebra_interface_state_read) Use new if_lookup_by_name_len function.
  846. 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  847. * str.c: Replace strlcpy and strlcat with actual working versions
  848. copied from rsync-2.6.2/lib/compat.c.
  849. 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  850. * if.h: Remove define for IFINDEX_INTERNBASE and add define
  851. IFINDEX_INTERNAL 0, since all internal (i.e. non-kernel) pseudo-
  852. interfaces should have ifindex set to 0.
  853. (if_new) Remove function.
  854. (if_delete_retain) New function to delete an interface without
  855. removing from iflist and freeing the structure.
  856. (ifname2ifindex) New function.
  857. * if.c: (if_new) Remove function (absorb into if_create).
  858. (if_create) Replace function if_new with call to calloc.
  859. Set ifp->ifindex to IFINDEX_INTERNAL. Fix off-by-one error
  860. in assert to check length of interface name. Add error message
  861. if interface with this name already exists.
  862. (if_delete_retain) New function to delete an interface without
  863. removing from iflist and freeing the structure.
  864. (if_delete) Implement with help of if_delete_retain.
  865. (ifindex2ifname) Reimplement using if_lookup_by_index.
  866. (ifname2ifindex) New function to complement ifindex2ifname.
  867. (interface) The interface command should check the name length
  868. and fail with a warning message if it is too long.
  869. (no_interface) Fix spelling in warning message.
  870. (if_nametoindex) Reimplement using if_lookup_by_name.
  871. (if_indextoname, ifaddr_ipv4_lookup) Reimplement using
  872. if_lookup_by_index.
  873. 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  874. * zebra.h: Should include str.h to pick up missing functions.
  875. * str.h: Declare strnlen if needed.
  876. * str.c: Do not include str.h since zebra.h now includes it.
  877. (strnlen) New function.
  878. 2005-03-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  879. * zebra.h: Must check whether __attribute__ should be defined before
  880. including zassert.h.
  881. 2005-03-14 Paul Jakma <paul.jakma@sun.com>
  882. * command.c: (sort_node) use vector_max instead of referencing
  883. (struct vector *)->max directly. Test that vector_max is > 0
  884. before using it to calculate an index.
  885. Fixup vector loop to make main body conditional on vector slot
  886. not being empty.
  887. (cmd_cmdsize) Fixup vector loop to make main body conditional on
  888. vector slot not being empty.
  889. (cmd_filter_by_completion) ditto
  890. (cmd_filter_by_string) ditto
  891. (is_cmd_ambiguous) ditto
  892. (cmd_describe_command_real) Change index integers to unsigned.
  893. Test that vector_max is > 0 before using it to calculate an index.
  894. Return immediately with CMD_ERR_NO_MATCH if vline has no
  895. active slots.
  896. Fixup vector loop to make main body conditional on vector slot
  897. not being empty.
  898. (cmd_complete_command_real) ditto.
  899. (cmd_execute_command_strict) Fixup vector loop to be conditional
  900. on non-null slot.
  901. (various) Fix indentation and other whitespace.
  902. vector.h: Rename to (struct vector).max to slightly less confusing
  903. active, for the number of active slots, distinct from allocated
  904. or active-and-not-empty. Rename vector_max to vector_active
  905. for same reason.
  906. 2005-03-09 Paul Jakma <paul.jakma@sun.com>
  907. * command.c: Undo commit of sign warning fix and hidden command
  908. in list_cmd. Sign warning is more subtle. list_cmd on its own
  909. will be committed after.
  910. * command.c: (config_list_cmd) Don't list hidden or deprecated
  911. commands, hiding these from tab completion is still to be done.
  912. 2005-03-08 Paul Jakma <paul.jakma@sun.com>
  913. * command.c: (banner_motd_file_cmd) use XSTRDUP/XFREE.
  914. (no_banner_motd_cmd) use XFREE.
  915. (cmd_describe_command_real) sign compile warning fix
  916. (cmd_complete_command_real) ditto.
  917. (config_list_cmd) Don't list hidden or deprecated commands,
  918. hiding these from tab completion is still to be done.
  919. * command.h: cmd attr enum should start at 1.
  920. * vty.c: (vty_hello) suggestions from Andrew, read by line and
  921. stub out trailling non-printable characters on each line thus
  922. allowing us to specify VTY_NEWLINE to vty_out.
  923. 2005-03-08 Jeroen Massar <jeroen@unfix.org>
  924. * vty.c: (vty_hello) display motd file, if set
  925. * command.h: add char *motdfile to struct host
  926. * command.c: (config_write_host) write out motdfile config
  927. (banner_motd_file_cmd) new command, allow motd to be read from
  928. file.
  929. (no_banner_motd_cmd) free motdfile string, if needs be.
  930. (cmd_init) init (struct host).motdfile. Add new motd file
  931. commands.
  932. 2005-03-07 Michael Sandee <voidptr@voidptr.sboost.org>
  933. * command.c: host.name might be NULL.
  934. * vty.c: Fix fd leak.
  935. 2005-02-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  936. * stream.c: (stream_read_try) Log a warning message if a fatal
  937. I/O error occurs.
  938. (stream_fifo_new) Fix prototype.
  939. * stream.h: Fix prototype for stream_fifo_new (need void arg).
  940. 2005-02-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  941. * {vty.h,vty.c}: Remove vty_finish (duplicate of vty_reset).
  942. 2005-02-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  943. * buffer.h: Make the struct buffer and struct buffer_data structures
  944. private by moving them inside buffer.c. Add comments for all
  945. functions. Rename buffer_write as buffer_put (to be more consistent
  946. with the buffer_putc and buffer_putstr functions). Declare a new
  947. buffer_write function that is used to write data to a file descriptor
  948. and/or add it to the buffer queue. Remove unused function
  949. buffer_flush_vty_all. Create a new enum typedef buffer_status_t
  950. to be used as the return code for all buffer_flush* functions
  951. and buffer_write.
  952. * buffer.c: The struct buffer and struct buffer_data declarations
  953. are now private to this file. In conjunction with that, remove
  954. some unnecessary fields: struct buffer (alloc, unused_head,
  955. unused_tail, length), struct buffer_data (prev).
  956. (buffer_data_new) Removed: functionality incorporated into buffer_add.
  957. (buffer_data_free) Removed: use a macro BUFFER_DATA_FREE instead.
  958. (buffer_new) Use calloc instead of malloc + memset(zero).
  959. Supply an appropriate default size if the specified size is 0.
  960. (buffer_free) Eliminate code duplication by calling buffer_reset to
  961. free the contents of the buffer (and remove unused code related
  962. to unused_head).
  963. (buffer_empty,buffer_putc,buffer_putstr) Aesthetic change (make more
  964. compact).
  965. (buffer_reset) Use macro BUFFER_DATA_FREE. No need to set
  966. alloc and length to 0 (these fields have been removed).
  967. (buffer_add) Fix scope to be static. Call XMALLOC directly instead
  968. of calling removed buffer_data_new function. Simplify the logic
  969. (since it's now a singly-linked list instead of doubly-linked).
  970. (buffer_write) Renamed to buffer_put. Change to void, since return
  971. code of 1 was meaningless. No need to adjust length field, since
  972. it has been removed.
  973. (buffer_putw,buffer_flush,buffer_flush_vty_all,buffer_flush_vty)
  974. Remove unused functions.
  975. (buffer_flush_all) Rewrite using buffer_flush_available to eliminate
  976. a possible failure mode if IOV_MAX is less than the number of buffers
  977. on the queue.
  978. (buffer_flush_window) Incorporate logic from buffer_flush_vty.
  979. Log an error message if there is a writev error.
  980. (buffer_flush_available) Be more paranoid: check for case where
  981. buffer is already empty. Use new ERRNO_IO_RETRY macro, and use
  982. new enum for return codes. Simplify deletion logic (since it's
  983. now a singly-linked list).
  984. (buffer_write) New function for use with non-blocking I/O.
  985. * vty.h: Replace the struct vty sb_buffer field with a fixed-size
  986. (5-character) sb_buf field and an sb_len field, since using
  987. a struct buffer was inappropriate for this task. Add some useful
  988. comments about telnet window size negotiation.
  989. * vty.c: Include <arpa/telnet.h> (no longer included by zebra.h).
  990. Remove VTY_OBUF_SIZE (instead use buffer_new default size).
  991. Make telnet_backward_char and telnet_space_char static const.
  992. (vty_out) Replace buffer_write with buffer_put.
  993. (vty_log_out) Check for I/O errors. If fatal, close the vty session.
  994. Consolidate 3 separate writes into a single write call.
  995. (vty_will_echo,vty_command,vty_next_line,vty_previous_line,
  996. vty_end_config,vty_describe_fold,vty_clear_buf,vty_serv_sock_addrinfo,
  997. vty_serv_sock_family,vty_serv_un,vty_use_backup_config,exec_timeout,
  998. vty_config_write,vty_save_cwd) Fix scope to static.
  999. (vty_new) Let buffer_new use its default buffer size.
  1000. (vty_write) Fix signature: 2nd arg should be const char *.
  1001. Replaced buffer_write with buffer_put.
  1002. (vty_telnet_option) Fix minor bug (window height or width greater than
  1003. 255 was broken). Use sb_buf and sb_len instead of removed sb_buffer
  1004. (which was being used improperly).
  1005. (vty_read) On error, use ERRNO_IO_RETRY to decide whether it's fatal.
  1006. If the error is fatal, call buffer_reset so vty_close does not attempt
  1007. to flush the data. Use new sb_buf and sb_len instead of sb_buffer
  1008. to store the SB negotiation string.
  1009. (vty_flush) When vty->lines is 0, call buffer_flush_available instead
  1010. of buffer_flush_window. Look at the return code from buffer_flush
  1011. to detect I/O errors (and in that case, log an error message and
  1012. close the vty).
  1013. (vty_create) Fix scope to static. Initialize sb_len to 0 instead
  1014. of creating sb_buffer.
  1015. (vty_accept) Set socket nonblocking.
  1016. (vtysh_accept) Use new set_nonblocking function instead of calling
  1017. fcntl directly.
  1018. (vtysh_flush) New function called from vtysh_read (after command
  1019. execution) and from vtysh_write. This flushes the buffer
  1020. and reacts appropriately to the return code (by closing the vty
  1021. or scheduling further flushes).
  1022. (vtysh_read) Check whether error is fatal using ERRNO_IO_RETRY.
  1023. If not, just try again later. Otherwise, call buffer_reset before
  1024. calling vty_close (to avoid trying to flush the buffer in vty_close).
  1025. Fix logic to allow case where a command does not arrive atomically
  1026. in a single read call by checking for the terminating NUL char.
  1027. (vtysh_write) Use new vtysh_flush helper function.
  1028. (vty_close) No need to call buffer_empty, just call buffer_flush_all
  1029. in any case (it will check whether the buffer is empty).
  1030. Do not free sb_buffer (since it has been removed).
  1031. (vty_log_fixed) Use writev instead of write.
  1032. * zebra.h: Do not include <arpa/telnet.h>, since this is used only
  1033. by lib/vty.c.
  1034. 2005-02-21 Vincenzo Eramo <eramo at infocom.ing.uniroma1.it>
  1035. * pqueue.[ch]: Introduce "update" function to meet ospf spf needs. It
  1036. will allow to update node when:
  1037. i) a node is inserted into the priority queue;
  1038. ii) a node position is modified in the priority queue;
  1039. * pqueue.h: Export trickle_down() function.
  1040. 2005-02-19 Paul Jakma <paul.jakma@sun.com>
  1041. * stream.c: (stream_new) fix dumb mistake.
  1042. 2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1043. * stream.c: (stream_read_try) Use new ERRNO_IO_RETRY macro.
  1044. 2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1045. * network.h: Define a new ERRNO_IO_RETRY macro to test whether an I/O
  1046. operation should be retried. This eliminates the need to duplicate
  1047. the same logic testing for EAGAIN or EINTR in multiple places.
  1048. 2005-02-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1049. * stream.h: Declare new function stream_read_try suitable for use
  1050. with non-blocking file descriptors. Indicate that stream_read
  1051. and stream_read_unblock are deprecated.
  1052. * stream.c: (stream_read_try) New function for use with non-blocking
  1053. I/O.
  1054. (stream_recvmsg) Should return -1 if the stream is too small to
  1055. contain the data.
  1056. 2005-02-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1057. * network.c: (set_nonblocking) Should check return code from
  1058. fcntl(F_GETFL).
  1059. 2005-02-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1060. * network.h: Declare new function set_nonblocking. Indicate that
  1061. readn and writen are deprecated.
  1062. * network.c: (set_nonblocking) New function to make a file descriptor
  1063. non-blocking, since it seems silly to have fcntl calls sprinkled
  1064. throughout the code.
  1065. 2005-02-14 Paul Jakma <paul.jakma@sun.com>
  1066. * stream.h: Unsigned long updated to size_t
  1067. * stream.c: ditto
  1068. * stream.h: Add stream_copy, stream_dup, stream_recvmsg.
  1069. Add comment describing struct stream abstraction, and various
  1070. other comments.
  1071. Deprecate several unsafe/ambigious macros.
  1072. Add STREAM_WRITEABLE and STREAM_READABLE.
  1073. Add (stream_getl_from) for symmetry.
  1074. Update stream_forward_{endp,getp} to use size_t offset.
  1075. Make stream data a 0 length array, rather than a seperate malloc.
  1076. * stream.c: Add consistency checks. Update to follow stream.h
  1077. changes.
  1078. (stream_new) Alloc stream+data in one go.
  1079. (stream_copy) new function, copy a stream.
  1080. (stream_dup) new function, dup a stream.
  1081. (stream_recvmsg) new function, recvmsg data into a stream.
  1082. (stream_empty) no need to check getp == 0.
  1083. 2005-02-09 Paul Jakma <paul.jakma@sun.com>
  1084. * stream.h: Remove putp. Update reference to putp with endp.
  1085. Add stream_forward_endp, which daemons were doing manually.
  1086. Rename stream_forward to stream_forward_getp.
  1087. stream.c: Remove/update references to putp.
  1088. introduce stream_forward_endp.
  1089. 2005-02-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1090. * zebra.h: Change macro definitions SET_FLAG and UNSET_FLAG
  1091. to use compound assignment operators (aesthetic change).
  1092. 2005-02-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1093. * log.c: (zlog_signal,zlog_backtrace_sigsafe) Eliminate use of fileno()
  1094. since it is not async-signal-safe.
  1095. (_zlog_assert_failed) Rewrite crashlog logic more compactly.
  1096. (zlog_set_file,zlog_reset_file,zlog_rotate) Update logfile_fd
  1097. for use in signal handler.
  1098. 2005-02-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1099. * log.c: (syslog_sigsafe) Reduce scope of syslog_fd: it is accessed
  1100. inside this function only.
  1101. (open_crashlog) New function to open /var/tmp/quagga.<daemon>.crashlog
  1102. with flags O_WRONLY|O_CREAT|O_EXCL to save some crash info.
  1103. (zlog_signal,_zlog_assert_failed) Increase logging priority from
  1104. LOG_ERR to LOG_CRIT. If no file logging is configured, try to use
  1105. open_crashlog to create a crash logfile.
  1106. (zlog_backtrace_sigsafe) If a crashlog file descriptor is open,
  1107. dump a backtrace to that file.
  1108. 2005-02-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1109. * if.h: Declare if_flag_dump.
  1110. 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1111. * daemon.c: (daemon) Replace perror with zlog_err.
  1112. * vty.c: (vty_serv_un) Replace perror with zlog_err.
  1113. 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1114. * buffer.h: Fix comment on buffer_getstr to reflect that it now
  1115. uses XMALLOC.
  1116. * buffer.c: (buffer_getstr) Use XMALLOC(MTYPE_TMP) instead of malloc.
  1117. * filter.c: (access_list_remark,ipv6_access_list_remark) Use
  1118. argv_concat instead of buffer_getstr.
  1119. * if.c: (interface_desc) Use argv_concat instead of buffer_getstr.
  1120. * plist.c: (ip_prefix_list_description,ipv6_prefix_list_description)
  1121. Use argv_concat instead of buffer_getstr.
  1122. 2005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1123. * lib/buffer.h: Document behavior of buffer_getstr function.
  1124. * lib/buffer.c: (buffer_getstr) Fix bug: must handle case where
  1125. the string extends beyond the head struct buffer_data.
  1126. 2005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1127. * lib/command.h: Document behavior of argv_concat function.
  1128. * lib/command.c: (argv_concat) Calculate total string length first so
  1129. we can call malloc just once (instead of realloc'ing to add each
  1130. string element).
  1131. (do_echo,config_logmsg) Allow for possible NULL return value from
  1132. argv_concat.
  1133. 2005-01-23 Hasso Tepper <hasso at quagga.net>
  1134. * lib/command.[ch]: Make node_parent() function nonstatic. vtyh.c will
  1135. use it as well.
  1136. 2005-01-18 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1137. * log.h: Test for SA_SIGINFO to see whether zlog_signal takes final
  1138. two args (siginfo and program_counter).
  1139. * log.c: (hex_append) Include this function only if SA_SIGINFO or
  1140. HAVE_GLIBC_BACKTRACE is defined.
  1141. (zlog_signal) Final two args (siginfo and program_counter) now
  1142. depend on whether SA_SIGINFO is defined on this platform.
  1143. * sigevent.c: (program_counter) Do not include this function if
  1144. SA_SIGINFO is not defined on this platform.
  1145. (exit_handler,core_handler) Test for SA_SIGINFO to decide whether
  1146. 2nd & 3rd arguments are present and to decide how to invoke
  1147. zlog_signal.
  1148. (trap_default_signals) Test for SA_SIGINFO and invoke sigaction
  1149. appropriately.
  1150. 2005-01-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1151. * log.h: Change prototype for zlog_backtrace_sigsafe to take additional
  1152. program_counter argument.
  1153. * log.c: (zlog_backtrace_sigsafe) Add additional program_counter
  1154. argument. If it is non-NULL, use backtrace_symbols_fd to resolve
  1155. the address.
  1156. (zlog_signal) Call zlog_backtrace_sigsafe with additional
  1157. program_counter argument.
  1158. 2005-01-17 Hasso Tepper <hasso at quagga.net>
  1159. * command.[ch], vty.c: cmd_execute_command() function must not attempt
  1160. to walk up in the node tree if called from vtysh. Different daemons
  1161. might have commands with same syntax in different nodes (for example
  1162. "router-id x.x.x.x" commands in zebra/ospfd/ospf6d daemons).
  1163. 2005-01-14 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1164. * command.c (print_version): Do not bother even to examine host.name,
  1165. since it is always NULL when this function is called from main.
  1166. 2005-01-14 Greg Troxel <gdt@fnord.ir.bbn.com>
  1167. * command.c (print_version): Don't print host.name if it is NULL.
  1168. Fixes segfault on Solaris reported by Goetz von Escher <goetz@open.ch>
  1169. 2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1170. * sigevent.c: (trap_default_signals) Use the SA_SIGINFO flag to
  1171. pass additional siginfo_t and ucontext_t arguments to core_handler
  1172. and exit_handler.
  1173. (core_handler,exit_handler) Now invoked with 3 arguments (using
  1174. SA_SIGINFO). Pass additional info to zlog_signal.
  1175. (program_counter) New function to find program counter in ucontext_t,
  1176. needs to be enhanced to support more platforms (currently works only
  1177. on Linux/x86).
  1178. * log.h: Change the zlog_signal prototype to add new arguments
  1179. siginfo_t * and program_counter.
  1180. * log.c: (zlog_signal) Add new arguments siginfo and program_counter.
  1181. Include si_addr and program counter (if non-NULL) in message.
  1182. And remove #ifdef HAVE_GLIBC_BACKTRACE around hex_append, since
  1183. that is now used to render the si_addr and PC pointers.
  1184. 2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1185. * zebra.h: If not C99 and no va_copy macro available, fall back to
  1186. memcpy (solves a build problem on FreeBSD 4.x).
  1187. 2005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1188. * zebra.h: Define ZCMSG_FIRSTHDR appropriately based on whether
  1189. config.h indicates HAVE_BROKEN_CMSG_FIRSTHDR (as determined
  1190. by the configure test program).
  1191. * sockopt.c: (getsockopt_cmsg_data) Use ZCMSG_FIRSTHDR instead
  1192. of CMSG_FIRSTHDR.
  1193. 2005-01-02 Hasso Tepper <hasso at quagga.net>
  1194. * command.c: Revert int -> unsigned int fixes in
  1195. cmd_describe_command_real() and cmd_complete_command_real(). index can
  1196. be actually negative and it caused crash with "do<TAB>" in vty.
  1197. 2004-12-29 Greg Troxel <gdt@poblano.ir.bbn.com>
  1198. * sockopt.c (getsockopt_ipv4_ifindex): Document calling
  1199. convention. Beef up comments. Handle the case where the cmsghdr
  1200. has a zero controllen, or more specifically when the wanted option
  1201. is not present. This is needed for Solaris 8, and in general for
  1202. any platform for which configure finds a method and it can fail.
  1203. Mark some changes with XXX to be cleaned up post 0.98.
  1204. 2004-12-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1205. * sockopt.c: (setsockopt_ipv4_ifindex) Improve error message.
  1206. When neither IP_PKTINFO nor IP_RECVIF is defined, make return value
  1207. deterministic (-1).
  1208. 2004-12-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1209. * thread.c: (funcname_thread_add_timer_msec) Reduce overflow risk.
  1210. 2004-12-21 Paul Jakma <paul.jakma@sun.com>
  1211. * if.h: Add more 'non-generic' IFF_ flags.
  1212. * if.c: IFF_NOXMIT/IFF_VIRTUAL interfaces are 'loopback like'
  1213. * stream.c: Dont allocate streams with 0 sized data buffers
  1214. 2004-12-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1215. * command.c: (do_echo) Added new "echo" command, useful for
  1216. watchdog pinging to make sure the daemon is responsive.
  1217. 2004-12-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1218. * pid_output.c: (pid_output_lock) Eliminate static function, and just
  1219. use the #ifdef to decide which version of the function to include.
  1220. This eliminates a compilation problem with gcc4. And fix the
  1221. non-fcntl version so that it actually compiles. Exit with
  1222. status 1 instead of -1 on error.
  1223. 2004-12-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1224. * sigevent.c: (trap_default_signals) Ignore SIGPIPE instead of exiting.
  1225. 2004-12-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1226. * log.c: (zlog_signal,_zlog_assert_failed) Change logging level back to
  1227. LOG_ERR instead of LOG_EMERG.
  1228. 2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1229. * log.c: (hex_append) No need to include this function if
  1230. HAVE_GLIBC_BACKTRACE is not defined.
  1231. 2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1232. * prefix.c: (prefix_copy) Error message before abort should
  1233. have severity LOG_ERR, not LOG_INFO.
  1234. * memory.c: (mtype_log) Log level should be LOG_DEBUG, not LOG_INFO.
  1235. 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1236. * {smux.c,zclient.c}: Change level of debug messages to LOG_DEBUG.
  1237. 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1238. * command.c: (config_write_host) Note that "log trap" is deprecated
  1239. when writing out the config.
  1240. 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1241. * log.h: Replace struct zlog flags and maskpri fields with maxlvl
  1242. array to support individual logging levels for each destination.
  1243. Remove the 2nd argument to openzlog since the default logging config
  1244. should be standardized inside the library. Replaced the
  1245. zlog_set_flag and zlog_reset_flag functions with zlog_set_level.
  1246. And zlog_set_file now requires an additional log_level argument.
  1247. Declare zlog_proto_names for use inside command.c in the
  1248. "show logging" command. Added defines useful for command
  1249. construction.
  1250. * log.c: (vzlog) Decide where to send the message based on the
  1251. individual logging levels configured for each destination.
  1252. Remove support for ZLOG_STDERR since it was never actually used.
  1253. Support record-priority for terminal monitors.
  1254. (zlog_signal,zlog_backtrace_sigsafe) Support destination-specific
  1255. logging levels. Remove stderr support (was never used). Added
  1256. support for terminal monitor logging.
  1257. (_zlog_assert_failed) Increase message severity to LOG_EMERG.
  1258. (openzlog) Remove 2nd argument since default config should be
  1259. standardized in library. By default, terminal monitoring
  1260. is set to debug, and all other logging is disabled.
  1261. (zlog_set_flag,zlog_reset_flag) Removed.
  1262. (zlog_set_level) New function to replace zlog_set_flag and
  1263. zlog_reset_flag. Supports destination-specific logging levels.
  1264. (zlog_set_file,zlog_reset_file) Support file-specific logging level.
  1265. (zlog_rotate) Log an error message if fopen fails, and support
  1266. new file-specific logging level.
  1267. * command.h: Change DEFUN_CMD_FUNC_DECL and DEFUN_CMD_FUNC_TEXT so that
  1268. command functions will be static instead of global. Remove
  1269. declarations for config_exit and config_help. Define new macros
  1270. DEFUNSH_ATTR, DEFUNSH_HIDDEN, and DEFUNSH_DEPRECATED so we can
  1271. have deprecated commands in vtysh. Similarly, for completeness,
  1272. define macros ALIAS_SH, ALIAS_SH_HIDDEN, and ALIAS_SH_DEPRECATED.
  1273. Also, fix bug in ALIAS_ATTR macro (didn't matter because it
  1274. was never used).
  1275. * command.c: Make many functions static instead of global.
  1276. (facility_name,facility_match,level_match) New functions
  1277. to support enhanced destination-specific logging levels.
  1278. (config_write_host) Support new destination-specific logging levels.
  1279. (config_logmsg) Added new "logmsg" command to help test logging
  1280. system.
  1281. (show_logging) Added "show logging" command to show the current
  1282. configuration of the logging system.
  1283. (config_log_stdout_level) Support explicit stdout logging level.
  1284. (no_config_log_stdout) Now takes optional LEVEL arg.
  1285. (config_log_monitor,config_log_monitor_level,no_config_log_monitor)
  1286. New commands creating new "log monitor" commands to set terminal
  1287. monitoring log level.
  1288. (config_log_file_level) Support explicit file logging level.
  1289. (config_log_syslog_level) Support explicit syslog logging level.
  1290. (config_log_facility,no_config_log_facility) Implement new
  1291. "log facility" command.
  1292. (cmd_init) Add hooks for new commands: "show logging", "logmsg",
  1293. "log stdout <level>", "log monitor", "log monitor <level>",
  1294. "no log monitor", "log file <filename> <level>",
  1295. "no log file <filename> <level>", "log syslog <level>",
  1296. "log facility", and "no log facility".
  1297. * vty.h: Added a "level" argument to vty_log so it can support
  1298. "log record-priority". Declare new function vty_log_fixed for
  1299. use in signal handlers.
  1300. * vty.c: (vty_log,vty_log_out) Added a "level" argument to support
  1301. "log record-priority" for vty terminal monitors.
  1302. (vty_down_level) Use config_exit_cmd.func instead of calling
  1303. config_exit directly (since command functions will now be static
  1304. instead of global).
  1305. (vty_log_fixed) New function to send terminal monitor messages
  1306. from inside a signal handler.
  1307. 2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1308. * log.h: Document appropriate use of syslog logging priorities
  1309. inside quagga.
  1310. 2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1311. * command.h: Remove fields log_stdout and log_syslog from struct host,
  1312. since they are just trying to duplicate information in the
  1313. zlog_default structure. Note that this fixes a bug since those
  1314. fields were not registering any logging that was established
  1315. in the initial call to openzlog (this affects only the zebra and
  1316. ospf6d daemons). It is probably a bug to turn on any logging by
  1317. default in the call to openzlog.
  1318. * command.c: (config_write_host) Get logging info from zlog_default
  1319. instead of now-removed fields host.log_stdout and host.log_syslog.
  1320. (config_log_stdout,no_config_log_stdout) Do not set now-removed field
  1321. host.log_stdout, since this info is recorded in zlog_default.
  1322. (config_log_file) Use XSTRDUP (instead of strdup) to set host.logfile.
  1323. (config_log_syslog,config_log_syslog_facility,no_config_log_syslog)
  1324. Do not set now-removed field host.log_syslog, since this info is
  1325. recorded in zlog_default.
  1326. 2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1327. * version.h.in: Remove declaration for pid_output_lock, this function
  1328. is now static, not global.
  1329. * pid_output.c: (pid_output_lock) This function should be static, not
  1330. global. And remove "old umask" error message, since it was really
  1331. an unimportant debug message, not an error.
  1332. (pid_output) Need to declare static function pid_output_lock.
  1333. 2004-11-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1334. * log.h: Remove several unused fields from struct zlog. Add comments
  1335. for other fields, and add one new field syslog_options that is
  1336. used in the new syslog_sigsafe implementation.
  1337. * log.c: (syslog_sigsafe) New function to send syslog messages in
  1338. an async-signal safe way that can be used inside a signal handler.
  1339. (syslog_connect) New function to connect to syslog daemon inside a
  1340. signal handler. This function supports only systems where /dev/log
  1341. is a unix datagram socket (e.g. not Solaris).
  1342. (zlog_signal) Call syslog_sigsafe if syslog logging is enabled.
  1343. (zlog_backtrace_sigsafe) Call syslog_sigsafe if syslog logging is
  1344. enabled.
  1345. (openzlog) Save syslog_options for use in syslog_sigsafe.
  1346. (num_append) Fix bug: handle 0 properly.
  1347. (hex_append) New function to print a u_long in hex format.
  1348. 2004-11-28 Hasso Tepper <hasso at quagga.net>
  1349. * command.h: DEFUN_DEPRECATED passes attribute to DEFUN as well.
  1350. 2004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1351. * log.c, log.h, memory.c: Change function name from zlog_backtrace_safe
  1352. to the more self-explanatory zlog_backtrace_sigsafe.
  1353. 2004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1354. * debug.[ch]: Remove unused files.
  1355. * Makefile.am: Remove references to debug.c and debug.h
  1356. 2004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1357. * log.c: (zlog_backtrace) New function to log a backtrace.
  1358. (zlog_backtrace_safe) Log a backtrace in an async-signal-safe way.
  1359. Unfortunately, this function does not support syslog logging yet.
  1360. (zlog_signal) Move backtrace code into separate function
  1361. zlog_backtrace_safe.
  1362. (_zlog_assert_failed) Call zlog_backtrace before aborting.
  1363. * log.h: Declare new functions zlog_backtrace and zlog_backtrace_safe.
  1364. * memory.c: (zerror) Call zlog_backtrace before aborting.
  1365. 2004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1366. * Makefile.am: Need to add zassert.h to pkginclude_HEADERS.
  1367. 2004-11-25 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1368. * zebra.h: If not C99 and there's no va_copy macro and there is
  1369. a __va_copy macro, define va_copy as __va_copy.
  1370. 2004-11-25 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1371. * pid_output.c: (pid_output_lock) Fix 2 bugs: when locking, should
  1372. set l_whence to SEEK_SET, not SEEK_END. And after writing new
  1373. pid to file, must ftruncate to eliminate any extraneous bytes left
  1374. over from the last time a pid was written.
  1375. 2004-11-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1376. * zassert.h: New header file to declare a quagga-specific assert macro.
  1377. * log.c: (_zlog_assert_failed) New function called when assert fails
  1378. to log the error and abort.
  1379. * zebra.h: Include "zassert.h" instead of <assert.h>.
  1380. * regex.c: Include "zassert.h" instead of <assert.h>.
  1381. 2004-11-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1382. * sigevent.c: (signal_init) Set up some default signal handlers
  1383. so that processes will issue an error message before terminating
  1384. or dumping core.
  1385. (trap_default_signals) New function to set up signal handlers
  1386. for various signals that may kill the process.
  1387. (exit_handler) Call zlog_signal, then _exit.
  1388. (core_handler) Call zlog_signal, then abort.
  1389. * log.h: Declare new function zlog_signal.
  1390. * log.c: (zlog_signal) New function to log information about
  1391. a received signal before the process dies. Try to log a
  1392. backtrace also.
  1393. (quagga_signal_handler,signal_set) Should be static.
  1394. 2004-11-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1395. * log.c: (vzlog) Take a single va_list argument and use va_copy
  1396. as necessary for multiple traversals.
  1397. (zlog) Pass only one va_list to vzlog.
  1398. (zlog_*,plog_*) Use a macro for boilerplate code; pass only one
  1399. va_list to vzlog.
  1400. (zlog_set_file) Remove unused 2nd argument (flags).
  1401. (zlog_save_cwd,zlog_get_cwd,zlog_free_cwd) Remove unused functions.
  1402. * log.h: Remove ZLOG_*_INDEX defines (no longer used).
  1403. Remove unused 2nd argument from zlog_set_file prototype.
  1404. Fix prototype for zlog_rotate.
  1405. * command.c: (config_log_file) Remove unused 2nd arg to zlog_set_file.
  1406. * vty.c: (vty_out) Fix stdarg usage to perform multiple traversals
  1407. properly.
  1408. (vty_log) Must use va_copy for multiple traversals of va_list arg.
  1409. 2004-11-19 David Young <dyoung@pobox.com>
  1410. * log.c: (safe_strerror) New function: safe wrapper for strerror.
  1411. 2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1412. * sockopt.c: (setsockopt_so_recvbuf) Stop error message from being
  1413. printed every time.
  1414. 2004-11-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1415. * memory.h: Fix prototype for memory_init().
  1416. * memory.c: Declare many functions and data structures static instead
  1417. of global. Fix prototype for memory_init().
  1418. 2004-11-15 Greg Troxel <gdt@fnord.ir.bbn.com>
  1419. * sockopt.h: Avoid CMSG_ALIGN, and declare that sizes are without
  1420. alignment (users should use CMSG_SPACE).
  1421. * zebra.h: Rationalize CMSG_SPACE compatibility defines. Warn if
  1422. asumming 4-byte alignment, since this isn't safe.
  1423. 2004-11-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1424. * memory.c: (zerror) Use zlog_err instead of fprintf to stderr.
  1425. Instead of exiting, log currenty memory usage and then abort.
  1426. (log_memstats) New function to log memory statistics, called by
  1427. zerror.
  1428. (show_memory_all) Loop over new mlists array instead of calling
  1429. show_memory_vty separately for each memory_list.
  1430. 2004-11-08 Paul Jakma <paul@dishone.st>
  1431. * buffer.c: Add missing include of log.h.
  1432. (buffer_flush_available) written is compared against
  1433. mostly against unsigned types, only for the writev do we need
  1434. signed compare, so declare it as size_t and cast it to ssize_t
  1435. just for the error compare when we've called writev.
  1436. * buffer.h: Add comment that buffer data sizes really should be
  1437. size_t.
  1438. 2004-11-07 Paul Jakma <paul@dishone.st>
  1439. * version.h.in: add autoconf configure_input output var
  1440. 2004-11-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1441. * vty.h: Remove fields in struct vty that were related to VTY_CONTINUE
  1442. capabilities (that were used only in bgpd/bgp_route.c and are now
  1443. removed). Also remove some other fields that were not being
  1444. used at all.
  1445. * vty.c: (vty_execute) Do not test for obsolete status values VTY_START
  1446. and VTY_CONTINUE.
  1447. (vty_read) Remove calls to vty->output_func since that was part
  1448. of the VTY_CONTINUE infrastructure that has been removed.
  1449. (vty_flush) Remove code to support VTY_START and VTY_CONTINUE.
  1450. (vty_close) Remove code to cancel vty->t_output thread, since that
  1451. thread was never actually used.
  1452. 2004-11-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
  1453. * vty.c: Vtysh connections to daemons should use buffering.
  1454. (vty_out) Remove exception for vty_shell_serv, just use buffer_write.
  1455. (vty_new) Increase output buffer size to 4096 rounded up to a
  1456. multiple of pagesize.
  1457. (vtysh_read) After command has been executed and all output buffered,
  1458. call buffer_flush_available and schedule further writes if the
  1459. buffers are not yet empty.
  1460. (vtysh_write) New function to flush output to vtysh when the socket
  1461. is writeable.
  1462. (vty_event) Added new VTYSH_WRITE event for flushing buffers to vtysh
  1463. clients. Also, should save read thread in vty->t_read so the
  1464. thread can be cancelled in vty_close.
  1465. * buffer.h: In struct buffer_data, remove unused "parent" field.
  1466. Convert "unsigned char *data" to "unsigned char data[0]" to save
  1467. a malloc. Declare new function buffer_flush_available that works
  1468. with non-blocking sockets.
  1469. * buffer.c: (buffer_data_new) Use a single malloc now that data is
  1470. a variable-size array at end of structure.
  1471. (buffer_data_free) Just a single free now that data is part of the
  1472. structure.
  1473. (buffer_write) Simplify the logic to make behavior more transparent.
  1474. (buffer_flush) Decrease b->length as data is written out.
  1475. (buffer_flush_vty_all) Decrease b->length as buffers are freed.
  1476. (buffer_flush_vty) Decrease b->length as data is written out.
  1477. (buffer_flush_available) New function to flush non-blocking sockets.
  1478. 2004-11-01 Paul Jakma <paul@dishone.st>
  1479. * sockopt.c: (setsockopt_pktinfo) remove, its unused.
  1480. 2004-10-31 Paul Jakma <paul@dishone.st>
  1481. * vty.c: As per Andrew's suggestions..
  1482. (vty_serv_un) remove flags.
  1483. (vtysh_accept) close socket if we cant set NONBLOCK. Add flags.
  1484. * keychain.c: Convert some more strtoul users to VTY_GET_INTEGER.
  1485. * memory.h: Add MTYPE_THREAD_FUNCNAME and MTYPE_THREAD_STATS
  1486. * thread.c: Update stats and funcname alloc/free to use previous
  1487. specific memory type defines. Use XCALLOC and sizeof the type,
  1488. not the pointer.
  1489. * smux.c: fix int to size_t compile warnings
  1490. 2004-10-29 Paul Jakma <paul@dishone.st>
  1491. * vty.c: Move setting of sock to O_NONBLOCK from vty_serv_un
  1492. to vtysh_accept, where sock is the actual fd we wanted to set to
  1493. O_NONBLOCK, ie the /connected/ vtysh unix socket.
  1494. 2004-10-23 Hasso Tepper <hasso at quagga.net>
  1495. * zclient.c: Unbreak reading interface update message. Might fix
  1496. blocker bugzilla #109.
  1497. 2004-10-22 Paul Jakma <paul@dishone.st>
  1498. * sockopt.c: (getsockopt_ipv4_ifindex) no ifindex should be 0, not
  1499. -1.
  1500. (setsockopt_pktinfo) unexported
  1501. * sockopt.h: Cleanup SOCKOPT_CMSG defines a bit. Add a throwaway
  1502. define for SOPT_SIZE_CMSG_IFINDEX_IPV4 for systems which have
  1503. neither IP_RECVIF nor IP_PKTINFO (eg openbsd), thanks to Rivo
  1504. Nurges for highlighting problem and fix.
  1505. Fix elif that should be an else.
  1506. * command.h: Cleanup the defines a bit, add helper defines and
  1507. collapse all defines to use those. Add an attribute field to
  1508. cmd_element to support, eg hidden or deprecated commands, add
  1509. defun defines for such. All that's left to do is add logic
  1510. to command.c to check these attributes... ;)
  1511. * zebra.h: reserve ZEBRA_ROUTE_HSLS
  1512. 2004-10-19 Hasso Tepper <hasso at quagga.net>
  1513. * version.h.in: Define copyright string QUAGGA_COPYRIGHT.
  1514. * print_version.c: Remove. print_version () function moved to
  1515. command.[c|h].
  1516. * command.c: Use QUAGGA_COPYRIGHT.
  1517. * Makefile.am: Remove useless version.c and print_version.c files.
  1518. 2004-10-19 Andrew J. Schorr <aschorr@telemetry-investments.com>
  1519. * zclient.c: (zebra_interface_address_read) If the destination address
  1520. is encoded as all zeroes, load it as a NULL pointer.
  1521. * if.h: Add comment describing struct connected destination field
  1522. and indicating that it may be NULL. Define macros
  1523. CONNECTED_DEST_HOST and CONNECTED_POINTOPOINT_HOST to help
  1524. with PtP logic (distinguish between host and subnet addressing).
  1525. * if.c: (if_lookup_address) Fix PtP logic to handle subnet addressing
  1526. properly,
  1527. (connected_lookup_address) ditto.
  1528. (connected_add_by_prefix) Handle case where destination is NULL,
  1529. * prefix.[c|h]: New functions ipv4_network_addr and
  1530. ipv4_broadcast_addr.
  1531. 2004-10-13 Hasso Tepper <hasso at quagga.net>
  1532. * command.c: Make CMD_ERR_NOTHING_TODO nonfatal if reading
  1533. configuration from file. Fixes critical bugzilla #113.
  1534. * smux.c, smux.h: Remove all defaults to initialize smux connection to
  1535. snmpd by default even if not configured to do so. "smux peer OID
  1536. <password>" initializes now connection and "no smux peer" terminates
  1537. it.
  1538. 2004-10-13 Paul Jakma <paul@dishone.st>
  1539. * (global) more const'ification.
  1540. * sockunion.c: (sockunion_su2str) buffer should be sized
  1541. SU_ADDRSTRLEN.
  1542. (sockunion_log) do not return stack variables, strdup buf before
  1543. return.
  1544. * vty.h: Fix up the VTY_GET_INTEGER macros. Testing caller supplied
  1545. values against ULONG_MAX is daft, when caller probably has passed
  1546. a type that can not hold ULONG_MAX. use a temporary long instead.
  1547. Add VTY_GET_LONG, make VTY_GET_INTEGER_RANGE use it, make
  1548. VTY_GET_INTEGER a define for VTY_GET_INTEGER_RANGE.
  1549. 2004-10-11 Hasso Tepper <hasso at quagga.net>
  1550. * command.h: Sync DEFUNSH with other macros.
  1551. * sockunion.c, sockunion.h: More const strings.
  1552. 2004-10-11 Paul Jakma <paul@dishone.st>
  1553. * thread.c: (funcname_thread_add_timer)
  1554. (funcname_thread_add_timer_msec) Fix mistakes from last change.
  1555. Pointed out by Liu Xin in [quagga-dev 1609].
  1556. * if.h: mtu's should be unsigned.
  1557. * routemap.{c,h}: const char updates
  1558. * smux.{c,h}: ditto
  1559. 2004-10-10 Paul Jakma <paul@dishone.st>
  1560. * version.h.in: (pid_output*) add const qualifier.
  1561. * command.h: Change DEFUN func to take const char *[] rather
  1562. than char **, to begin process of fixing compile warnings in lib/.
  1563. Nearly all other changes in this commit follow from this change.
  1564. * buffer.{c,h}: (buffer_write) pointer-arithmetic is gccism, take
  1565. const void * and cast an automatic const char *p to it.
  1566. (buffer_putstr) add const
  1567. * command.c: (zencrypt) const qualifier
  1568. (cmd_execute_command_real) ditto
  1569. (cmd_execute_command_strict) ditto
  1570. (config_log_file) ditto.
  1571. Fix leak of getcwd() returned string.
  1572. * memory.{c,h}: Add MTYPE_DISTRIBUTE_IFNAME for struct dist ifname.
  1573. * distribute.{c,h}: Update with const qualifier.
  1574. (distribute_free) use MTYPE_DISTRIBUTE_IFNAME
  1575. (distribute_lookup) Cast to char *, note that it's ok.
  1576. (distribute_hash_alloc) use MTYPE_DISTRIBUTE_IFNAME.
  1577. (distribute_get) Cast to char *, note that it's ok.
  1578. * filter.c: Update with const qualifier.
  1579. * if.{c,h}: ditto.
  1580. * if_rmap.{c,h}: ditto.
  1581. (if_rmap_lookup) Cast to char *, note that it's ok.
  1582. (if_rmap_get) ditto.
  1583. * log.{c,h}: Update with const qualifier.
  1584. * plist.{c,h}: ditto.
  1585. * routemap.{c,h}: ditto.
  1586. * smux.{c,h}: ditto. Fix some signed/unsigned comparisons.
  1587. * sockopt.c: (getsockopt_cmsg_data) add return for error case.
  1588. * vty.c: Update with const qualifier.
  1589. 2004-10-08 Hasso Tepper <hasso at quagga.net>
  1590. * routemap.c, routemap.h: Make some string arguments const.
  1591. 2004-10-05 Paul Jakma <paul@dishone.st>
  1592. * version.h.in: print_version declaration is here, not in automake
  1593. generated version.h.
  1594. 2004-10-08 Hasso Tepper <hasso at quagga.net>
  1595. * command.c, command.h: Make argument of cmd_make_strvec function
  1596. const.
  1597. * command.c: Make hostname commands usable in vtysh again.
  1598. 2004-10-07 Hasso Tepper <hasso at quagga.net>
  1599. * command.c, pid_output.c, print_version.c, vty.c, vty.h: Make more
  1600. strings const.
  1601. 2004-10-05 Hasso Tepper <hasso at quagga.net>
  1602. * *.[c|h]: Make many strings cons and a lot of int -> unsigned int
  1603. changes to fix warnings.
  1604. 2004-10-05 Paul Jakma <paul@dishone.st>
  1605. * sockopt.{c,h}: add sockopt_iphdrincl_swab_{htosys,systoh},
  1606. functions to change byte order between system IP_HDRINCL order
  1607. and host order.
  1608. * thread.c: (funcname_thread_add_timer_timeval) new function, add
  1609. timer at specified timeval.
  1610. (funcname_thread_add_timer) use funcname_thread_add_timer_timeval.
  1611. (funcname_thread_add_timer_msec) ditto
  1612. 2004-10-04 Hasso Tepper <hasso at quagga.net>
  1613. * memory.c, memory.h: Make char * argument of strdup functions const.
  1614. * prefix.c, prefix.h: Make many arguments const. Reorder stuff in
  1615. header.
  1616. * log.h: Make log message const in struct message.
  1617. * log.c: Fix some indenting.
  1618. * network.c, network.h: Make second argument of writen() const.
  1619. 2004-10-03 Hasso Tepper <hasso at quagga.net>
  1620. * command.h: Introduce SERVICE_NODE for "service <...>" commands.
  1621. * command.c: Don't initialize commands that don't make sense if vtysh
  1622. is used.
  1623. * vty.c: Make VTY_NODE appear in vtysh.
  1624. 2004-10-03 James R. Leu <jleu at mindspring.com>
  1625. * zclient.c, zclient.h: zclient functions for router id handling.
  1626. * zebra.h: New message types for router id handling.
  1627. 2004-09-27 Paul Jakma <paul@dishone.st>
  1628. * zebra.h: Add WANT_OSPF_WRITE_FRAGMENT for ospfd
  1629. to try to fragment oversized packets. Enabled only for Linux.
  1630. Add HAVE_IP_HDRINCL_BSD_ORDER to define struct ip byte order,
  1631. to consolidate various ad-hoc platform defines for same thing.
  1632. 2004-09-26 Hasso Tepper <hasso at quagga.net>
  1633. * vty.c, sockopt.c: Fix compiler warnings.
  1634. 2004-09-23 Hasso Tepper <hasso at quagga.net>
  1635. * linklist.h: Remove list and listnode typedefs.
  1636. * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
  1637. 2004-09-17 Paul Jakma <paul@dishone.st>
  1638. * sockopt.c: Add missing bracket
  1639. 2004-09-17 Paul Jakma <paul@dishone.st>
  1640. * sockopt.{c,h}: Add setsockopt_so_recvbuf, for ripd and ripngd.
  1641. 2004-09-13 Paul Jakma <paul@dishone.st>
  1642. * command.c: Update the copyright string in the default motd.
  1643. 2004-08-31 David Wiggins <dwiggins@bbn.com>
  1644. * hash.c (hash_iterate): Save next pointer before calling
  1645. procedure, so that iteration works even if the called procedure
  1646. deletes the hash backet.
  1647. * linklist.h (listtail): new macro, not yet used.
  1648. 2004-08-27 Hasso Tepper <hasso at quagga.net>
  1649. * command.c: Install "terminal length" commands only if vty is used.
  1650. Vtysh will handle it itself.
  1651. 2004-08-26 Greg Troxel <gdt@fnord.ir.bbn.com>
  1652. * sockopt.h: Define method-independent macro for callers of
  1653. get_ifindex to use for cmsg length.
  1654. 2004-08-19 Paul Jakma <paul@dishone.st>
  1655. * zebra.h: add MAX and MIN defines (eg for ospf6d)
  1656. 2004-08-19 Paul Jakma <paul@dishone.st>
  1657. * sockopt.c: include sockopt.h
  1658. rename some of the _pktinfo_ functions to _ifindex, where that is
  1659. their purpose.
  1660. (getsockopt_ipv6_pktinfo_ifindex) renamed to
  1661. getsockopt_ipv6_ifindex.
  1662. (setsockopt_ipv4_pktinfo) renamed to setsockopt_ipv4_ifindex
  1663. (setsockopt_pktinfo) update with previous and add comment re
  1664. AF_INET portability.
  1665. (setsockopt_ifindex) generic ifindex function ala
  1666. setsockopt_pktinfo.
  1667. (getsockopt_ipv4_pktinfo_ifindex) renamed to
  1668. getsockopt_ipv4_ifindex.
  1669. (getsockopt_ipv4_ifindex) rejiggling to reduce repeated
  1670. ifdef/elses. pktinfo case forgot to set ifindex.
  1671. (getsockopt_pktinfo_ifindex) renamed to
  1672. getsockopt_ifindex. update some calls to renamed functions.
  1673. * sockopt.h: Update renamed exported functions
  1674. Rename the CMSG_SIZE macros to IFINDEX.
  1675. Guard IPv4 PKTINFO in a conditional define.
  1676. 2004-08-18 Paul Jakma <paul@dishone.st>
  1677. * vty.c: (vty_serv_un) set unix vty socket to nonblocking
  1678. to prevent inadvertent blocking of daemons by use of
  1679. vtysh. TODO: disentangle manual paging from the buffer_write
  1680. path so that unix vty can use this path too and be reliable.
  1681. 2004-07-23 Greg Troxel <gdt@poblano.ir.bbn.com>
  1682. * sockopt.c (getsockopt_ipv4_pktinfo_ifindex): Make this compile
  1683. on NetBSD, and add comments to make it less confusing. Change the
  1684. sense of the SUNOS_5 test to make parallel structure between the
  1685. variables and the code.
  1686. 2004-07-23 Paul Jakma <paul@dishone.st>
  1687. * sockopt.h: Add SOPT_SIZE_CMSG_PKTINFO{_IPV{4,6}} define, for
  1688. sizeof pktinfo as appropriate, to be used when allocating msg
  1689. buffers. export setsockopt_pktinfo() and
  1690. getsockopt_pktinfo_ifindex()
  1691. * sockopt.c: (setsockopt_pktinfo_ifindex) new function to portably
  1692. set received ifindex sock option.
  1693. (getsockopt_pktinfo_ifindex) portably retrieve ifindex.
  1694. (getsockopt_cmsg_data) retrieve indicated control info from
  1695. message header.
  1696. (getsockopt_ipv6_pktinfo_ifindex) ipv6 version of above.
  1697. (setsockopt_ipv4_pktinfo) v4 version
  1698. (setsockopt_pktinfo) the exported version
  1699. (getsockopt_ipv4_pktinfo_ifindex) v4 specific version
  1700. (getsockopt_pktinfo_ifindex) the exported version
  1701. 2004-07-14 Paul Jakma <paul@dishone.st>
  1702. * sigevent.c: (quagga_signal_handler) add a global caught flag, set
  1703. the flags to a constant rather increment to be kinder.
  1704. (quagga_sigevent_process) new function, to do core of what
  1705. quagga_signal_timer did. dont block signals at all as sig->caught
  1706. is volatile sig_atomic_t and should be safe to access from signal
  1707. and normal contexts. The signal blocking is unneeded paranoia, but
  1708. is left intact under an ifdef, should some platform require it.
  1709. Check global caught flag before iterating through array.
  1710. (quagga_signal_timer) nearly everything moved to
  1711. quagga_sigevent_process. Left in under ifdef, in case some
  1712. platform could use a regular timer check for signals.
  1713. * sigevent.h: quagga_sigevent_process declaration.
  1714. * thread.c: (thread_fetch) check for signals at beginning of
  1715. scheduler loop, check for signals if select returns EINTR.
  1716. 2004-07-13 Greg Troxel <gdt@poblano.ir.bbn.com>
  1717. * sigevent.c: Don't block SIGTRAP and SIGKILL. Blocking SIGTRAP
  1718. confuses gdb, at least on NetBSD 2.0_BETA, where the block
  1719. succeeds.
  1720. 2004-07-09 Paul Jakma <paul@dishone.st>
  1721. * Merge Kunihiro's 'show route-map' change and add
  1722. compatibility aliases for route-map continue
  1723. * jhash.{c,h}: New files. Bob Jenkins' public domain hashing
  1724. function, as implemented in linux kernel by David Miller.
  1725. 2004-07-09 Juris Kalnins <juris@mt.lv>
  1726. * if.c: (if_cmp_func) fix for interface names where name is same,
  1727. but one has no number, eg "devtyp" and "devtyp0".
  1728. 2004-06-30 Greg Troxel <gdt@poblano.ir.bbn.com>
  1729. * Makefile.am: Make libzebra shared.
  1730. 2004-06-21 Paul Jakma <paul@dishone.st>
  1731. * ChangeLog: fix my last update config.h -> zebra.h ;)
  1732. * zebra.h: Fix gcc check.
  1733. 2004-06-11 Sowmini Varadhan <sowmini.varadhan@sun.com>
  1734. * filter.c: (access_list_remark_cmd) buffer_putstr doesnt need cast
  1735. to u_char. (ipv6_access_list_remark_cmd) ditto.
  1736. if.c: ditto
  1737. * network.c: (readn/writen) pointer arg should be type u_char.
  1738. * plist.c: needs to include stream.h, not declare stream functions
  1739. internally.
  1740. (various) Add static qualifier to internal functions.
  1741. (prefix_list_type_str) extraneous breaks in switch statement.
  1742. (ip_prefix_list_description_cmd) buffer_putstr doesnt need cast
  1743. * stream.h: depends on plist.h and export stream_put_prefix
  1744. * vty.c: (vty_<telnet option build functions>) should use
  1745. unsigned char, telnet options are 0 -> 255.
  1746. * zclient.c: various u_char<->char type cleanups.
  1747. * zebra.h: Having to define CMSG_* can apply to more than just
  1748. BSDI_NRL.
  1749. 2004-06-09 Paul Jakma <paul@dishone.st>
  1750. * zebra.h: __attribute__ is a gcc'ism
  1751. 2004-06-04 Paul Jakma <paul@dishone.st>
  1752. * type mismatch fixes
  1753. 2004-05-18 Hasso Tepper <hasso@estpak.ee>
  1754. * pqueue.[c|h]: Added as part of ospf6d merge from Zebra repository.
  1755. 2004-05-08 Paul Jakma <paul@dishone.st>
  1756. * zclient.c (zapi_ipv4_route) Follow Sowmini's lead and describe
  1757. message format.
  1758. 2004-05-08 Sowmini Varadhan <sowmini.varadhan@sun.com>
  1759. * zclient.c: (zapi_ipv4_add) collapsed into zapi_ipv4_route
  1760. (zapi_ipv4_delete) ditto.
  1761. (zapi_ipv4_route) add/delete a route by way of cmd arg.
  1762. (zapi_ipv6_add) collapsed into zapi_ipv6_route.
  1763. (zapi_ipv6_delete) ditto.
  1764. (zapi_ipv6_route) add/delete a route by way of cmd arg.
  1765. (zebra_interface_address_delete_read) collapsed into
  1766. zebra_interface_address_read.
  1767. (zebra_interface_address_delete_read) ditto.
  1768. (zebra_interface_address_read) read address add/delete messages
  1769. by way of type argument. Describe command message format.
  1770. (zebra_interface_add_read) Unconditionally read new ifmtu6 field.
  1771. Describe command message format.
  1772. (zebra_interface_state_read) Unconditionally read new ifmtu6 field.
  1773. (zclient_redistribute_set) Collapsed into zclient_redistribute
  1774. (zclient_redistribute_unset) ditto
  1775. (zclient_redistribute) set/unset redistribution.
  1776. (zclient_redistribute_default_set) Collapsed into
  1777. zclient_redistribute_default.
  1778. (zclient_redistribute_default_unset) ditto.
  1779. (zclient_redistribute_default) Redistribute default set/unset.
  1780. * zclient.h: delete zapi_ipv{4,6}_add, zapi_ipv{4,6}_delete. Add
  1781. zapi_ipv{4,6}_route. delete zclient_redistribute_set/unset. Add
  1782. zclient_redistribute. Ditto for
  1783. zclient_redistribute_default_{set/unset}.
  1784. 2004-05-08 Sowmini Varadhan <sowmini.varadhan@sun.com>
  1785. * if.h: Add mtu6 field to struct interface, IPv6 MTU may differ
  1786. from IPv4, and Solaris treats the MTU's differently.
  1787. Add connected_add_by_prefix, for use by later patch.
  1788. * if.c: (connected_add_by_prefix) Add prefix to connected list.
  1789. (if_flag_dump) Solaris: Dump IFF_IPv4/6 flag
  1790. (if_dump) Dump mtu6 flag, for HAVE_IPV6.
  1791. * command.c: (sockunion_getsockname) use socklen_t for len.
  1792. (sockunion_getpeername) ditto.
  1793. 2004-04-21 Boris Kovalenko <boris@tagnet.ru>
  1794. * daemon.c: (daemon) fix check for error return from setsid
  1795. 2004-01-19 Paul Jakma <paul@dishone.st>
  1796. * sigevent.{c,h}: New files, implement event handled signals.
  1797. see signal_init() in sigevent.h.
  1798. 2003-12-23 Vincent Jardin <jardin@6wind.com>
  1799. * {command.c, memory.c, vty.c, zebra.h}: Add isisd support
  1800. 2003-12-22 Greg Troxel <gdt@fnord.ir.bbn.com>
  1801. * vty.c (vty_use_backup_config): Don't free filenames before using
  1802. them for unlink.
  1803. 2003-08-20 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
  1804. * command.c: Fix <cr> display problem for command line
  1805. description
  1806. 2003-05-24 Anil Madhavapeddy
  1807. * (sockunion.c): Incorrect bounds specified in sockunion_log()
  1808. 2003-05-08 Sergiy Vyshnevetskiy <serg @ vostok.net>
  1809. * vty.c: -A option
  1810. 2003-04-19 Hasso Tepper <hasso@estpak.ee>
  1811. * rip_routemap.c: sync daemon's route-map commands to have same
  1812. syntax
  1813. 2002-09-28 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
  1814. * vty.c (vty_flush): One line more on vty.
  1815. 2002-09-27 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1816. * vector.c (vector_lookup): Add new function.
  1817. 2002-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1818. * thread.c (timeval_adjust): Fix unconditional crush due to
  1819. FreeBSD's select() system call timeval value check.
  1820. 2002-07-07 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1821. * zebra-0.93 released.
  1822. 2002-06-21 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1823. * if.c (ifc_pointopoint): Add ifc_pointopoint() accoding to Frank
  1824. van Maarseveen's suggestion.
  1825. 2002-06-18 Kunihiro Ishiguro <kunihiro@zebra.org>
  1826. * command.c: Change bcopy() to memcpy().
  1827. 2001-12-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  1828. * command.c (config_password): Fix host.password clear bug.
  1829. Reported by Wang Jian <lark@linux.net.cn>.
  1830. 2001-08-29 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1831. * thread.c (thread_should_yield): New function to check thread
  1832. should yeild it's execution to other thread. Suggested by: Rick
  1833. Payne <rickp@ayrnetworks.com>
  1834. 2001-08-20 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1835. * thread.c (thread_timer_cmp): Rewrite function.
  1836. * hash.c: Add hash_get(). Change hash_pull() to hash_release().
  1837. 2001-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1838. * zebra-0.92a released.
  1839. 2001-08-15 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  1840. * zebra-0.92 released.
  1841. 2001-08-12 Akihiro Mizutani <mizutani@dml.com>
  1842. * prefix.c (netmask_str2prefix_str): Convert "1.1.0.0 255.255.0.0"
  1843. string to "1.1.0.0/16".
  1844. 2001-08-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  1845. * filter.c (access_list_lookup): access_list_lookup's first
  1846. argument is changed from address family to AFI.
  1847. * plist.c: (prefix_list_lookup): Likewise.
  1848. 2001-07-27 Akihiro Mizutani <mizutani@dml.com>
  1849. * plist.c: ge and le display order is changed. Old compatible
  1850. rule (len <= ge-value <= le-value) is removed.
  1851. 2001-07-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  1852. * prefix.h: Temporary fix for alignment of prefix problem.
  1853. 2001-06-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  1854. * prefix.h (struct prefix): Remove safi and padding field.
  1855. (struct prefix_ipv4): Likewise.
  1856. (struct prefix_ipv6): Likewise.
  1857. (struct prefix_ls): Likewise.
  1858. (struct prefix_rd): Likewise.
  1859. * command.h (enum node_type): Preparation for BGP new config.
  1860. * vty.c (vty_end_config): Likewise.
  1861. 2001-06-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  1862. * routemap.c (route_map_rule_delete): Call func_free when
  1863. route-map rule is deleted.
  1864. 2001-06-14 "Akihiro Mizutani" <mizutani@dml.com>
  1865. * routemap.c (route_map_index_lookup): Prevent to use deny and
  1866. permit for same route-map sequence.
  1867. 2001-04-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  1868. * vty.c (vty_read_config): Fix warning.
  1869. 2001-03-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  1870. * command.c (IPV6_PREFIX_STR): Add '.' and '%' for IPv6 address
  1871. strings.
  1872. 2001-03-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  1873. * zebra.h (_XPG4_2): Define _XPG4_2 and __EXTENSIONS__ for
  1874. CMSG_FIRSTHDR.
  1875. 2001-03-07 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
  1876. * zebra.h (struct in_pktinfo): structure in_pktinfo declaration.
  1877. 2001-02-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  1878. * memory.c (memory_list_lib): Add MTYPE_NEXTHOP for "show memory
  1879. lib" member.
  1880. 2001-02-13 Matthew Grant <grantma@anathoth.gen.nz>
  1881. * vty.c (vty_read_config): Revert check of integrate_default when
  1882. VTYSH is defined.
  1883. 2001-02-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  1884. * vty.c (vty_read_config): Do not check integrate_default. That
  1885. should be used only by vtysh.
  1886. 2001-02-08 Matthew Grant <grantma@anathoth.gen.nz>
  1887. * vty.c (vty_serv_un): Set umask 0077.
  1888. (vty_read_config): Stat for vtysh Zebra.conf, if found startup and
  1889. wait for boot configuration.
  1890. * if.c (if_lookup_address): Make it smart implementation.
  1891. * sockopt.c (setsockopt_multicast_ipv4): Set up a multicast socket
  1892. options for IPv4 This is here so that people only have to do their
  1893. OS multicast mess in one place rather than all through zebra,
  1894. ospfd, and ripd .
  1895. 2001-02-04 Akihiro Mizutani <mizutani@dml.com>
  1896. * plist.c (vty_prefix_list_install): Even when argument is
  1897. invalid, new memory is allocated. Now memory allocation is done
  1898. after argument check.
  1899. 2001-02-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  1900. * zebra-0.91 is released.
  1901. 2001-01-31 Akihiro Mizutani <mizutani@dml.com>
  1902. * vty.c (vty_login): Add vty login command.
  1903. 2001-01-31 Kunihiro Ishiguro <kunihiro@zebra.org>
  1904. * vty.c (vty_reset): Close accept socket.
  1905. 2001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  1906. * memory.h (enum): MTYPE_ATTR_TRANSIT is added for unknown transit
  1907. attribute.
  1908. 2001-01-22 Kunihiro Ishiguro <kunihiro@zebra.org>
  1909. * zclient.c (zebra_interface_address_add_read): Fetch interface
  1910. address flag.
  1911. (zebra_interface_address_delete_read): Likewise.
  1912. 2001-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
  1913. * table.c (route_node_match_ipv4): Utility function for IPv4
  1914. address lookup.
  1915. (route_node_match_ipv6): Utility function for IPv4 address lookup.
  1916. 2001-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  1917. * if.c: Delete RIP_API part until new implementation comes out.
  1918. 2001-01-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  1919. * hash.h (struct Hash): Rename alloc to count. Change type to
  1920. unsigned long.
  1921. * stream.c (stream_getc_from): New function.
  1922. (stream_getw_from): Likewise.
  1923. * zebra.h (ZEBRA_FLAG_STATIC): Add new flag for persistent route.
  1924. 2001-01-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  1925. * flap.c: File is removed.
  1926. * flap.c: Likewise.
  1927. * roken.h: Likewise.
  1928. * buffer.c (buffer_new): Remove type option to buffer_new().
  1929. 2001-01-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  1930. * zclient.c (zapi_ipv4_delete): Remove OLD_RIB part.
  1931. 2001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  1932. * zebra-0.90 is released.
  1933. * command.c: Update Copyright year.
  1934. 2001-01-09 Matthew Grant <grantma@anathoth.gen.nz>
  1935. * if.c (if_create): Register connected_free() function for
  1936. deletion.
  1937. (if_delete): Free connected information when the interface is
  1938. deleted.
  1939. (if_lookup_by_index): Fix argument type from int to unsigned int.
  1940. (connected_add): Keep list in order if old info found, essential
  1941. for repeatable operation in some daemons.
  1942. 2001-01-09 endo@suri.co.jp (Masahiko Endo)
  1943. * vty.c (vty_flush): When vty->statis is VTY_CLOSE do not add vty
  1944. read thread.
  1945. 2001-01-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  1946. * filter.c (access_list_delete): Access-list name is not freed.
  1947. * plist.c (prefix_list_delete): Prefix-list name is not freed.
  1948. 2000-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
  1949. * zclient.c (zclient_start): Change to use UNIX domain
  1950. socket for zebra communication.
  1951. * vector.c (vector_init): vector_alloc and vector_data_alloc is
  1952. removed. All memory allocation count should be maintained by
  1953. XMALLOC and XFREE macros.
  1954. 2000-12-28 Kunihiro Ishiguro <kunihiro@zebra.org>
  1955. * zebra.h (ZEBRA_NEXTHOP_IFINDEX): Define ZEBRA_NEXTHOP_* values.
  1956. 2000-12-27 Kunihiro Ishiguro <kunihiro@zebra.org>
  1957. * zebra.h (ZEBRA_ERR_RTEXIST): Make zebra error code to negative
  1958. value.
  1959. 2000-12-25 "Wataru Uno" <wataru@po.ntts.co.jp>
  1960. * vty.c (vtysh_read): Don't allocate new buffer because buffer is
  1961. allocated in vty_new ().
  1962. 2000-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  1963. * memory.h (enum): Add MTYPE_AS_FILTER_STR.
  1964. * command.c (config_write_terminal): Display "end" at the end of
  1965. configuration.
  1966. * plist.c (vty_prefix_list_install): Use AF_INET to determine
  1967. lenum length.
  1968. 2000-12-13 "Wataru Uno" <wataru@po.ntts.co.jp>
  1969. * buffer.c (buffer_flush_vty): If IOV_MAX defined in the System,
  1970. then all lines write by IOV_MAX.
  1971. 2000-12-12 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
  1972. * command.c (config_write_file): Robust method for writing
  1973. configuration file and recover from backing up config file.
  1974. 2000-11-29 Kunihiro Ishiguro <kunihiro@zebra.org>
  1975. * smux.c (smux_connect): More fail check.
  1976. (smux_trap): When SMUX connection is not established, do nothing.
  1977. 2000-11-28 Gleb Natapov <gleb@nbase.co.il>
  1978. * thread.c (thread_fetch): Execut event list first. Old event
  1979. list is renamed to ready list. With this change, event thread is
  1980. executed before any other thread.
  1981. * thread.h (struct thread_master): Add ready list.
  1982. 2000-11-28 Kunihiro Ishiguro <kunihiro@zebra.org>
  1983. * linklist.c (listnode_add_after): Add node right after the
  1984. listnode pointer.
  1985. 2000-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
  1986. * smux.h: Pass struct variable to WriteMethod.
  1987. 2000-11-25 Frank van Maarseveen <F.vanMaarseveen@inter.NL.net>
  1988. * if.c (if_lookup_address): When looking up interface with IP
  1989. address, Sometimes multiple interfaces will match. Now PtP
  1990. interfaces prevail in such a case which seem the right thing to
  1991. do: There will probably also be host routes which usually prevail
  1992. over network routes.
  1993. 2000-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  1994. * smux.c (smux_trap): SMUX trap implementation.
  1995. 2000-11-19 Akihiro Mizutani <mizutani@dml.com>
  1996. * plist.c: Add automatic conversion function of an old rule.
  1997. ex.) 10.0.0.0/8 ge 8 -> 10.0.0.0/8 le 32
  1998. 2000-11-16 Yon Uriarte <ukl2@rz.uni-karlsruhe.de>
  1999. * zclient.c (zebra_interface_add_read): Read hardware address when
  2000. hw_addr_len is greater than 0.
  2001. 2000-11-15 Akihiro Mizutani <mizutani@dml.com>
  2002. * plist.c: The rule of "len <= ge-value <= le-value"
  2003. was changed to "len < ge-value <= le-value".
  2004. 2000-11-09 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
  2005. * memory.[ch]: Added #define and functions for ospf6d.
  2006. * log.[ch]: some platform says that the data of used va_list
  2007. is undefined. Changed to hold list of va_list for each
  2008. vsnprintf.
  2009. 2000-11-07 Rick Payne <rickp@rossfell.co.uk>
  2010. * memory.h (enum): Add MTYPE_COMMUNITY_REGEXP.
  2011. 2000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2012. * command.c (config_exit): Fix bug of missing break after case
  2013. BGP_VPNV4_NODE.
  2014. 2000-10-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2015. * vector.c (vector_unset): Check i is not nevative.
  2016. 2000-10-24 Arkadiusz Miskiewicz <misiek@pld.org.pl>
  2017. * smux.c (smux_sock): Set terminating '\0'. Check address family.
  2018. * vty.c (vty_serv_sock_addrinfo): Set terminating '\0'. Use
  2019. gai_strerror. Check address family.
  2020. 2000-10-23 Jochen Friedrich <jochen@scram.de>
  2021. * smux.c: Use linklist rather than vector.
  2022. (smux_getnext): A SMUX subagent has to behave as if it manages the
  2023. whole SNMP MIB tree itself. It's the duty of the master agent to
  2024. collect the best answer and return it to the manager. See RFC 1227
  2025. chapter 3.1.6 for the glory details :-). ucd-snmp really behaves
  2026. bad here as it actually might ask multiple times for the same
  2027. GETNEXT request as it throws away the answer when it expects it in
  2028. a different subtree and might come back later with the very same
  2029. request.
  2030. 2000-10-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  2031. * command.c (cmd_init): Log related command are only installed for
  2032. terminal mode.
  2033. 2000-10-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  2034. * Makefile.am (libzebra_a_SOURCES): Remove duplicated buffer.c.
  2035. * zebra.h: Remove #warn directive.
  2036. 2000-10-20 Kunihiro Ishiguro <kunihiro@zebra.org>
  2037. * keychain.c (keychain_init): Register "key chain" command to
  2038. KEYCHAIN_NODE and KEYCHAIN_KEY_NODE.
  2039. * vty.c (vty_end_config): Fix missing vty_cinfig_unlock for other
  2040. CONFIG_NODE.
  2041. * command.c (config_end): Likewise.
  2042. * keychain.c (keychain_get): Key is sorted by it's identifier
  2043. value.
  2044. 2000-10-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  2045. * linklist.c (list_delete_all_node): Call delete function if it is
  2046. defined.
  2047. * command.c (cmd_execute_command_strict): Add modification for
  2048. vtysh.
  2049. (cmd_execute_command_strict): Remove first argument cmdvec because
  2050. it is global varibale in command.c.
  2051. 2000-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
  2052. * command.c (cmd_init): Install
  2053. copy_runningconfig_startupconfig_cmd only in terminal mode.
  2054. * linklist.c (list_delete_node): Simplify the function.
  2055. (listnode_lookup): Renamed from list_lookup_node.
  2056. 2000-10-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2057. * stream.h: Undef stream_read and stream_write without
  2058. parenthesis.
  2059. * newlist.c: File removed.
  2060. * newlist.h: Likewise.
  2061. * linklist.c (list_new): Remove list_init(). To allocate new
  2062. linked list, please use list_new().
  2063. (listnode_add): Remove list_add_node(). To add new node to linked
  2064. list, please use listnode_add().
  2065. (list_delete_by_val): Revemove fucntion.
  2066. 2000-10-16 Nobuaki Tanaka <nobby@po.ntts.co.jp>
  2067. * table.c (route_table_free): Reimplement route_table_free().
  2068. 2000-10-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  2069. * keychain.c (keychain_get): Register key_delete_func to key
  2070. list's delete function. Use linklist.c instead of newlist.c.
  2071. 2000-10-04 Akihiro Mizutani <mizutani@dml.com>
  2072. * filter.c (access_list_remark): Add access-list's remark command.
  2073. (no_access_list): "no access-list 100 permit any" error message
  2074. bug is fixed.
  2075. 2000-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  2076. * memory.h (enum): Add MTYPE_SOCKUNION.
  2077. 2000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2078. * zebra-0.89 is released.
  2079. 2000-10-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2080. * linklist.c (list_add_node_head): Delete unused function.
  2081. (list_add_node_tail): Likewise.
  2082. 2000-09-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  2083. * stream.c (stream_read_unblock): Add new function for unblocking
  2084. read.
  2085. 2000-09-26 Jochen Friedrich <jochen@nwe.de>
  2086. * smux.c (smux_register): Fix bug of can't register more than one
  2087. MIB with SMUX.
  2088. 2000-09-26 Makoto Otsuka <otsuka@inl.ntts.co.jp>
  2089. * vty.c (vty_close): Fix memory leak of sb_buffer.
  2090. (vty_new): Likewise.
  2091. 2000-09-21 steve@Watt.COM (Steve Watt)
  2092. * log.h: Do not declare zlog_priority[0] variable.
  2093. 2000-09-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2094. * linklist.h (struct _list ): Add member cmp for compare function.
  2095. (struct _list ): Member up is deleted
  2096. 2000-09-12 David Lipovkov <dlipovkov@OpticalAccess.com>
  2097. * if.c: Include RIP_API header when RIP API is enabled.
  2098. 2000-09-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2099. * prefix.c (prefix_free): Siplify prefix_free().
  2100. * keychain.c (key_match_for_accept): strncmp check bug is fixed.
  2101. 2000-09-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2102. * zebra.h: Merge roken.h into zebra.h.
  2103. 2000-09-05 Akihiro Mizutani <mizutani@dml.com>
  2104. * routemap.c (route_map_init_vty): Install route-map command to
  2105. RMAP_NODE.
  2106. 2000-08-22 Kunihiro Ishiguro <kunihiro@zebra.org>
  2107. * thread.c (thread_get_id): Remove pthread related garbage.
  2108. * command.h (struct host): Likewise.
  2109. * zebra.h: Likewise.
  2110. 2000-08-20 Kunihiro Ishiguro <kunihiro@zebra.org>
  2111. * command.h (node_type ): Add AAA node for authentication.
  2112. * vty.c (vty_close): Do not close stdout.
  2113. 2000-08-18 Kunihiro Ishiguro <kunihiro@zebra.org>
  2114. * vty.c (vty_init_vtysh): Added for vtysh.
  2115. * distribute.c (districute_list_prefix_all): Interface independent
  2116. filter can be set.
  2117. (distribute_list_all): Likewise.
  2118. (config_show_distribute): Display current distribute-list status
  2119. for "show ip protocols".
  2120. 2000-08-18 Akihiro Mizutani <mizutani@dml.com>
  2121. * command.c (config_terminal_no_length): no terminal monitor ->
  2122. terminal no monitor
  2123. (cmd_init): Do not install service_terminal_length_cmd into
  2124. ENABLE_NODE.
  2125. * vty.c (terminal_no_monitor): no terminal length -> terminal no
  2126. length.
  2127. 2000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2128. * zebra-0.88 is released.
  2129. 2000-08-17 Magnus Ahltorp <ahltorp@nada.kth.se>
  2130. * vty.h (struct vty ): Add iac_sb_in_progress and sb_buffer for
  2131. better IAC handling.
  2132. * vty.c (vty_telnet_option): Change telnet option handling.
  2133. 2000-08-15 Gleb Natapov <gleb@nbase.co.il>
  2134. * zclient.c (zclient_redistribute_unset): New function added.
  2135. 2000-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2136. * zclient.c (zebra_interface_add_read): Change ifindex restore
  2137. size from two octet to four.
  2138. (zebra_interface_state_read): Likewise.
  2139. (zebra_interface_address_add_read): Likewise.
  2140. 2000-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2141. * vty.c (vty_event): Use vector_set_index() instead of
  2142. vector_set().
  2143. 2000-08-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2144. * zebra.h (ZEBRA_XXX_DISTANCE_DEFAULT): Define Default
  2145. Administrative Distance of each protocol.
  2146. 2000-08-07 Matthew Grant <grantma@anathoth.gen.nz>
  2147. * if.h (struct interface ): Add new member bandwidth to struct
  2148. interface.
  2149. * zclient.c (zebra_interface_add_read): Fetch bandwidth value.
  2150. (zebra_interface_state_read): Likewise.
  2151. 2000-08-07 Gleb Natapov <gleb@nbase.co.il>
  2152. * routemap.c (route_map_event_hook): New hook route_map_event_hook
  2153. is added. This hook is called when route-map is changed. The
  2154. parameters passed to the hook are 'event' and 'route-map name'
  2155. * routemap.h: Add prototype for route_map_event_hook().
  2156. 2000-08-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2157. * zclient.c (zebra_ipv4_route): zebra_ipv4_route(),
  2158. zebra_ipv4_add(), zebra_ipv4_delete() are removed.
  2159. * routemap.c (route_map_empty): Add new function.
  2160. (route_map_delete): Use route_map_index_delete() instead of
  2161. route_map_index_free().
  2162. (route_map_index_free): Function removed.
  2163. 2000-08-06 Gleb Natapov <gleb@nbase.co.il>
  2164. * routemap.c (route_map_index_delete): Add check for route-map is
  2165. empty or not.
  2166. 2000-08-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  2167. * zclient.c (zebra_ipv4_add): Change socket arguemnt with struct
  2168. zclient.
  2169. 2000-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2170. * zclient.h (struct zebra): Add obuf for output buffer.
  2171. * if.c: Remove #ifdef NRL enclosing if_nametoindex() and
  2172. if_indextoname().
  2173. 2000-08-02 David Lipovkov <davidl@nbase.co.il>
  2174. * if.h (IF_PSEUDO_UNSET): IF_PSEUDO related macro added.
  2175. (IF_UNKNOWN_SET): IF_UNKNOWN related macro deleted.
  2176. * if.c (interface_pseudo): Add "pseudo" command to interface node.
  2177. (no_interface_pseudo): Add "no pseudo" command to interface node.
  2178. * zclient.c (zebra_interface_add_read): Set pseudo flag when it is
  2179. send from zebra.
  2180. 2000-08-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2181. * zebra.h (ZEBRA_IPV4_NEXTHOP_LOOKUP): Add new message.
  2182. (ZEBRA_IPV6_NEXTHOP_LOOKUP): Likewise.
  2183. * vty.c (vty_serv_un): Use AF_UNIX for backward compatibility.
  2184. 2000-07-31 Kunihiro Ishiguro <kunihiro@zebra.org>
  2185. * vty.c: Use vector for VTY server thread listing instead of
  2186. single value.
  2187. 2000-07-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2188. * keychain.c (no_key_chain): "no key chain WORD" command is added.
  2189. 2000-07-29 Kunihiro Ishiguro <kunihiro@zebra.org>
  2190. * command.c (config_from_file): If command fail in
  2191. KEYCHAIN_KEY_NODE, down to KEYCHAIN_NODE.
  2192. * vty.h (struct vty ): Add index_sub member.
  2193. 2000-07-27 Akihiro Mizutani <mizutani@dml.com>
  2194. * if.c: Help strings updates.
  2195. 2000-07-11 Akihiro Mizutani <mizutani@dml.com>
  2196. * command.c (no_config_enable_password): Add "no enable password"
  2197. command.
  2198. (config_write_host): Display password string.
  2199. * routemap.c (route_map_delete_match): Add support for delete
  2200. match without argument.
  2201. (route_map_delete_set): Likewise.
  2202. 2000-07-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2203. * command.h (node_type ): Change KEYCHAIN_NODE and
  2204. KEYCHAIN_KEY_NODE place just before INTERFACE_NODE.
  2205. 2000-07-09 Jochen Friedrich <jochen@scram.de>
  2206. * smux.c (config_write_smux): Fixes the option to override OID and
  2207. password for SMUX.
  2208. 2000-07-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2209. * command.h (node_type ): Add SMUX_NODE for SMUX configuration.
  2210. 2000-07-09 Toshiaki Takada <takada@zebra.org>
  2211. * command.c: Sort descvec command's help.
  2212. * vty.c (vty_describe_command): Display '<cr>' at the end of
  2213. descriptions.
  2214. 2000-07-05 Toshiaki Takada <takada@zebra.org>
  2215. * command.c (cmd_ipv6_match), (cmd_ipv6_prefix_match): Fix bug
  2216. treatment of double colon.
  2217. 2000-07-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2218. * zclient.h: Add zclient_redistribute_default_{set,unset}().
  2219. * keychain.c: New file for authentication key management.
  2220. * keychain.h: Likewise.
  2221. * tcpfilter.c: New file for TCP/UDP base filtering using ipfw or
  2222. ipchains.
  2223. * tcpfilter.h: Likewise.
  2224. * flap.h: New file for route flap dampening.
  2225. * flap.c: Likewise.
  2226. 2000-07-04 Toshiaki Takada <takada@zebra.org>
  2227. * filter.c (struct filter): Add exact flag.
  2228. (access_list): Add exact-match command.
  2229. (ipv6_access_list): Add exact-match command.
  2230. 2000-07-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  2231. * zebra.h (ZEBRA_REDISTRIBUTE_DEFAULT_ADD): New message for
  2232. request default route.
  2233. 2000-07-01 Hideaki YOSHIFUJI (吉藤英明) <yoshfuji@ecei.tohoku.ac.jp>
  2234. * smux.c: Add IPv6 smux connection code.
  2235. 2000-06-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2236. * vty.c (vty_complete_command): To cooperate readline library,
  2237. returned string is newly allocated. So some match function case
  2238. need, free of memory.
  2239. 2000-06-12 Akihiro Mizutani <mizutani@dml.com>
  2240. * distribute.c: Fix help strings.
  2241. 2000-06-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  2242. * command.c (cmd_complete_command): Add check for vector_slot
  2243. (vline, index) is not NULL when calculating lcd.
  2244. (cmd_entry_function): First check variable arguemnt to prevent it
  2245. from completion.
  2246. 2000-06-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2247. * vty.h (struct vty ): Add output_count member for displaying
  2248. output route count. Remove arugment arg from output_func because
  2249. the value is passed by vty argument. Change output to output_rn.
  2250. Add output_clean function pointer member. Add output_type member.
  2251. 2000-06-10 Toshiaki Takada <takada@zebra.org>
  2252. * command.c (show_startup_config): Add "show startup-config"
  2253. command.
  2254. 2000-06-06 Akihiro Mizutani <mizutani@dml.com>
  2255. * filter.c: Fix help strings.
  2256. 2000-06-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2257. * prefix.h (struct prefix_rd): New prefix structure for routing
  2258. distinguisher.
  2259. (struct prefix): Add padding to every prefix structure.
  2260. * routemap.c (route_map_add_match): When completely same match
  2261. statement exists, don't duplicate it.
  2262. 2000-06-05 Akihiro Mizutani <mizutani@dml.com>
  2263. * routemap.c: Change NAME to WORD.
  2264. * plist.c: Fix help strings.
  2265. 2000-06-02 Akihiro Mizutani <mizutani@dml.com>
  2266. * routemap.c: Fix route-map help strings.
  2267. 2000-06-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2268. * command.c (cmd_filter_by_completion): Fix CMD_VARARG treatment
  2269. to filter other non vararg commands.
  2270. * routemap.c (route_map_init_vty): Use install_default() for
  2271. install common commands into route-map node..
  2272. 2000-06-01 Akihiro Mizutani <mizutani@dml.com>
  2273. * command.h (OSPF_STR): Macro added.
  2274. 2000-05-31 Kunihiro Ishiguro <kunihiro@zebra.org>
  2275. * command.c (cmd_complete_command): LCD completion must not modify
  2276. installed command string.
  2277. * plist.c (ipv6_prefix_list): Fix wrong syntax definition. Change
  2278. X:X::X:X to X:X::X:X/M.
  2279. 2000-05-31 Toshiaki Takada <takada@zebra.org>
  2280. * vty.c (show_history): New defun added.
  2281. 2000-05-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2282. * command.h (CMD_COMPLETE_LIST_MATCH): New define for completion
  2283. list. CMD_COMPLETE_MATCH is used for LCD completion.
  2284. * vty.c (vty_complete_command): Matched string's LCD is completed.
  2285. * command.c (cmd_lcd): New function for calculate LCD of matched
  2286. strings.
  2287. 2000-05-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  2288. * command.c (install_default): config_write_terminal_cmd,
  2289. config_write_file_cmd, config_write_memory_cmd are added to
  2290. default node.
  2291. * memory.c (memory_init): Divide show memory command into each
  2292. sort.
  2293. * command.c (cmd_init): config_write_terminal_cmd,
  2294. config_write_file_cmd, config_write_memory_cmd are added to
  2295. CONFIG_NODE.
  2296. * routemap.c (route_map_index_free): New function.
  2297. (no_route_map_all): New DEFUN for "no route-map NAME".
  2298. * filter.c (no_access_list_all): New DEFUN for delete access-list
  2299. with NAME.
  2300. (no_ipv6_access_list_all): Likewise.
  2301. 2000-05-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  2302. * plist.c: Change IPV6_PREFIX to X:X::X:X. When "any" is
  2303. specified, user can not use "ge" and "le" statement.
  2304. 2000-05-22 Thomas Molkenbur <tmo@datus.datus.com>
  2305. * routemap.c (route_map_add_set): Fix bug of next pointer missing.
  2306. * table.c (route_table_free): Like wise.
  2307. 2000-05-22 Toshiaki Takada <takada@zebra.org>
  2308. * vty.c (vty_stop_input): Set history pointer to the latest one.
  2309. * vty.c (vty_hist_add): Do not add command line history when input
  2310. is as same as previous one.
  2311. 2000-05-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2312. * memory.h (enum): Add MTYPE_ECOMMUNITY and MTYPE_ECOMMUNITY_VAL.
  2313. 2000-05-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2314. * command.h (node_type ): Add BGP_VPNV4_NODE.
  2315. 2000-05-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2316. * vty.c (vtysh_accept): Add cast of struct sockaddr * to bind
  2317. argument. Reported by: Vesselin Mladenov <mladenov@netbg.com>.
  2318. * filter.c (ipv6_access_list): Add IPv6 prefix example instead of
  2319. IPv4 example. Reported by: Love <lha@s3.kth.se>.
  2320. * command.c (cmd_complete_command): Make it sure last element of
  2321. matchvec is NULL. This fix problem which cause crush in
  2322. vty_complete_command(). Reported by: JINMEI Tatuya
  2323. <jinmei@isl.rdc.toshiba.co.jp>.
  2324. 2000-04-28 Love <lha@s3.kth.se>
  2325. * prefix.h (struct prefix): Add padding.
  2326. 2000-04-28 Kunihiro Ishiguro <kunihiro@zebra.org>
  2327. * command.c (show_version): Update copyright year.
  2328. 2000-04-27 Kunihiro Ishiguro <kunihiro@zebra.org>
  2329. * routemap.c (route_map_apply): When map is NULL, return deny.
  2330. 2000-04-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  2331. * filter.c (access_list_apply): When access is NULL, return deny.
  2332. * plist.c (prefix_list_apply): When plist is NULL, return deny.
  2333. 2000-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  2334. * command.h (node_type ): Change RDISC_NODE to IRDP_NODE.
  2335. 2000-04-18 Toshiaki Takada <takada@zebra.org>
  2336. * filter.[ch] (access_list_add_hook), (access_list_delete_hook):
  2337. Add argument for hook function to give struct access_list *.
  2338. 2000-04-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2339. * plist.c (prefix_list_entry_match): In case of le nor ge is
  2340. specified, exact match is performed.
  2341. (prefix_list_entry_match): Add any entry matching check.
  2342. 2000-04-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2343. * vty.c (exec_timeout): Separate timeout setting to minutes and
  2344. seconds.
  2345. (no_exec_timeout): Add "no exec-timeout" command.
  2346. * vty.h (VTY_TIMEOUT_DEFAULT): Change default value from 300 to
  2347. 600.
  2348. 2000-03-31 Jochen Friedrich <jochen@scram.de>
  2349. * smux.h (SMUX_CLOSE): The SMUX_CLOSE PDU is implicit integer, so
  2350. it is a primitive encoding and not constructed.
  2351. 2000-03-28 Toshiaki Takada <takada@zebra.org>
  2352. * memory.[ch] (enum): Add MTYPE_OSPF_EXTERNAL_INFO.
  2353. 2000-03-26 Love <lha@s3.kth.se>
  2354. * zclient.c (zclient_read): Add nbytes size check for
  2355. ZEBRA_HEADER_SIZE. Check return value of steam_read ().
  2356. 2000-03-26 Rick Payne <rickp@rossfell.co.uk>
  2357. * routemap.c: Add flexible route-map commands such as on-match
  2358. next, on-match goto N.
  2359. * routemap.h: Likewise
  2360. 2000-03-23 Adrian Bool <aid@u.net.uk>
  2361. * command.c (config_log_trap): Add new command "log trap
  2362. PRIORITY".
  2363. 2000-03-14 Toshiaki Takada <takada@zebra.org>
  2364. * memory.c (struct memory_list): Add Link List and Link Node
  2365. to view.
  2366. * memory.h (enum): Remove MTYPE_OSPF_EXTERNAL_ROUTE.
  2367. 2000-01-20 Hideto Yamakawa <hideto.yamakawa@soliton.co.jp>
  2368. * str.c (snprintf): Fix bug of calling sprintf instead of
  2369. vsprintf.
  2370. 2000-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
  2371. * memory.h (enum): Add MTYPE_RIP_PEER.
  2372. 2000-01-15 Toshiaki Takada <takada@zebra.org>
  2373. * memory.h (enum): Add MTYPE_OSPF_CRYPT_KEY.
  2374. 2000-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2375. * command.h (node_type ): Add MASC_NODE for masc.
  2376. 2000-01-09 Wang Jianliang <wangjl@soim.net>
  2377. * routemap.c (route_map_index_add): When route_map_index is not
  2378. empty and insert new item at the head, it can cause core dump.
  2379. Fix "if (index == map->head)" to "if (point == map->head).
  2380. (route_map_add_set): If there is an old set command, override old
  2381. set command with new one.
  2382. (route_map_index_delete): Use while() instead of for for() for
  2383. logical correctness.
  2384. 1999-12-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  2385. * memory.h (enum): Add MTYPE_BGP_STATIC.
  2386. 1999-12-23 Alex Zinin <zinin@amt.ru>
  2387. * zebra.h, zclient.*: dynamic int up/down message
  2388. support
  2389. 1999-12-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2390. * thread.c (thread_cancel_event): Add a function for clean up
  2391. events.
  2392. 1999-12-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2393. * dropline.c: Delete file.
  2394. dropline.h: Linewise.
  2395. 1999-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2396. * filter.c (access_list_filter_delete): Wrong pointer
  2397. access->master was pointed out after access is freed. I store
  2398. master value at the beginning of the function.
  2399. 1999-12-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2400. * vty.c (exec_timeout): Change of VTY timeout affect to current
  2401. VTY connection.
  2402. (vty_accept): Instead of immediate exit() return -1.
  2403. 1999-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2404. * vty.c (vty_configure_lock): Configuration lock function added.
  2405. Only one VTY can use CONFI_NODE at the same time.
  2406. * log.c: Delete zvlog_* functions. Now zlog_* does the same
  2407. thing.
  2408. * log.c (log_init): Function removed.
  2409. (log_close): Likewise.
  2410. (log_flush): Likewise.
  2411. (log_open): Likewise.
  2412. * vty.c (terminal_monitor): Add new command.
  2413. (no_terminal_monitor): Likewise.
  2414. * log.c (old_log): Function removed.
  2415. (old_log2): Likewise.
  2416. (old_log_warn): Likewise.
  2417. 1999-12-04 Toshiaki Takada <takada@zebra.org>
  2418. * command.c (cmd_ipv6_match): New function added.
  2419. (cmd_ipv6_prefix_match): Likewise.
  2420. 1999-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2421. * command.c (cmd_ipv6_match):
  2422. * table.c: Delete #ifdef HAVE_MBGPV4.
  2423. * prefix.h (struct prefix): Add safi member.
  2424. (struct prefix_ipv4): Likewise.
  2425. (struct prefix_ipv6): Likewise.
  2426. 1999-12-04 Rumen Svobodnikov <rumen@linux.tu-varna.acad.bg>
  2427. * memory.c (struct mstat): Revert to support MEMORY_LOG.
  2428. 1999-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  2429. * version.h: Bump up to 0.81c for testing new kernel codes.
  2430. 1999-11-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  2431. * thread.h (struct thread): Pthread support is disabled all
  2432. platform.
  2433. 1999-11-21 Michael Handler <handler@sub-rosa.com>
  2434. * Include <limits.h> and <strings.h> under SUNOS_5.
  2435. 1999-11-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  2436. * sockunion.c (in6addr_cmp): Enclosed by #define HAVE_IPV6
  2437. 1999-11-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2438. * command.h (node_type ): Add BGP_IPV4_NODE and BGP_IPV6_NODE.
  2439. 1999-11-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2440. * command.c (disable): Add `disable' command.
  2441. 1999-11-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2442. * plist.c (vty_prefix_list_install): Add any check.
  2443. 1999-11-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2444. * command.h (node_type ): Add DUMP_NODE.
  2445. 1999-11-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  2446. * smux.c: Change default SMUX oid to compatible with gated.
  2447. 1999-10-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2448. * if_rmap.c: New file added.
  2449. * if_rmap.h: New file added.
  2450. 1999-10-29 Alex Zinin <zinin@amt.ru>
  2451. * hash.c: add hash_free() function
  2452. 1999-10-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  2453. * hash.c (hash_clean): Add clean function.
  2454. * plist.c (prefix_list_reset): Add reset function.
  2455. * filter.c (access_list_reset): Add reset function.
  2456. 1999-10-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2457. * client.c: Merged with zclient.c.
  2458. * client.h: Merged with zclient.h.
  2459. 1999-10-15 Jordan Mendelson <jordy@wserv.com>
  2460. * md5.c: Imported from GNU C Library.
  2461. * md5-gnu.h: Likewise.
  2462. 1999-10-15 Jochen Friedrich <jochen@scram.de>
  2463. * smux.c (smux_getresp_send): SMUX_GETRSP codes improvement.
  2464. 1999-10-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2465. * smux.h: New file added.
  2466. * snmp.c: Rename to smux.c.
  2467. 1999-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2468. * command.c (cmd_execute_command_strict): Filter ambious commands.
  2469. (cmd_filter_by_string): Change to return enum match_type.
  2470. 1999-10-01 Toshiaki Takada <takada@zebra.org>
  2471. * vty.c (vty_describe_fold): New function which does VTY
  2472. description line fold.
  2473. * vty.c (vty_describe_command): Set description column.
  2474. 1999-09-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2475. * plist.c (prefix_list_init_ipv4): VTY user interface is improved.
  2476. 1999-09-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  2477. * command.c (cmd_filter_by_string): Fix bug of CMD_IPV4 and
  2478. CMD_IPV4_PREFIX check. Both return type must be exact_match.
  2479. 1999-09-24 Toshiaki Takada <takada@zebra.org>
  2480. * command.c (cmd_filter_by_completion),
  2481. (is_cmd_ambiguous): Check IPv4 address, IPv4 prefix and range
  2482. parameter matches range.
  2483. 1999-09-22 Kunihiro Ishiguro <kunihiro@zebra.org>
  2484. * routemap.c (route_map_apply): Returm RM_DENYMATCH when no match
  2485. is performed.
  2486. 1999-09-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  2487. * vty.c (vty_read): Control-C stop VTY_MORE mode.
  2488. 1999-09-20 Kunihiro Ishiguro <kunihiro@zebra.org>
  2489. * command.h (node_type ): Add ACCESS_IPV6_NODE and
  2490. PREFIX_IPV6_NODE.
  2491. * distribute.h: New file added.
  2492. * command.h (node_type ): Delete DISTRIBUTE_NODE.
  2493. 1999-09-18 Kunihiro Ishiguro <kunihiro@zebra.org>
  2494. * vty.c (vty_terminate_all): New function added for reload
  2495. support.
  2496. 1999-09-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2497. * memory.h (enum): Add new type MTYPE_OSPF_EXTERNAL_ROUTE.
  2498. 1999-08-31 Janos Farkas <chexum@shadow.banki.hu>
  2499. * vty.c (vty_read): Handle also 0x7f (alt-backspace), just like
  2500. esc-ctrl-h (delete word backwards).
  2501. 1999-08-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  2502. * if.h: Add if_nametoindex for NRL.
  2503. 1999-08-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  2504. * if.c (if_create): New function.
  2505. 1999-08-22 Kunihiro Ishiguro <kunihiro@zebra.org>
  2506. * snmp.c: New file.
  2507. 1999-08-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  2508. * stream.c (stream_put): stream_memcpy () is changed to stream_put
  2509. (). stream_get () is added.
  2510. 1999-08-18 Toshiaki Takada <takada@zebra.org>
  2511. * memory.h (enum): Add MTYPE_OSPF_LSA_DATA.
  2512. 1999-08-18 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
  2513. * table.c (route_table_finish): add function frees table.
  2514. 1999-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2515. * memory.h (enum): Add MTYPE_RTADV_PREFIX.
  2516. 1999-08-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  2517. * if.h (struct interface ): hw_address, hw_address_len added.
  2518. 1999-08-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2519. * if.h (struct interface ): Change structure member if_data to
  2520. info, index to ifindex.
  2521. 1999-08-08 Rick Payne <rickp@rossfell.co.uk>
  2522. * routemap.c: Multi protocol route-map modification.
  2523. * routemap.c (route_map_apply): Route match process bug is fixed.
  2524. 1999-08-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2525. * thread.c (thread_fetch): When signal comes, goto retry point.
  2526. 1999-08-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2527. * Makefile.am: Add sockopt.c and sockopt.h
  2528. * sockopt.c: New file.
  2529. * sockopt.h: New file.
  2530. 1999-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2531. * version.h (ZEBRA_VERSION): Release zebra-0.75
  2532. 1999-08-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2533. * memory.h (enum): Add MTYPE_RIPNG_AGGREGATE.
  2534. 1999-07-31 Kunihiro Ishiguro <kunihiro@zebra.org>
  2535. * sockunion.h: Add sockunion_getpeername ().
  2536. 1999-07-27 Kunihiro Ishiguro <kunihiro@zebra.org>
  2537. * version.h: Release zebra-0.74
  2538. 1999-07-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  2539. * command.h (struct host): Delete lines from struct host. Add
  2540. lines to struct vty.
  2541. * command.c: Delete `lines LINES'. Terminal display line settings
  2542. should be done by `terminal length' command.
  2543. 1999-07-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  2544. * memory.h (enum): MTYPE_OSPF_PATH are added.
  2545. 1999-07-22 Toshiaki Takada <takada@zebra.org>
  2546. * memory.h (enum): MTYPE_OSPF_NEXTHOP is added.
  2547. 1999-07-21 Toshiaki Takada <takada@zebra.org>
  2548. * linklist.c (list_add_node_prev), (list_add_node_next),
  2549. (list_add_list): New function added.
  2550. * table.c (route_table_free): New function added.
  2551. 1999-07-21 Kunihiro Ishiguro <kunihiro@zebra.org>
  2552. * plist.c (config_write_prefix): Set write flag when configuration
  2553. is written.
  2554. 1999-07-15 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
  2555. * prefix.c : prefix_cmp() added. change apply_mask() to
  2556. apply_mask_ipv4(), and new apply_mask() added.
  2557. 1999-07-14 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
  2558. * prefix.c (prefix2str): append prefixlen.
  2559. 1999-07-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2560. * command.c (config_terminal): Change "config terminal" to
  2561. "configure terminal". Reported by Georg Hitsch
  2562. <georg@atnet.at>.
  2563. (config_terminal_length): `terminal length <0-512>' is added. At
  2564. this moment this command is only usef for vty interface.
  2565. Suggested by Georg Hitsch <georg@atnet.at>.
  2566. 1999-07-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2567. * routemap.c (rulecmp): Add wrapper function of strcmp.
  2568. 1999-07-08 Rick Payne <rickp@rossfell.co.uk>
  2569. * sockunion.c (inet_aton): Fix bug of inet_aton.
  2570. 1999-07-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2571. * version.h (ZEBRA_VERSION): Start zebra-0.73
  2572. 1999-07-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2573. * version.h: Bump up to 0.72.
  2574. 1999-07-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2575. * command.c (install_default): New function for install default
  2576. commands to the node.
  2577. * memory.h (enum): MTYPE_NEXTHOP is added.
  2578. 1999-07-01 <kunihiro@zebra.org>
  2579. * command.c (no_banner_motd): `no banner motd' command added.
  2580. 1999-06-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2581. * regex.c: Update to glibc-2.1.1's posix/regex.c
  2582. * regex-gnu.h: Update to glibc-2.1.1's posix/regex.h
  2583. * prefix.h (IPV4_ADDR_SAME): Macro added.
  2584. (IPV6_ADDR_SAME): Likewise.
  2585. 1999-06-29 Kunihiro Ishiguro <kunihiro@zebra.org>
  2586. * memory.h (enum): Add MTYPE_OSPF_VERTEX
  2587. * version.h: Bump up to 0.71.
  2588. * vty.c (vty_serv_sock_addrinfo): Use addrinfo function to bind
  2589. VTY socket when IPv6 is enabled.
  2590. 1999-06-28 Kunihiro Ishiguro <kunihiro@zebra.org>
  2591. * vty.c (vty_serv_sock): Change vty_serv_sock determine which
  2592. address family to bind.
  2593. * command.c: Add quit command.
  2594. 1999-06-26 NOGUCHI kay <kay@dti.ad.jp>
  2595. * vty.c (vty_read_config): Fix bug of configuration file path
  2596. detection.
  2597. 1999-06-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  2598. * version.h: Bump up to 0.70.
  2599. 1999-06-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2600. * buffer.h (GETL): Remove GETL macro.
  2601. * version.h: Bump up to 0.69.
  2602. 1999-06-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2603. * if.c (connected_add): Commented out connected_log.
  2604. 1999-06-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2605. * command.h (struct cmd_element ): strvec and descvec is combined
  2606. into newstrvec.
  2607. * command.c (desc_make): Function removed.
  2608. (desc_next): Function removed.
  2609. * command.h (struct cmd_element ): docvec is removed from struct
  2610. cmd_element.
  2611. 1999-06-12 Kunihiro Ishiguro <kunihiro@zebra.org>
  2612. * command.c (cmd_execute_command): Remove command NULL check.
  2613. * command.h (struct cmd_element ): Add newstrvec entry to struct
  2614. cmd_element.
  2615. (DEFUN2): DEFUN2 macro is removed. DEFUN is extended to support
  2616. (a|b|c) statement.
  2617. (DESC): DESC macro is removed.
  2618. * vty.c (vty_complete_command): When return value is
  2619. CMD_ERR_NO_MATCH, don't display error message.
  2620. 1999-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2621. * table.c (route_next_until): New function.
  2622. * version.h: Bump up to 0.68.
  2623. 1999-06-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2624. * vty.c (vty_close): Free vty->buf when vty is closed.
  2625. * memory.h (enum): Add MTYPE_COMMUNITY_ENTRY and
  2626. MTYPE_COMMUNITY_LIST.
  2627. * vty.h (struct vty ): Change buf from static length buffer to
  2628. variable length buffer.
  2629. * vty.c (vty_ensure): New function added.
  2630. 1999-06-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2631. * command.h (node_type ): Add COMMUNITY_LIST_NODE.
  2632. * command.c (config_enable_password): Freeing host.enable bug is
  2633. fixed.
  2634. (config_enable_password): Add argc count check.
  2635. 1999-05-31 Kunihiro Ishiguro <kunihiro@zebra.org>
  2636. * version.h: Bump up to 0.67.
  2637. 1999-05-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2638. * command.c (zencrypt): New function for encrypt password.
  2639. * command.h (struct host): Add password_encrypt and
  2640. enable_encrypt.
  2641. 1999-05-30 Jochen Friedrich <jochen@scram.de>
  2642. * command.h (struct host): New member encrypt is added for
  2643. encrypted password.
  2644. 1999-05-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2645. * vty.c: Remove all_digit_check function. Instead use all_digit.
  2646. * prefix.c (all_digit): New function for checking string is made
  2647. from digit character.
  2648. 1999-05-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  2649. * Makefile.am (libzebra_a_SOURCES): Add zclient.c.
  2650. (noinst_HEADERS): Add zclient.h
  2651. * zclient.[ch]: New file for zebra client routine.
  2652. * memory.h (enum): Add MTYPE_ZEBRA.
  2653. 1999-05-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  2654. * version.h (ZEBRA_VERSION): Update to 0.66.
  2655. 1999-05-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2656. * buffer.h (GETC,GETW): Macro deleted.
  2657. 1999-05-15 Carlos Alberto Barcenilla <barce@frlp.utn.edu.ar>
  2658. * prefix.h (IPV4_NET0, IPV4_NET127): Macro added.
  2659. 1999-05-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2660. * vty.c (service_advanced_vty): New command added.
  2661. (no_service_advanced_vty): Likewise.
  2662. 1999-05-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2663. * vty.c (vty_auth): If advanced flag is set and enable password is
  2664. not set, directly login to the ENABLE_NODE. This feature is
  2665. originally designed and implemented by Stephen R. van den Berg
  2666. <srb@cuci.nl>.
  2667. * command.h (host): Add advanced flag to struct host for advanced
  2668. vty terminal interface.
  2669. * version.h (ZEBRA_VERSION): Update to 0.65 for next beta release.
  2670. 1999-05-14 Stephen R. van den Berg <srb@cuci.nl>
  2671. * command.h (node_type ): Add TABLE_NODE.
  2672. * vty.c (vty_telnet_option): Check host.lines value.
  2673. * command.c (config_lines): DEFUN for 'lines LINES' command.
  2674. * zebra.h: Include <sys/utsname.h> for uname().
  2675. (RT_TABLE_MAIN): Defined as 0 if OS does not support multiple
  2676. routing table.
  2677. * vty.c (vty_auth): Directly login to the ENABLE_NODE when enable
  2678. password is not set.
  2679. (vty_prompt): Get machine's hostname when hostname is not set.
  2680. 1999-05-11 James Willard <james@whispering.org>
  2681. * command.c (config_exit): Close connection when `exit' command is
  2682. executed at ENABLE_NODE.
  2683. 1999-05-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2684. * vty.c (vty_stop_input): `C-c' key change node to ENABLE_NODE.
  2685. * command.c (cmd_execute_command_strict): Matched command size
  2686. check added.
  2687. (cmd_make_desc_line): New function for DEFUN2.
  2688. * command.h (struct cmd_element ): Add descsize.
  2689. 1999-05-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2690. * command.h (struct cmd_element ): Remame descvec to docvec.
  2691. (struct cmd_element ): Add descvec for new description system.
  2692. * command.c (desc_make): Check cmd->descvec.
  2693. 1999-05-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2694. * memory.h (enum): Add MTYPE_CLUSTER, MTYPE_CLUSTER_VAL.
  2695. 1999-05-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2696. * version.h (ZEBRA_VERSION): Bump up to 0.64 for next beta
  2697. release.
  2698. 1999-05-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
  2699. * linklist.c (list_delete_all_node): bug fix.
  2700. previous code loses current position when node
  2701. is deleted.
  2702. 1999-05-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  2703. * command.h (DESC): Macro added.
  2704. (struct cmd_element2): Delete struct cmd_element2.
  2705. * plist.c (prefix_list): Sequential number option check is added.
  2706. 1999-05-02 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
  2707. * log.c (zvlog_{debug,info,notice,warn,err}): have been
  2708. added. now we can log both console and file, but still
  2709. need some fix about config write.
  2710. 1999-05-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2711. * log.c (zvlog_debug): Fix yasu's change.
  2712. 1999-05-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2713. * plist.c (prefix_list): Fix typo.
  2714. 1999-04-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2715. * Set version to 0.63 for first beta package.
  2716. 1999-04-27 Carlos Barcenilla <barce@frlp.utn.edu.ar>
  2717. * prefix.c (str2prefix_ipv4): Fix prefix length check.
  2718. (str2prefix_ipv6): Likewise.
  2719. 1999-04-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  2720. * memory.h (enum): Add MTPYE_PREFIX_LIST and
  2721. MTYPE_PREFIX_LIST_ENTRY.
  2722. * command.h (node_type ): Add PREFIX_NODE.
  2723. 1999-04-25 Carlos Barcenilla <barce@frlp.utn.edu.ar>
  2724. * command.c: ALIAS (config_write_memory_cmd) and ALIAS
  2725. (copy_runningconfig_startupconfig_cmd) is added.
  2726. * table.c (route_node_lookup): Unused match variable deletion.
  2727. 1999-04-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  2728. * Makefile.am (libzebra_a_SOURCES): plist.c added.
  2729. (noinst_HEADERS): plist.h added.
  2730. * plist.c, plist.h: New file added.
  2731. * memory.h (enum): Rename MTYPE_AS_PASN to MTYPE_AS_STR.
  2732. * memory.c: Likewise.
  2733. 1999-04-19 Carlos Alberto Barcenilla <barce@frlp.utn.edu.ar>
  2734. * command.c (show_version): `show version' command added.
  2735. 1999-04-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  2736. * prefix.c (str2prefix_ipv6): Prefix length overflow check.
  2737. 1999-04-19 Carlos Alberto Barcenilla <barce@frlp.utn.edu.ar>
  2738. * prefix.c (str2prefix_ipv4): Prefix length overflow check.
  2739. 1999-04-19 Alex Bligh <amb@gxn.net>
  2740. * prefix.c (sockunion2hostprefix): Function added.
  2741. (sockunion2prefix): Address family was not set. Now it is set.
  2742. * vty.c: VTY access-class command is added.
  2743. 1999-04-18 Kunihiro Ishiguro <kunihiro@zebra.org>
  2744. * memory.c: Change xmalloc to zmalloc. xcalloc, xrealloc, xfree,
  2745. xstrdup are likewise.
  2746. 1999-04-18 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
  2747. * thread.c: Add thread_execute for other routing daemon.
  2748. OSPF tasks need to be generated by "sheduled" and "executed".
  2749. 1999-04-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2750. * buffer.c: Rewrite buffer_write and buffer_flush related
  2751. functions for fixing bugs. Reason of the problem and fix is
  2752. suggested by Alex Bligh <amb@gxn.net>.
  2753. 1999-04-12 Alex Bligh <amb@gxn.net>
  2754. * command.c (cmd_entry_function_descr): Added for variable
  2755. argument help display.
  2756. 1999-04-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2757. * regex.c, regex-gnu.h: Imported from GNU sed-3.02 distribution.
  2758. 1999-03-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  2759. * stream.c: stream_fifo_free bug is fixed.
  2760. 1999-03-19 Toshiaki Takada <takada@zebra.org>
  2761. * stream.c (stream_strncpy): Added for getting any length bytes
  2762. from stream.
  2763. 1999-03-16 Kunihiro Ishiguro <kunihiro@zebra.org>
  2764. * version.h (ZEBRA_BUG_ADDRESS): New macro added.
  2765. 1999-03-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2766. * buffer.c (buffer_flush_window): If ep is same as buffer's size
  2767. length and lp is overrun one octet.
  2768. 1999-03-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2769. * vty.h: add VTY's timeout function.
  2770. 1999-03-05 <kunihiro@zebra.org>
  2771. * command.h (node_type ): Add OSPF6_node.
  2772. 1999-03-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2773. * zebra.h: Check HAVE_SYS_SELECT_H when include <sys/select.h>
  2774. 1999-03-03 Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
  2775. * zebra.h: Include <net/if_var.h> if it exists.
  2776. 1999-03-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2777. * getopt.[ch],getopt1.c: Sync with glibc-2.1.
  2778. * log.c (zlog): Tempolary ZLOG_STDOUT feature added.
  2779. * command.h: Include vector.h and vty.h
  2780. 1999-02-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  2781. * routemap.h (struct route_map_rule_cmd): Add prefix arguemnt.
  2782. * routemap.c (route_map_apply_index): Add prefix argument.
  2783. (route_map_apply): Likewise.
  2784. * memory.h (enum): Add MTYPE_ROUTE_MAP_COMPILED.
  2785. * stream.c: Add stream_fifo related functions.
  2786. 1999-02-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  2787. * daemon.c: Return integer value. File descriptor close is added.
  2788. * memory.h (enum): add MTYPE_OSPF_LSA.
  2789. 1999-02-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  2790. * rsh.c: Remove empty file.
  2791. 1999-02-22 <kunihiro@zebra.org>
  2792. * routemap.c: Add add/delete hook to route_map_master.
  2793. 1999-02-19 Peter Galbavy <Peter.Galbavy@knowledge.com>
  2794. * str.[ch] added to supply wrappers for snprintf(), strlcat() and
  2795. strlcpy on system without these.
  2796. 1999-02-18 Peter Galbavy <Peter.Galbavy@knowledge.com>
  2797. * syslog support added
  2798. 1999-02-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2799. * filter.c (access_list_add_hook): added for hook function management.
  2800. * filter.c (access_list_delete_hook): Likewise.
  2801. 1999-01-19 Kunihiro Ishiguro <kunihiro@zebra.org>
  2802. * stream.c: New file.
  2803. * stream.h: New file.
  2804. * Divide stream related fucntions from buffer.[ch] into stream.[ch].
  2805. 1999-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2806. * memory.h (enum): add MTYPE_STREAM, MTYPE_STREAM_DATA
  2807. * buffer.c (stream_new): Set MTYPE_STREAM to XMALLOC argument.
  2808. 1998-12-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  2809. * routemap.c: route_map_index_delete() added.
  2810. 1998-12-22 Kunihiro Ishiguro <kunihiro@zebra.org>
  2811. * buffer.c (buffer_empty): check cp instead of sp.
  2812. 1998-12-17 Kunihiro Ishiguro <kunihiro@zebra.org>
  2813. * radix.[ch]: Deleted.
  2814. 1998-12-15 Magnus Ahltorp <map@stacken.kth.se>
  2815. * buffer.c: Prototype fixes.
  2816. * prefix.c: Likewise.
  2817. * sockunion.c: Likewise.
  2818. * sockunion.h: Likewise.
  2819. 1998-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2820. * vty.c (vty_read): DELETE key works as vty_delete_char.
  2821. 1998-12-13 Kunihiro Ishiguro <kunihiro@zebra.org>
  2822. * log.c (time_print): chane %y to %Y.
  2823. 1998-12-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2824. * distribute.c: new file.
  2825. 1998-12-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2826. * filter.c: Remove all of struct prefix_{ipv4,ipv6} and add
  2827. complete support of IPv6 access list.
  2828. * command.c (config_write_element): function delete.
  2829. (config_write_host): function add. password and enable password
  2830. isn't printed to vty interface.
  2831. 1998-12-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2832. * filter.c: Change prefix_ipv4 to prefix and add support of
  2833. prefix_ipv6 filtering.
  2834. 1998-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2835. * Makefile.am (INCLUDES): add @INCLUDES@ for Linux IPv6 inet6-apps
  2836. header includes.
  2837. 1998-12-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2838. * log.c (log_flush): fix function name typo.
  2839. 1998-12-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
  2840. * memory.h: OSPF memory type is added.
  2841. 1998-11-15 Kunihiro Ishiguro <kunihiro@zebra.org>
  2842. * command.c (sort_node): add sort_node() for pretty printing of
  2843. command on vty interface.
  2844. (config_password): delete the restriction of charaster of password
  2845. string.
  2846. 1998-09-05 Kunihiro Ishiguro <kunihiro@debian.zebra.org>
  2847. * prefix.c (prefix_ipv4_any): add prefix_ipv4_any().
  2848. 1998-08-25 Kunihiro Ishiguro <kunihiro@zebra.org>
  2849. * network.h: New file.
  2850. 1998-08-24 Kunihiro Ishiguro <kunihiro@zebra.org>
  2851. * vty.c (vty_will_echo): function name change from vty_off_echo.
  2852. 1998-08-18 Kunihiro Ishiguro <kunihiro@zebra.org>
  2853. * buffer.h: add PUTC,PUTW,PUTL macros.
  2854. 1998-07-22 Kunihiro Ishiguro <kunihiro@zebra.org>
  2855. * route.[ch]: renamed to prefix.[ch]
  2856. 1998-06-09 Kunihiro Ishiguro <kunihiro@zebra.org>
  2857. * prefix_in, prefix_in6 is replaced by prefix_ipv4, prefix_ipv6.
  2858. * Makefile.am: @INCLUDES@ is deleted from INCLUDES.
  2859. 1998-06-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2860. * host.[ch]: merged with command.[ch]
  2861. 1998-05-08 Kunihiro Ishiguro <kunihiro@zebra.org>
  2862. * Makefile.am (libzebra_a_SOURCES): add route.c to libzebra_a_SOURCES.
  2863. 1998-05-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2864. * route.c (str2prefix): str2prefix () is gone.
  2865. 1998-05-03 Kunihiro Ishiguro <kunihiro@zebra.org>
  2866. * vty.c (vty_read_config): change CONDIR to SYSCONFDIR.
  2867. * .cvsignore: add file.
  2868. * memory.c (xerror): add arguent `type' and `size'.
  2869. * socket.c: deleted.
  2870. 1998-05-02 Kunihiro Ishiguro <kunihiro@zebra.org>
  2871. * vector.c: malloc,free,realloc -> XMALLOC,XFREE,XREALLOC.
  2872. * linklist.c: same as above.
  2873. 1998-04-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2874. * filter.[ch]: added.
  2875. 1998-04-01 Kunihiro Ishiguro <kunihiro@zebra.org>
  2876. * vty.c (config_who): return CMD_SUCCESS
  2877. 1998-04-01 Jochen Friedrich <jochen@scram.de>
  2878. * table.c (route_dump_node): route_dump_node is IPv6 specific
  2879. function so move #ifdef to the end of route_dump_node ().
  2880. 1998-03-05 "Hannes R. Boehm" <hannes@boehm.org>
  2881. * if.c: DEFUN(interface_desc) added.
  2882. 1998-03-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2883. * if.c: separated from ripd/rip_interface.c
  2884. 1998-03-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2885. * thread.[ch] : added.
  2886. 1998-02-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2887. * vty.c (vty_delete_char): fix size bug.
  2888. (vty_backward_pure_word): function added.
  2889. (vty_read): ESC + 'f' perform vty_forward_word.
  2890. (vty_read): ESC + 'b' perform vty_backward_word.
  2891. 1998-02-11 Kunihiro Ishiguro <kunihiro@zebra.org>
  2892. * radix.c (radix_lookup_rt): add mask check.
  2893. (radix_delete_duproute): add mask check.
  2894. 1998-02-10 Kunihiro Ishiguro <kunihiro@zebra.org>
  2895. * command.c (config_write_file): fix vty -> file_vty.
  2896. 1998-02-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2897. * command.c (cmd_filter_ambiguous): add complex type treatment.
  2898. 1998-02-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2899. * vty.c (vty_time_print): function added.
  2900. (vty_complete_command): now [...] element isn't shown by completion.
  2901. 1998-01-26 Kunihiro Ishiguro <kunihiro@zebra.org>
  2902. * command.c : change from cmd_install_node() to install_node().
  2903. 1998-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
  2904. * route.[ch]: struct rt{} is replaced by struct prefix{}.
  2905. 1998-01-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2906. * command.c (cmd_execute_command): check command length.
  2907. * timer.c (zebra_timer_set): add zebra_timer_set.
  2908. 1998-01-05 Kunihiro Ishiguro <kunihiro@zebra.org>
  2909. * command.h (node_type ): add ZEBRA_NODE.
  2910. * command.c (config_exit): add RIP_NODE.
  2911. (config_write_file): add RIP_NODE.
  2912. 1998-01-04 Kunihiro Ishiguro <kunihiro@zebra.org>
  2913. * print_version.c (print_version): Now Copyright is 1996-1998.
  2914. * sockunion.c (sockunion_log): moved from ../zebra/route.c
  2915. 1997-12-30 Kunihiro Ishiguro <kunihiro@zebra.org>
  2916. * host.c (config_logfile): change 'log PATH' to 'logfile PATH'.
  2917. * sockunion.c (sockunion_sameprefix): add same prefix for
  2918. sockunion.
  2919. 1997-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
  2920. * radix.[ch] : are moved from ../zebra directroy.
  2921. * command.c (config_from_file): if command execution failed down
  2922. level to CONFIG_NODE.
  2923. * host.c: config_log function which enable 'log FILENAME' command.
  2924. 1997-12-23 Kunihiro Ishiguro <kunihiro@zebra.org>
  2925. * vty.c: add vty_transpose_chars (). Now you can use '^T' to
  2926. transpose character.
  2927. * command.c: cmd_cmdsize add, this is useful to check incomplete
  2928. command.
  2929. 1997-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
  2930. * fd.h: add family for address family
  2931. 1997-12-06 Kunihiro Ishiguro <kunihiro@zebra.org>
  2932. * command.o
  2933. * vty.o
  2934. * host.o is moved from ../zebra
  2935. 1997-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
  2936. * make library directory.