ChangeLog 129 KB

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