ChangeLog 106 KB

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