ChangeLog 138 KB

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