ChangeLog 143 KB

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