net-snmp-5.7.3-perl-5.24.patch 95 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600
  1. From 477b4307ef12ddce3b6a9205e0bdddbfb2e0e9b6 Mon Sep 17 00:00:00 2001
  2. From: Bart Van Assche <bvanassche@acm.org>
  3. Date: Sat, 20 Feb 2016 18:58:18 -0800
  4. Subject: [PATCH] Remove U64 typedef
  5. The U64 typedef conflicts with a typedef in a Perl header file. Hence
  6. remove the U64 typedef from the Net-SNMP header files. This patch does
  7. not modify the Net-SNMP ABI.
  8. ---
  9. agent/mibgroup/if-mib/ifXTable/ifXTable.c | 16 +-
  10. agent/mibgroup/if-mib/ifXTable/ifXTable.h | 48 +-
  11. .../mibgroup/if-mib/ifXTable/ifXTable_interface.c | 32 +-
  12. .../ip-mib/data_access/systemstats_common.c | 2 +-
  13. .../ipIfStatsTable/ipIfStatsTable_data_get.c | 28 +-
  14. .../ipIfStatsTable/ipIfStatsTable_data_get.h | 28 +-
  15. .../ipIfStatsTable/ipIfStatsTable_interface.c | 56 +-
  16. .../ip-mib/ipSystemStatsTable/ipSystemStatsTable.c | 28 +-
  17. .../ip-mib/ipSystemStatsTable/ipSystemStatsTable.h | 921 ++-------------------
  18. .../ipSystemStatsTable_interface.c | 56 +-
  19. include/net-snmp/data_access/ipstats.h | 42 +-
  20. include/net-snmp/library/int64.h | 34 +-
  21. snmplib/int64.c | 38 +-
  22. snmplib/read_config.c | 6 +-
  23. testing/fulltests/unit-tests/T015int64_clib.c | 10 +-
  24. 15 files changed, 274 insertions(+), 1071 deletions(-)
  25. diff --git a/agent/mibgroup/if-mib/ifXTable/ifXTable.c b/agent/mibgroup/if-mib/ifXTable/ifXTable.c
  26. index bb3e736..0c952ba 100644
  27. --- a/agent/mibgroup/if-mib/ifXTable/ifXTable.c
  28. +++ b/agent/mibgroup/if-mib/ifXTable/ifXTable.c
  29. @@ -722,7 +722,7 @@ The total number of octets received on the interface,
  30. */
  31. int
  32. ifHCInOctets_get(ifXTable_rowreq_ctx * rowreq_ctx,
  33. - U64 * ifHCInOctets_val_ptr)
  34. + struct counter64 *ifHCInOctets_val_ptr)
  35. {
  36. /** we should have a non-NULL pointer */
  37. netsnmp_assert(NULL != ifHCInOctets_val_ptr);
  38. @@ -779,7 +779,7 @@ The number of packets, delivered by this sub-layer to a
  39. */
  40. int
  41. ifHCInUcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  42. - U64 * ifHCInUcastPkts_val_ptr)
  43. + struct counter64 *ifHCInUcastPkts_val_ptr)
  44. {
  45. /** we should have a non-NULL pointer */
  46. netsnmp_assert(NULL != ifHCInUcastPkts_val_ptr);
  47. @@ -838,7 +838,7 @@ The number of packets, delivered by this sub-layer to a
  48. */
  49. int
  50. ifHCInMulticastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  51. - U64 * ifHCInMulticastPkts_val_ptr)
  52. + struct counter64 *ifHCInMulticastPkts_val_ptr)
  53. {
  54. /** we should have a non-NULL pointer */
  55. netsnmp_assert(NULL != ifHCInMulticastPkts_val_ptr);
  56. @@ -897,7 +897,7 @@ The number of packets, delivered by this sub-layer to a
  57. */
  58. int
  59. ifHCInBroadcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  60. - U64 * ifHCInBroadcastPkts_val_ptr)
  61. + struct counter64 *ifHCInBroadcastPkts_val_ptr)
  62. {
  63. /** we should have a non-NULL pointer */
  64. netsnmp_assert(NULL != ifHCInBroadcastPkts_val_ptr);
  65. @@ -955,7 +955,7 @@ The total number of octets transmitted out of the
  66. */
  67. int
  68. ifHCOutOctets_get(ifXTable_rowreq_ctx * rowreq_ctx,
  69. - U64 * ifHCOutOctets_val_ptr)
  70. + struct counter64 *ifHCOutOctets_val_ptr)
  71. {
  72. /** we should have a non-NULL pointer */
  73. netsnmp_assert(NULL != ifHCOutOctets_val_ptr);
  74. @@ -1013,7 +1013,7 @@ The total number of packets that higher-level protocols
  75. */
  76. int
  77. ifHCOutUcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  78. - U64 * ifHCOutUcastPkts_val_ptr)
  79. + struct counter64 *ifHCOutUcastPkts_val_ptr)
  80. {
  81. /** we should have a non-NULL pointer */
  82. netsnmp_assert(NULL != ifHCOutUcastPkts_val_ptr);
  83. @@ -1074,7 +1074,7 @@ The total number of packets that higher-level protocols
  84. */
  85. int
  86. ifHCOutMulticastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  87. - U64 * ifHCOutMulticastPkts_val_ptr)
  88. + struct counter64 *ifHCOutMulticastPkts_val_ptr)
  89. {
  90. /** we should have a non-NULL pointer */
  91. netsnmp_assert(NULL != ifHCOutMulticastPkts_val_ptr);
  92. @@ -1134,7 +1134,7 @@ The total number of packets that higher-level protocols
  93. */
  94. int
  95. ifHCOutBroadcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  96. - U64 * ifHCOutBroadcastPkts_val_ptr)
  97. + struct counter64 *ifHCOutBroadcastPkts_val_ptr)
  98. {
  99. /** we should have a non-NULL pointer */
  100. netsnmp_assert(NULL != ifHCOutBroadcastPkts_val_ptr);
  101. diff --git a/agent/mibgroup/if-mib/ifXTable/ifXTable.h b/agent/mibgroup/if-mib/ifXTable/ifXTable.h
  102. index ba22f97..925af13 100644
  103. --- a/agent/mibgroup/if-mib/ifXTable/ifXTable.h
  104. +++ b/agent/mibgroup/if-mib/ifXTable/ifXTable.h
  105. @@ -143,28 +143,28 @@ config_require(if-mib/ifXTable/ifXTable_data_access)
  106. u_long *
  107. ifOutBroadcastPkts_val_ptr);
  108. int ifHCInOctets_get(ifXTable_rowreq_ctx * rowreq_ctx,
  109. - U64 * ifHCInOctets_val_ptr);
  110. + struct counter64 *ifHCInOctets_val_ptr);
  111. int ifHCInUcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  112. - U64 * ifHCInUcastPkts_val_ptr);
  113. + struct counter64 *ifHCInUcastPkts_val_ptr);
  114. int ifHCInMulticastPkts_get(ifXTable_rowreq_ctx *
  115. rowreq_ctx,
  116. - U64 *
  117. + struct counter64 *
  118. ifHCInMulticastPkts_val_ptr);
  119. int ifHCInBroadcastPkts_get(ifXTable_rowreq_ctx *
  120. rowreq_ctx,
  121. - U64 *
  122. + struct counter64 *
  123. ifHCInBroadcastPkts_val_ptr);
  124. int ifHCOutOctets_get(ifXTable_rowreq_ctx * rowreq_ctx,
  125. - U64 * ifHCOutOctets_val_ptr);
  126. + struct counter64 *ifHCOutOctets_val_ptr);
  127. int ifHCOutUcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  128. - U64 * ifHCOutUcastPkts_val_ptr);
  129. + struct counter64 *ifHCOutUcastPkts_val_ptr);
  130. int ifHCOutMulticastPkts_get(ifXTable_rowreq_ctx *
  131. rowreq_ctx,
  132. - U64 *
  133. + struct counter64 *
  134. ifHCOutMulticastPkts_val_ptr);
  135. int ifHCOutBroadcastPkts_get(ifXTable_rowreq_ctx *
  136. rowreq_ctx,
  137. - U64 *
  138. + struct counter64 *
  139. ifHCOutBroadcastPkts_val_ptr);
  140. int ifLinkUpDownTrapEnable_get(ifXTable_rowreq_ctx *
  141. rowreq_ctx,
  142. @@ -284,86 +284,86 @@ config_require(if-mib/ifXTable/ifXTable_data_access)
  143. int ifHCInOctets_check_value(ifXTable_rowreq_ctx *
  144. rowreq_ctx,
  145. - U64 ifHCInOctets_val);
  146. + struct counter64 ifHCInOctets_val);
  147. int ifHCInOctets_undo_setup(ifXTable_rowreq_ctx *
  148. rowreq_ctx);
  149. int ifHCInOctets_set(ifXTable_rowreq_ctx * rowreq_ctx,
  150. - U64 ifHCInOctets_val);
  151. + struct counter64 ifHCInOctets_val);
  152. int ifHCInOctets_undo(ifXTable_rowreq_ctx * rowreq_ctx);
  153. int ifHCInUcastPkts_check_value(ifXTable_rowreq_ctx *
  154. rowreq_ctx,
  155. - U64 ifHCInUcastPkts_val);
  156. + struct counter64 ifHCInUcastPkts_val);
  157. int ifHCInUcastPkts_undo_setup(ifXTable_rowreq_ctx *
  158. rowreq_ctx);
  159. int ifHCInUcastPkts_set(ifXTable_rowreq_ctx * rowreq_ctx,
  160. - U64 ifHCInUcastPkts_val);
  161. + struct counter64 ifHCInUcastPkts_val);
  162. int ifHCInUcastPkts_undo(ifXTable_rowreq_ctx * rowreq_ctx);
  163. int ifHCInMulticastPkts_check_value(ifXTable_rowreq_ctx *
  164. rowreq_ctx,
  165. - U64
  166. + struct counter64
  167. ifHCInMulticastPkts_val);
  168. int ifHCInMulticastPkts_undo_setup(ifXTable_rowreq_ctx *
  169. rowreq_ctx);
  170. int ifHCInMulticastPkts_set(ifXTable_rowreq_ctx *
  171. rowreq_ctx,
  172. - U64 ifHCInMulticastPkts_val);
  173. + struct counter64 ifHCInMulticastPkts_val);
  174. int ifHCInMulticastPkts_undo(ifXTable_rowreq_ctx *
  175. rowreq_ctx);
  176. int ifHCInBroadcastPkts_check_value(ifXTable_rowreq_ctx *
  177. rowreq_ctx,
  178. - U64
  179. + struct counter64
  180. ifHCInBroadcastPkts_val);
  181. int ifHCInBroadcastPkts_undo_setup(ifXTable_rowreq_ctx *
  182. rowreq_ctx);
  183. int ifHCInBroadcastPkts_set(ifXTable_rowreq_ctx *
  184. rowreq_ctx,
  185. - U64 ifHCInBroadcastPkts_val);
  186. + struct counter64 ifHCInBroadcastPkts_val);
  187. int ifHCInBroadcastPkts_undo(ifXTable_rowreq_ctx *
  188. rowreq_ctx);
  189. int ifHCOutOctets_check_value(ifXTable_rowreq_ctx *
  190. rowreq_ctx,
  191. - U64 ifHCOutOctets_val);
  192. + struct counter64 ifHCOutOctets_val);
  193. int ifHCOutOctets_undo_setup(ifXTable_rowreq_ctx *
  194. rowreq_ctx);
  195. int ifHCOutOctets_set(ifXTable_rowreq_ctx * rowreq_ctx,
  196. - U64 ifHCOutOctets_val);
  197. + struct counter64 ifHCOutOctets_val);
  198. int ifHCOutOctets_undo(ifXTable_rowreq_ctx * rowreq_ctx);
  199. int ifHCOutUcastPkts_check_value(ifXTable_rowreq_ctx *
  200. rowreq_ctx,
  201. - U64 ifHCOutUcastPkts_val);
  202. + struct counter64 ifHCOutUcastPkts_val);
  203. int ifHCOutUcastPkts_undo_setup(ifXTable_rowreq_ctx *
  204. rowreq_ctx);
  205. int ifHCOutUcastPkts_set(ifXTable_rowreq_ctx * rowreq_ctx,
  206. - U64 ifHCOutUcastPkts_val);
  207. + struct counter64 ifHCOutUcastPkts_val);
  208. int ifHCOutUcastPkts_undo(ifXTable_rowreq_ctx *
  209. rowreq_ctx);
  210. int ifHCOutMulticastPkts_check_value(ifXTable_rowreq_ctx *
  211. rowreq_ctx,
  212. - U64
  213. + struct counter64
  214. ifHCOutMulticastPkts_val);
  215. int ifHCOutMulticastPkts_undo_setup(ifXTable_rowreq_ctx *
  216. rowreq_ctx);
  217. int ifHCOutMulticastPkts_set(ifXTable_rowreq_ctx *
  218. rowreq_ctx,
  219. - U64 ifHCOutMulticastPkts_val);
  220. + struct counter64 ifHCOutMulticastPkts_val);
  221. int ifHCOutMulticastPkts_undo(ifXTable_rowreq_ctx *
  222. rowreq_ctx);
  223. int ifHCOutBroadcastPkts_check_value(ifXTable_rowreq_ctx *
  224. rowreq_ctx,
  225. - U64
  226. + struct counter64
  227. ifHCOutBroadcastPkts_val);
  228. int ifHCOutBroadcastPkts_undo_setup(ifXTable_rowreq_ctx *
  229. rowreq_ctx);
  230. int ifHCOutBroadcastPkts_set(ifXTable_rowreq_ctx *
  231. rowreq_ctx,
  232. - U64 ifHCOutBroadcastPkts_val);
  233. + struct counter64 ifHCOutBroadcastPkts_val);
  234. int ifHCOutBroadcastPkts_undo(ifXTable_rowreq_ctx *
  235. rowreq_ctx);
  236. diff --git a/agent/mibgroup/if-mib/ifXTable/ifXTable_interface.c b/agent/mibgroup/if-mib/ifXTable/ifXTable_interface.c
  237. index 23b50d0..e561842 100644
  238. --- a/agent/mibgroup/if-mib/ifXTable/ifXTable_interface.c
  239. +++ b/agent/mibgroup/if-mib/ifXTable/ifXTable_interface.c
  240. @@ -729,72 +729,72 @@ _ifXTable_get_column(ifXTable_rowreq_ctx * rowreq_ctx,
  241. * ifHCInOctets(6)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  242. */
  243. case COLUMN_IFHCINOCTETS:
  244. - var->val_len = sizeof(U64);
  245. + var->val_len = sizeof(struct counter64);
  246. var->type = ASN_COUNTER64;
  247. - rc = ifHCInOctets_get(rowreq_ctx, (U64 *) var->val.string);
  248. + rc = ifHCInOctets_get(rowreq_ctx, (struct counter64 *) var->val.string);
  249. break;
  250. /*
  251. * ifHCInUcastPkts(7)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  252. */
  253. case COLUMN_IFHCINUCASTPKTS:
  254. - var->val_len = sizeof(U64);
  255. + var->val_len = sizeof(struct counter64);
  256. var->type = ASN_COUNTER64;
  257. - rc = ifHCInUcastPkts_get(rowreq_ctx, (U64 *) var->val.string);
  258. + rc = ifHCInUcastPkts_get(rowreq_ctx, (struct counter64 *) var->val.string);
  259. break;
  260. /*
  261. * ifHCInMulticastPkts(8)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  262. */
  263. case COLUMN_IFHCINMULTICASTPKTS:
  264. - var->val_len = sizeof(U64);
  265. + var->val_len = sizeof(struct counter64);
  266. var->type = ASN_COUNTER64;
  267. - rc = ifHCInMulticastPkts_get(rowreq_ctx, (U64 *) var->val.string);
  268. + rc = ifHCInMulticastPkts_get(rowreq_ctx, (struct counter64 *) var->val.string);
  269. break;
  270. /*
  271. * ifHCInBroadcastPkts(9)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  272. */
  273. case COLUMN_IFHCINBROADCASTPKTS:
  274. - var->val_len = sizeof(U64);
  275. + var->val_len = sizeof(struct counter64);
  276. var->type = ASN_COUNTER64;
  277. - rc = ifHCInBroadcastPkts_get(rowreq_ctx, (U64 *) var->val.string);
  278. + rc = ifHCInBroadcastPkts_get(rowreq_ctx, (struct counter64 *) var->val.string);
  279. break;
  280. /*
  281. * ifHCOutOctets(10)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  282. */
  283. case COLUMN_IFHCOUTOCTETS:
  284. - var->val_len = sizeof(U64);
  285. + var->val_len = sizeof(struct counter64);
  286. var->type = ASN_COUNTER64;
  287. - rc = ifHCOutOctets_get(rowreq_ctx, (U64 *) var->val.string);
  288. + rc = ifHCOutOctets_get(rowreq_ctx, (struct counter64 *) var->val.string);
  289. break;
  290. /*
  291. * ifHCOutUcastPkts(11)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  292. */
  293. case COLUMN_IFHCOUTUCASTPKTS:
  294. - var->val_len = sizeof(U64);
  295. + var->val_len = sizeof(struct counter64);
  296. var->type = ASN_COUNTER64;
  297. - rc = ifHCOutUcastPkts_get(rowreq_ctx, (U64 *) var->val.string);
  298. + rc = ifHCOutUcastPkts_get(rowreq_ctx, (struct counter64 *) var->val.string);
  299. break;
  300. /*
  301. * ifHCOutMulticastPkts(12)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  302. */
  303. case COLUMN_IFHCOUTMULTICASTPKTS:
  304. - var->val_len = sizeof(U64);
  305. + var->val_len = sizeof(struct counter64);
  306. var->type = ASN_COUNTER64;
  307. - rc = ifHCOutMulticastPkts_get(rowreq_ctx, (U64 *) var->val.string);
  308. + rc = ifHCOutMulticastPkts_get(rowreq_ctx, (struct counter64 *) var->val.string);
  309. break;
  310. /*
  311. * ifHCOutBroadcastPkts(13)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  312. */
  313. case COLUMN_IFHCOUTBROADCASTPKTS:
  314. - var->val_len = sizeof(U64);
  315. + var->val_len = sizeof(struct counter64);
  316. var->type = ASN_COUNTER64;
  317. - rc = ifHCOutBroadcastPkts_get(rowreq_ctx, (U64 *) var->val.string);
  318. + rc = ifHCOutBroadcastPkts_get(rowreq_ctx, (struct counter64 *) var->val.string);
  319. break;
  320. /*
  321. diff --git a/agent/mibgroup/ip-mib/data_access/systemstats_common.c b/agent/mibgroup/ip-mib/data_access/systemstats_common.c
  322. index 29109bd..7434b3a 100644
  323. --- a/agent/mibgroup/ip-mib/data_access/systemstats_common.c
  324. +++ b/agent/mibgroup/ip-mib/data_access/systemstats_common.c
  325. @@ -264,7 +264,7 @@ _calculate_entries(netsnmp_systemstats_entry * entry)
  326. && entry->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTFRAGCREATES]
  327. && entry->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTDISCARDS]) {
  328. - U64 tmp, tmp2, tmp3;
  329. + struct counter64 tmp, tmp2, tmp3;
  330. tmp = entry->stats.HCOutRequests;
  331. u64Incr(&tmp, &entry->stats.HCOutForwDatagrams);
  332. u64Incr(&tmp, &entry->stats.HCOutFragCreates);
  333. diff --git a/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_data_get.c b/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_data_get.c
  334. index db673dc..fec36b2 100644
  335. --- a/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_data_get.c
  336. +++ b/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_data_get.c
  337. @@ -270,7 +270,7 @@ The total number of input IP datagrams received, including
  338. */
  339. int
  340. ipIfStatsHCInReceives_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  341. - U64 * ipIfStatsHCInReceives_val_ptr)
  342. + struct counter64 *ipIfStatsHCInReceives_val_ptr)
  343. {
  344. /** we should have a non-NULL pointer */
  345. netsnmp_assert(NULL != ipIfStatsHCInReceives_val_ptr);
  346. @@ -395,7 +395,7 @@ The total number of octets received in input IP datagrams,
  347. */
  348. int
  349. ipIfStatsHCInOctets_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  350. - U64 * ipIfStatsHCInOctets_val_ptr)
  351. + struct counter64 *ipIfStatsHCInOctets_val_ptr)
  352. {
  353. /** we should have a non-NULL pointer */
  354. netsnmp_assert(NULL != ipIfStatsHCInOctets_val_ptr);
  355. @@ -862,7 +862,7 @@ The number of input datagrams for which this entity was not
  356. */
  357. int
  358. ipIfStatsHCInForwDatagrams_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  359. - U64 * ipIfStatsHCInForwDatagrams_val_ptr)
  360. + struct counter64 *ipIfStatsHCInForwDatagrams_val_ptr)
  361. {
  362. /** we should have a non-NULL pointer */
  363. netsnmp_assert(NULL != ipIfStatsHCInForwDatagrams_val_ptr);
  364. @@ -1267,7 +1267,7 @@ The total number of datagrams successfully delivered to IP
  365. */
  366. int
  367. ipIfStatsHCInDelivers_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  368. - U64 * ipIfStatsHCInDelivers_val_ptr)
  369. + struct counter64 *ipIfStatsHCInDelivers_val_ptr)
  370. {
  371. /** we should have a non-NULL pointer */
  372. netsnmp_assert(NULL != ipIfStatsHCInDelivers_val_ptr);
  373. @@ -1396,7 +1396,7 @@ The total number of IP datagrams that local IP user-
  374. */
  375. int
  376. ipIfStatsHCOutRequests_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  377. - U64 * ipIfStatsHCOutRequests_val_ptr)
  378. + struct counter64 *ipIfStatsHCOutRequests_val_ptr)
  379. {
  380. /** we should have a non-NULL pointer */
  381. netsnmp_assert(NULL != ipIfStatsHCOutRequests_val_ptr);
  382. @@ -1532,7 +1532,7 @@ The number of datagrams for which this entity was not their
  383. */
  384. int
  385. ipIfStatsHCOutForwDatagrams_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  386. - U64 * ipIfStatsHCOutForwDatagrams_val_ptr)
  387. + struct counter64 *ipIfStatsHCOutForwDatagrams_val_ptr)
  388. {
  389. /** we should have a non-NULL pointer */
  390. netsnmp_assert(NULL != ipIfStatsHCOutForwDatagrams_val_ptr);
  391. @@ -1999,7 +1999,7 @@ The total number of IP datagrams that this entity supplied
  392. */
  393. int
  394. ipIfStatsHCOutTransmits_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  395. - U64 * ipIfStatsHCOutTransmits_val_ptr)
  396. + struct counter64 *ipIfStatsHCOutTransmits_val_ptr)
  397. {
  398. /** we should have a non-NULL pointer */
  399. netsnmp_assert(NULL != ipIfStatsHCOutTransmits_val_ptr);
  400. @@ -2123,7 +2123,7 @@ The total number of octets in IP datagrams delivered to the
  401. */
  402. int
  403. ipIfStatsHCOutOctets_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  404. - U64 * ipIfStatsHCOutOctets_val_ptr)
  405. + struct counter64 *ipIfStatsHCOutOctets_val_ptr)
  406. {
  407. /** we should have a non-NULL pointer */
  408. netsnmp_assert(NULL != ipIfStatsHCOutOctets_val_ptr);
  409. @@ -2245,7 +2245,7 @@ The number of IP multicast datagrams received. This object
  410. */
  411. int
  412. ipIfStatsHCInMcastPkts_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  413. - U64 * ipIfStatsHCInMcastPkts_val_ptr)
  414. + struct counter64 *ipIfStatsHCInMcastPkts_val_ptr)
  415. {
  416. /** we should have a non-NULL pointer */
  417. netsnmp_assert(NULL != ipIfStatsHCInMcastPkts_val_ptr);
  418. @@ -2372,7 +2372,7 @@ The total number of octets received in IP multicast
  419. */
  420. int
  421. ipIfStatsHCInMcastOctets_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  422. - U64 * ipIfStatsHCInMcastOctets_val_ptr)
  423. + struct counter64 *ipIfStatsHCInMcastOctets_val_ptr)
  424. {
  425. /** we should have a non-NULL pointer */
  426. netsnmp_assert(NULL != ipIfStatsHCInMcastOctets_val_ptr);
  427. @@ -2497,7 +2497,7 @@ The number of IP multicast datagrams transmitted. This
  428. */
  429. int
  430. ipIfStatsHCOutMcastPkts_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  431. - U64 * ipIfStatsHCOutMcastPkts_val_ptr)
  432. + struct counter64 *ipIfStatsHCOutMcastPkts_val_ptr)
  433. {
  434. /** we should have a non-NULL pointer */
  435. netsnmp_assert(NULL != ipIfStatsHCOutMcastPkts_val_ptr);
  436. @@ -2621,7 +2621,7 @@ The total number of octets transmitted in IP multicast
  437. */
  438. int
  439. ipIfStatsHCOutMcastOctets_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  440. - U64 * ipIfStatsHCOutMcastOctets_val_ptr)
  441. + struct counter64 *ipIfStatsHCOutMcastOctets_val_ptr)
  442. {
  443. /** we should have a non-NULL pointer */
  444. netsnmp_assert(NULL != ipIfStatsHCOutMcastOctets_val_ptr);
  445. @@ -2743,7 +2743,7 @@ The number of IP broadcast datagrams received. This object
  446. */
  447. int
  448. ipIfStatsHCInBcastPkts_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  449. - U64 * ipIfStatsHCInBcastPkts_val_ptr)
  450. + struct counter64 *ipIfStatsHCInBcastPkts_val_ptr)
  451. {
  452. /** we should have a non-NULL pointer */
  453. netsnmp_assert(NULL != ipIfStatsHCInBcastPkts_val_ptr);
  454. @@ -2865,7 +2865,7 @@ The number of IP broadcast datagrams transmitted. This
  455. */
  456. int
  457. ipIfStatsHCOutBcastPkts_get(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  458. - U64 * ipIfStatsHCOutBcastPkts_val_ptr)
  459. + struct counter64 *ipIfStatsHCOutBcastPkts_val_ptr)
  460. {
  461. /** we should have a non-NULL pointer */
  462. netsnmp_assert(NULL != ipIfStatsHCOutBcastPkts_val_ptr);
  463. diff --git a/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_data_get.h b/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_data_get.h
  464. index 0cc7e47..ad5d8a0 100644
  465. --- a/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_data_get.h
  466. +++ b/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_data_get.h
  467. @@ -50,7 +50,7 @@ extern "C" {
  468. ipIfStatsInReceives_val_ptr);
  469. int ipIfStatsHCInReceives_get(ipIfStatsTable_rowreq_ctx *
  470. rowreq_ctx,
  471. - U64 *
  472. + struct counter64 *
  473. ipIfStatsHCInReceives_val_ptr);
  474. int ipIfStatsInOctets_get(ipIfStatsTable_rowreq_ctx *
  475. rowreq_ctx,
  476. @@ -58,7 +58,7 @@ extern "C" {
  477. ipIfStatsInOctets_val_ptr);
  478. int ipIfStatsHCInOctets_get(ipIfStatsTable_rowreq_ctx *
  479. rowreq_ctx,
  480. - U64 *
  481. + struct counter64 *
  482. ipIfStatsHCInOctets_val_ptr);
  483. int ipIfStatsInHdrErrors_get(ipIfStatsTable_rowreq_ctx *
  484. rowreq_ctx,
  485. @@ -87,7 +87,7 @@ extern "C" {
  486. int
  487. ipIfStatsHCInForwDatagrams_get(ipIfStatsTable_rowreq_ctx *
  488. rowreq_ctx,
  489. - U64 *
  490. + struct counter64 *
  491. ipIfStatsHCInForwDatagrams_val_ptr);
  492. int ipIfStatsReasmReqds_get(ipIfStatsTable_rowreq_ctx *
  493. rowreq_ctx,
  494. @@ -111,7 +111,7 @@ extern "C" {
  495. ipIfStatsInDelivers_val_ptr);
  496. int ipIfStatsHCInDelivers_get(ipIfStatsTable_rowreq_ctx *
  497. rowreq_ctx,
  498. - U64 *
  499. + struct counter64 *
  500. ipIfStatsHCInDelivers_val_ptr);
  501. int ipIfStatsOutRequests_get(ipIfStatsTable_rowreq_ctx *
  502. rowreq_ctx,
  503. @@ -119,7 +119,7 @@ extern "C" {
  504. ipIfStatsOutRequests_val_ptr);
  505. int ipIfStatsHCOutRequests_get(ipIfStatsTable_rowreq_ctx *
  506. rowreq_ctx,
  507. - U64 *
  508. + struct counter64 *
  509. ipIfStatsHCOutRequests_val_ptr);
  510. int ipIfStatsOutForwDatagrams_get(ipIfStatsTable_rowreq_ctx
  511. * rowreq_ctx,
  512. @@ -128,7 +128,7 @@ extern "C" {
  513. int
  514. ipIfStatsHCOutForwDatagrams_get(ipIfStatsTable_rowreq_ctx *
  515. rowreq_ctx,
  516. - U64 *
  517. + struct counter64 *
  518. ipIfStatsHCOutForwDatagrams_val_ptr);
  519. int ipIfStatsOutDiscards_get(ipIfStatsTable_rowreq_ctx *
  520. rowreq_ctx,
  521. @@ -156,7 +156,7 @@ extern "C" {
  522. ipIfStatsOutTransmits_val_ptr);
  523. int ipIfStatsHCOutTransmits_get(ipIfStatsTable_rowreq_ctx *
  524. rowreq_ctx,
  525. - U64 *
  526. + struct counter64 *
  527. ipIfStatsHCOutTransmits_val_ptr);
  528. int ipIfStatsOutOctets_get(ipIfStatsTable_rowreq_ctx *
  529. rowreq_ctx,
  530. @@ -164,7 +164,7 @@ extern "C" {
  531. ipIfStatsOutOctets_val_ptr);
  532. int ipIfStatsHCOutOctets_get(ipIfStatsTable_rowreq_ctx *
  533. rowreq_ctx,
  534. - U64 *
  535. + struct counter64 *
  536. ipIfStatsHCOutOctets_val_ptr);
  537. int ipIfStatsInMcastPkts_get(ipIfStatsTable_rowreq_ctx *
  538. rowreq_ctx,
  539. @@ -172,7 +172,7 @@ extern "C" {
  540. ipIfStatsInMcastPkts_val_ptr);
  541. int ipIfStatsHCInMcastPkts_get(ipIfStatsTable_rowreq_ctx *
  542. rowreq_ctx,
  543. - U64 *
  544. + struct counter64 *
  545. ipIfStatsHCInMcastPkts_val_ptr);
  546. int ipIfStatsInMcastOctets_get(ipIfStatsTable_rowreq_ctx *
  547. rowreq_ctx,
  548. @@ -180,7 +180,7 @@ extern "C" {
  549. ipIfStatsInMcastOctets_val_ptr);
  550. int ipIfStatsHCInMcastOctets_get(ipIfStatsTable_rowreq_ctx
  551. * rowreq_ctx,
  552. - U64 *
  553. + struct counter64 *
  554. ipIfStatsHCInMcastOctets_val_ptr);
  555. int ipIfStatsOutMcastPkts_get(ipIfStatsTable_rowreq_ctx *
  556. rowreq_ctx,
  557. @@ -188,7 +188,7 @@ extern "C" {
  558. ipIfStatsOutMcastPkts_val_ptr);
  559. int ipIfStatsHCOutMcastPkts_get(ipIfStatsTable_rowreq_ctx *
  560. rowreq_ctx,
  561. - U64 *
  562. + struct counter64 *
  563. ipIfStatsHCOutMcastPkts_val_ptr);
  564. int ipIfStatsOutMcastOctets_get(ipIfStatsTable_rowreq_ctx *
  565. rowreq_ctx,
  566. @@ -196,7 +196,7 @@ extern "C" {
  567. ipIfStatsOutMcastOctets_val_ptr);
  568. int ipIfStatsHCOutMcastOctets_get(ipIfStatsTable_rowreq_ctx
  569. * rowreq_ctx,
  570. - U64 *
  571. + struct counter64 *
  572. ipIfStatsHCOutMcastOctets_val_ptr);
  573. int ipIfStatsInBcastPkts_get(ipIfStatsTable_rowreq_ctx *
  574. rowreq_ctx,
  575. @@ -204,7 +204,7 @@ extern "C" {
  576. ipIfStatsInBcastPkts_val_ptr);
  577. int ipIfStatsHCInBcastPkts_get(ipIfStatsTable_rowreq_ctx *
  578. rowreq_ctx,
  579. - U64 *
  580. + struct counter64 *
  581. ipIfStatsHCInBcastPkts_val_ptr);
  582. int ipIfStatsOutBcastPkts_get(ipIfStatsTable_rowreq_ctx *
  583. rowreq_ctx,
  584. @@ -212,7 +212,7 @@ extern "C" {
  585. ipIfStatsOutBcastPkts_val_ptr);
  586. int ipIfStatsHCOutBcastPkts_get(ipIfStatsTable_rowreq_ctx *
  587. rowreq_ctx,
  588. - U64 *
  589. + struct counter64 *
  590. ipIfStatsHCOutBcastPkts_val_ptr);
  591. int
  592. ipIfStatsDiscontinuityTime_get(ipIfStatsTable_rowreq_ctx *
  593. diff --git a/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_interface.c b/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_interface.c
  594. index 559d1c1..4955a8b 100644
  595. --- a/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_interface.c
  596. +++ b/agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_interface.c
  597. @@ -722,10 +722,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  598. * ipIfStatsHCInReceives(4)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  599. */
  600. case COLUMN_IPIFSTATSHCINRECEIVES:
  601. - var->val_len = sizeof(U64);
  602. + var->val_len = sizeof(struct counter64);
  603. var->type = ASN_COUNTER64;
  604. rc = ipIfStatsHCInReceives_get(rowreq_ctx,
  605. - (U64 *) var->val.string);
  606. + (struct counter64 *) var->val.string);
  607. break;
  608. /*
  609. @@ -741,9 +741,9 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  610. * ipIfStatsHCInOctets(6)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  611. */
  612. case COLUMN_IPIFSTATSHCINOCTETS:
  613. - var->val_len = sizeof(U64);
  614. + var->val_len = sizeof(struct counter64);
  615. var->type = ASN_COUNTER64;
  616. - rc = ipIfStatsHCInOctets_get(rowreq_ctx, (U64 *) var->val.string);
  617. + rc = ipIfStatsHCInOctets_get(rowreq_ctx, (struct counter64 *) var->val.string);
  618. break;
  619. /*
  620. @@ -810,10 +810,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  621. * ipIfStatsHCInForwDatagrams(13)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  622. */
  623. case COLUMN_IPIFSTATSHCINFORWDATAGRAMS:
  624. - var->val_len = sizeof(U64);
  625. + var->val_len = sizeof(struct counter64);
  626. var->type = ASN_COUNTER64;
  627. rc = ipIfStatsHCInForwDatagrams_get(rowreq_ctx,
  628. - (U64 *) var->val.string);
  629. + (struct counter64 *) var->val.string);
  630. break;
  631. /*
  632. @@ -869,10 +869,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  633. * ipIfStatsHCInDelivers(19)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  634. */
  635. case COLUMN_IPIFSTATSHCINDELIVERS:
  636. - var->val_len = sizeof(U64);
  637. + var->val_len = sizeof(struct counter64);
  638. var->type = ASN_COUNTER64;
  639. rc = ipIfStatsHCInDelivers_get(rowreq_ctx,
  640. - (U64 *) var->val.string);
  641. + (struct counter64 *) var->val.string);
  642. break;
  643. /*
  644. @@ -889,10 +889,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  645. * ipIfStatsHCOutRequests(21)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  646. */
  647. case COLUMN_IPIFSTATSHCOUTREQUESTS:
  648. - var->val_len = sizeof(U64);
  649. + var->val_len = sizeof(struct counter64);
  650. var->type = ASN_COUNTER64;
  651. rc = ipIfStatsHCOutRequests_get(rowreq_ctx,
  652. - (U64 *) var->val.string);
  653. + (struct counter64 *) var->val.string);
  654. break;
  655. /*
  656. @@ -909,10 +909,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  657. * ipIfStatsHCOutForwDatagrams(24)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  658. */
  659. case COLUMN_IPIFSTATSHCOUTFORWDATAGRAMS:
  660. - var->val_len = sizeof(U64);
  661. + var->val_len = sizeof(struct counter64);
  662. var->type = ASN_COUNTER64;
  663. rc = ipIfStatsHCOutForwDatagrams_get(rowreq_ctx,
  664. - (U64 *) var->val.string);
  665. + (struct counter64 *) var->val.string);
  666. break;
  667. /*
  668. @@ -979,10 +979,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  669. * ipIfStatsHCOutTransmits(31)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  670. */
  671. case COLUMN_IPIFSTATSHCOUTTRANSMITS:
  672. - var->val_len = sizeof(U64);
  673. + var->val_len = sizeof(struct counter64);
  674. var->type = ASN_COUNTER64;
  675. rc = ipIfStatsHCOutTransmits_get(rowreq_ctx,
  676. - (U64 *) var->val.string);
  677. + (struct counter64 *) var->val.string);
  678. break;
  679. /*
  680. @@ -999,9 +999,9 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  681. * ipIfStatsHCOutOctets(33)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  682. */
  683. case COLUMN_IPIFSTATSHCOUTOCTETS:
  684. - var->val_len = sizeof(U64);
  685. + var->val_len = sizeof(struct counter64);
  686. var->type = ASN_COUNTER64;
  687. - rc = ipIfStatsHCOutOctets_get(rowreq_ctx, (U64 *) var->val.string);
  688. + rc = ipIfStatsHCOutOctets_get(rowreq_ctx, (struct counter64 *) var->val.string);
  689. break;
  690. /*
  691. @@ -1018,10 +1018,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  692. * ipIfStatsHCInMcastPkts(35)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  693. */
  694. case COLUMN_IPIFSTATSHCINMCASTPKTS:
  695. - var->val_len = sizeof(U64);
  696. + var->val_len = sizeof(struct counter64);
  697. var->type = ASN_COUNTER64;
  698. rc = ipIfStatsHCInMcastPkts_get(rowreq_ctx,
  699. - (U64 *) var->val.string);
  700. + (struct counter64 *) var->val.string);
  701. break;
  702. /*
  703. @@ -1038,10 +1038,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  704. * ipIfStatsHCInMcastOctets(37)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  705. */
  706. case COLUMN_IPIFSTATSHCINMCASTOCTETS:
  707. - var->val_len = sizeof(U64);
  708. + var->val_len = sizeof(struct counter64);
  709. var->type = ASN_COUNTER64;
  710. rc = ipIfStatsHCInMcastOctets_get(rowreq_ctx,
  711. - (U64 *) var->val.string);
  712. + (struct counter64 *) var->val.string);
  713. break;
  714. /*
  715. @@ -1058,10 +1058,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  716. * ipIfStatsHCOutMcastPkts(39)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  717. */
  718. case COLUMN_IPIFSTATSHCOUTMCASTPKTS:
  719. - var->val_len = sizeof(U64);
  720. + var->val_len = sizeof(struct counter64);
  721. var->type = ASN_COUNTER64;
  722. rc = ipIfStatsHCOutMcastPkts_get(rowreq_ctx,
  723. - (U64 *) var->val.string);
  724. + (struct counter64 *) var->val.string);
  725. break;
  726. /*
  727. @@ -1078,10 +1078,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  728. * ipIfStatsHCOutMcastOctets(41)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  729. */
  730. case COLUMN_IPIFSTATSHCOUTMCASTOCTETS:
  731. - var->val_len = sizeof(U64);
  732. + var->val_len = sizeof(struct counter64);
  733. var->type = ASN_COUNTER64;
  734. rc = ipIfStatsHCOutMcastOctets_get(rowreq_ctx,
  735. - (U64 *) var->val.string);
  736. + (struct counter64 *) var->val.string);
  737. break;
  738. /*
  739. @@ -1098,10 +1098,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  740. * ipIfStatsHCInBcastPkts(43)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  741. */
  742. case COLUMN_IPIFSTATSHCINBCASTPKTS:
  743. - var->val_len = sizeof(U64);
  744. + var->val_len = sizeof(struct counter64);
  745. var->type = ASN_COUNTER64;
  746. rc = ipIfStatsHCInBcastPkts_get(rowreq_ctx,
  747. - (U64 *) var->val.string);
  748. + (struct counter64 *) var->val.string);
  749. break;
  750. /*
  751. @@ -1118,10 +1118,10 @@ _ipIfStatsTable_get_column(ipIfStatsTable_rowreq_ctx * rowreq_ctx,
  752. * ipIfStatsHCOutBcastPkts(45)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  753. */
  754. case COLUMN_IPIFSTATSHCOUTBCASTPKTS:
  755. - var->val_len = sizeof(U64);
  756. + var->val_len = sizeof(struct counter64);
  757. var->type = ASN_COUNTER64;
  758. rc = ipIfStatsHCOutBcastPkts_get(rowreq_ctx,
  759. - (U64 *) var->val.string);
  760. + (struct counter64 *) var->val.string);
  761. break;
  762. /*
  763. diff --git a/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.c b/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.c
  764. index 10587e2..5a9323f 100644
  765. --- a/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.c
  766. +++ b/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.c
  767. @@ -452,7 +452,7 @@ The total number of input IP datagrams received, including
  768. */
  769. int
  770. ipSystemStatsHCInReceives_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  771. - U64 * ipSystemStatsHCInReceives_val_ptr)
  772. + struct counter64 *ipSystemStatsHCInReceives_val_ptr)
  773. {
  774. /** we should have a non-NULL pointer */
  775. netsnmp_assert(NULL != ipSystemStatsHCInReceives_val_ptr);
  776. @@ -579,7 +579,7 @@ The total number of octets received in input IP datagrams,
  777. */
  778. int
  779. ipSystemStatsHCInOctets_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  780. - U64 * ipSystemStatsHCInOctets_val_ptr)
  781. + struct counter64 *ipSystemStatsHCInOctets_val_ptr)
  782. {
  783. /** we should have a non-NULL pointer */
  784. netsnmp_assert(NULL != ipSystemStatsHCInOctets_val_ptr);
  785. @@ -1058,7 +1058,7 @@ The number of input datagrams for which this entity was not
  786. int
  787. ipSystemStatsHCInForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
  788. rowreq_ctx,
  789. - U64 *
  790. + struct counter64 *
  791. ipSystemStatsHCInForwDatagrams_val_ptr)
  792. {
  793. /** we should have a non-NULL pointer */
  794. @@ -1474,7 +1474,7 @@ The total number of datagrams successfully delivered to IP
  795. */
  796. int
  797. ipSystemStatsHCInDelivers_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  798. - U64 * ipSystemStatsHCInDelivers_val_ptr)
  799. + struct counter64 *ipSystemStatsHCInDelivers_val_ptr)
  800. {
  801. /** we should have a non-NULL pointer */
  802. netsnmp_assert(NULL != ipSystemStatsHCInDelivers_val_ptr);
  803. @@ -1602,7 +1602,7 @@ The total number of IP datagrams which local IP user-
  804. */
  805. int
  806. ipSystemStatsHCOutRequests_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  807. - U64 * ipSystemStatsHCOutRequests_val_ptr)
  808. + struct counter64 *ipSystemStatsHCOutRequests_val_ptr)
  809. {
  810. /** we should have a non-NULL pointer */
  811. netsnmp_assert(NULL != ipSystemStatsHCOutRequests_val_ptr);
  812. @@ -1809,7 +1809,7 @@ The number of datagrams for which this entity was not their
  813. int
  814. ipSystemStatsHCOutForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
  815. rowreq_ctx,
  816. - U64 *
  817. + struct counter64 *
  818. ipSystemStatsHCOutForwDatagrams_val_ptr)
  819. {
  820. /** we should have a non-NULL pointer */
  821. @@ -2288,7 +2288,7 @@ The total number of IP datagrams that this entity supplied
  822. */
  823. int
  824. ipSystemStatsHCOutTransmits_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  825. - U64 * ipSystemStatsHCOutTransmits_val_ptr)
  826. + struct counter64 *ipSystemStatsHCOutTransmits_val_ptr)
  827. {
  828. /** we should have a non-NULL pointer */
  829. netsnmp_assert(NULL != ipSystemStatsHCOutTransmits_val_ptr);
  830. @@ -2415,7 +2415,7 @@ The total number of octets in IP datagrams delivered to the
  831. */
  832. int
  833. ipSystemStatsHCOutOctets_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  834. - U64 * ipSystemStatsHCOutOctets_val_ptr)
  835. + struct counter64 *ipSystemStatsHCOutOctets_val_ptr)
  836. {
  837. /** we should have a non-NULL pointer */
  838. netsnmp_assert(NULL != ipSystemStatsHCOutOctets_val_ptr);
  839. @@ -2539,7 +2539,7 @@ The number of IP multicast datagrams received. This object
  840. */
  841. int
  842. ipSystemStatsHCInMcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  843. - U64 * ipSystemStatsHCInMcastPkts_val_ptr)
  844. + struct counter64 *ipSystemStatsHCInMcastPkts_val_ptr)
  845. {
  846. /** we should have a non-NULL pointer */
  847. netsnmp_assert(NULL != ipSystemStatsHCInMcastPkts_val_ptr);
  848. @@ -2665,7 +2665,7 @@ The total number of octets received in IP multicast
  849. int
  850. ipSystemStatsHCInMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
  851. rowreq_ctx,
  852. - U64 *
  853. + struct counter64 *
  854. ipSystemStatsHCInMcastOctets_val_ptr)
  855. {
  856. /** we should have a non-NULL pointer */
  857. @@ -2790,7 +2790,7 @@ The number of IP multicast datagrams transmitted. This
  858. */
  859. int
  860. ipSystemStatsHCOutMcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  861. - U64 * ipSystemStatsHCOutMcastPkts_val_ptr)
  862. + struct counter64 *ipSystemStatsHCOutMcastPkts_val_ptr)
  863. {
  864. /** we should have a non-NULL pointer */
  865. netsnmp_assert(NULL != ipSystemStatsHCOutMcastPkts_val_ptr);
  866. @@ -2921,7 +2921,7 @@ The total number of octets transmitted in IP multicast
  867. int
  868. ipSystemStatsHCOutMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
  869. rowreq_ctx,
  870. - U64 *
  871. + struct counter64 *
  872. ipSystemStatsHCOutMcastOctets_val_ptr)
  873. {
  874. /** we should have a non-NULL pointer */
  875. @@ -3046,7 +3046,7 @@ The number of IP broadcast datagrams received. This object
  876. */
  877. int
  878. ipSystemStatsHCInBcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  879. - U64 * ipSystemStatsHCInBcastPkts_val_ptr)
  880. + struct counter64 *ipSystemStatsHCInBcastPkts_val_ptr)
  881. {
  882. /** we should have a non-NULL pointer */
  883. netsnmp_assert(NULL != ipSystemStatsHCInBcastPkts_val_ptr);
  884. @@ -3170,7 +3170,7 @@ The number of IP broadcast datagrams transmitted. This
  885. */
  886. int
  887. ipSystemStatsHCOutBcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  888. - U64 * ipSystemStatsHCOutBcastPkts_val_ptr)
  889. + struct counter64 *ipSystemStatsHCOutBcastPkts_val_ptr)
  890. {
  891. /** we should have a non-NULL pointer */
  892. netsnmp_assert(NULL != ipSystemStatsHCOutBcastPkts_val_ptr);
  893. diff --git a/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.h b/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.h
  894. index ca1e1f3..5c3823e 100644
  895. --- a/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.h
  896. +++ b/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.h
  897. @@ -144,93 +144,22 @@ config_require(ip-mib/ipSystemStatsTable/ipSystemStatsTable_data_access)
  898. *********************************************************************
  899. * function prototypes
  900. */
  901. - int
  902. -
  903. -
  904. -
  905. -
  906. -
  907. -
  908. -
  909. -
  910. -
  911. -
  912. -
  913. -
  914. -
  915. -
  916. -
  917. - ipSystemStatsTable_pre_request(ipSystemStatsTable_registration *
  918. + int ipSystemStatsTable_pre_request(ipSystemStatsTable_registration *
  919. user_context);
  920. - int
  921. -
  922. -
  923. -
  924. -
  925. -
  926. -
  927. -
  928. -
  929. -
  930. -
  931. -
  932. -
  933. -
  934. -
  935. -
  936. - ipSystemStatsTable_post_request(ipSystemStatsTable_registration *
  937. + int ipSystemStatsTable_post_request(ipSystemStatsTable_registration *
  938. user_context, int rc);
  939. - int
  940. -
  941. -
  942. -
  943. -
  944. -
  945. -
  946. -
  947. -
  948. -
  949. -
  950. -
  951. -
  952. -
  953. -
  954. -
  955. - ipSystemStatsTable_rowreq_ctx_init(ipSystemStatsTable_rowreq_ctx *
  956. + int ipSystemStatsTable_rowreq_ctx_init(ipSystemStatsTable_rowreq_ctx *
  957. rowreq_ctx,
  958. void *user_init_ctx);
  959. void
  960. -
  961. -
  962. -
  963. -
  964. -
  965. -
  966. -
  967. -
  968. -
  969. -
  970. -
  971. -
  972. -
  973. -
  974. -
  975. ipSystemStatsTable_rowreq_ctx_cleanup(ipSystemStatsTable_rowreq_ctx
  976. * rowreq_ctx);
  977. ipSystemStatsTable_data *ipSystemStatsTable_allocate_data(void);
  978. void ipSystemStatsTable_release_data(ipSystemStatsTable_data
  979. * data);
  980. -
  981. -
  982. -
  983. -
  984. -
  985. -
  986. -
  987. -
  988. - ipSystemStatsTable_rowreq_ctx
  989. + ipSystemStatsTable_rowreq_ctx
  990. * ipSystemStatsTable_row_find_by_mib_index
  991. (ipSystemStatsTable_mib_index * mib_idx);
  992. @@ -265,226 +194,50 @@ config_require(ip-mib/ipSystemStatsTable/ipSystemStatsTable_data_access)
  993. * indexes
  994. */
  995. - int
  996. -
  997. -
  998. -
  999. -
  1000. -
  1001. -
  1002. -
  1003. -
  1004. -
  1005. -
  1006. -
  1007. -
  1008. -
  1009. -
  1010. -
  1011. - ipSystemStatsInReceives_get(ipSystemStatsTable_rowreq_ctx *
  1012. + int ipSystemStatsInReceives_get(ipSystemStatsTable_rowreq_ctx *
  1013. rowreq_ctx,
  1014. u_long *
  1015. ipSystemStatsInReceives_val_ptr);
  1016. - int
  1017. -
  1018. -
  1019. -
  1020. -
  1021. -
  1022. -
  1023. -
  1024. -
  1025. -
  1026. -
  1027. -
  1028. -
  1029. -
  1030. -
  1031. -
  1032. - ipSystemStatsHCInReceives_get(ipSystemStatsTable_rowreq_ctx *
  1033. + int ipSystemStatsHCInReceives_get(ipSystemStatsTable_rowreq_ctx *
  1034. rowreq_ctx,
  1035. - U64 *
  1036. + struct counter64 *
  1037. ipSystemStatsHCInReceives_val_ptr);
  1038. int ipSystemStatsInOctets_get(ipSystemStatsTable_rowreq_ctx
  1039. * rowreq_ctx,
  1040. u_long *
  1041. ipSystemStatsInOctets_val_ptr);
  1042. - int
  1043. -
  1044. -
  1045. -
  1046. -
  1047. -
  1048. -
  1049. -
  1050. -
  1051. -
  1052. -
  1053. -
  1054. -
  1055. -
  1056. -
  1057. -
  1058. - ipSystemStatsHCInOctets_get(ipSystemStatsTable_rowreq_ctx *
  1059. + int ipSystemStatsHCInOctets_get(ipSystemStatsTable_rowreq_ctx *
  1060. rowreq_ctx,
  1061. - U64 * ipSystemStatsHCInOctets_val_ptr);
  1062. - int
  1063. -
  1064. -
  1065. -
  1066. -
  1067. -
  1068. -
  1069. -
  1070. -
  1071. -
  1072. -
  1073. -
  1074. -
  1075. -
  1076. -
  1077. -
  1078. - ipSystemStatsInHdrErrors_get(ipSystemStatsTable_rowreq_ctx *
  1079. + struct counter64 *ipSystemStatsHCInOctets_val_ptr);
  1080. + int ipSystemStatsInHdrErrors_get(ipSystemStatsTable_rowreq_ctx *
  1081. rowreq_ctx,
  1082. u_long *
  1083. ipSystemStatsInHdrErrors_val_ptr);
  1084. - int
  1085. -
  1086. -
  1087. -
  1088. -
  1089. -
  1090. -
  1091. -
  1092. -
  1093. -
  1094. -
  1095. -
  1096. -
  1097. -
  1098. -
  1099. -
  1100. - ipSystemStatsInNoRoutes_get(ipSystemStatsTable_rowreq_ctx *
  1101. + int ipSystemStatsInNoRoutes_get(ipSystemStatsTable_rowreq_ctx *
  1102. rowreq_ctx,
  1103. u_long *
  1104. ipSystemStatsInNoRoutes_val_ptr);
  1105. - int
  1106. -
  1107. -
  1108. -
  1109. -
  1110. -
  1111. -
  1112. -
  1113. -
  1114. -
  1115. -
  1116. -
  1117. -
  1118. -
  1119. -
  1120. -
  1121. - ipSystemStatsInAddrErrors_get(ipSystemStatsTable_rowreq_ctx *
  1122. + int ipSystemStatsInAddrErrors_get(ipSystemStatsTable_rowreq_ctx *
  1123. rowreq_ctx,
  1124. u_long *
  1125. ipSystemStatsInAddrErrors_val_ptr);
  1126. - int
  1127. -
  1128. -
  1129. -
  1130. -
  1131. -
  1132. -
  1133. -
  1134. -
  1135. -
  1136. -
  1137. -
  1138. -
  1139. -
  1140. -
  1141. -
  1142. - ipSystemStatsInUnknownProtos_get(ipSystemStatsTable_rowreq_ctx *
  1143. + int ipSystemStatsInUnknownProtos_get(ipSystemStatsTable_rowreq_ctx *
  1144. rowreq_ctx,
  1145. u_long *
  1146. ipSystemStatsInUnknownProtos_val_ptr);
  1147. - int
  1148. -
  1149. -
  1150. -
  1151. -
  1152. -
  1153. -
  1154. -
  1155. -
  1156. -
  1157. -
  1158. -
  1159. -
  1160. -
  1161. -
  1162. -
  1163. - ipSystemStatsInTruncatedPkts_get(ipSystemStatsTable_rowreq_ctx *
  1164. + int ipSystemStatsInTruncatedPkts_get(ipSystemStatsTable_rowreq_ctx *
  1165. rowreq_ctx,
  1166. u_long *
  1167. ipSystemStatsInTruncatedPkts_val_ptr);
  1168. - int
  1169. -
  1170. -
  1171. -
  1172. -
  1173. -
  1174. -
  1175. -
  1176. -
  1177. -
  1178. -
  1179. -
  1180. -
  1181. -
  1182. -
  1183. -
  1184. - ipSystemStatsInForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
  1185. + int ipSystemStatsInForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
  1186. rowreq_ctx,
  1187. u_long *
  1188. ipSystemStatsInForwDatagrams_val_ptr);
  1189. - int
  1190. -
  1191. -
  1192. -
  1193. -
  1194. -
  1195. -
  1196. -
  1197. -
  1198. -
  1199. -
  1200. -
  1201. -
  1202. -
  1203. -
  1204. -
  1205. - ipSystemStatsHCInForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
  1206. + int ipSystemStatsHCInForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
  1207. rowreq_ctx,
  1208. - U64 *
  1209. + struct counter64 *
  1210. ipSystemStatsHCInForwDatagrams_val_ptr);
  1211. - int
  1212. -
  1213. -
  1214. -
  1215. -
  1216. -
  1217. -
  1218. -
  1219. -
  1220. -
  1221. -
  1222. -
  1223. -
  1224. -
  1225. -
  1226. -
  1227. - ipSystemStatsReasmReqds_get(ipSystemStatsTable_rowreq_ctx *
  1228. + int ipSystemStatsReasmReqds_get(ipSystemStatsTable_rowreq_ctx *
  1229. rowreq_ctx,
  1230. u_long *
  1231. ipSystemStatsReasmReqds_val_ptr);
  1232. @@ -492,690 +245,142 @@ config_require(ip-mib/ipSystemStatsTable/ipSystemStatsTable_data_access)
  1233. * rowreq_ctx,
  1234. u_long *
  1235. ipSystemStatsReasmOKs_val_ptr);
  1236. - int
  1237. -
  1238. -
  1239. -
  1240. -
  1241. -
  1242. -
  1243. -
  1244. -
  1245. -
  1246. -
  1247. -
  1248. -
  1249. -
  1250. -
  1251. -
  1252. - ipSystemStatsReasmFails_get(ipSystemStatsTable_rowreq_ctx *
  1253. + int ipSystemStatsReasmFails_get(ipSystemStatsTable_rowreq_ctx *
  1254. rowreq_ctx,
  1255. u_long *
  1256. ipSystemStatsReasmFails_val_ptr);
  1257. - int
  1258. -
  1259. -
  1260. -
  1261. -
  1262. -
  1263. -
  1264. -
  1265. -
  1266. -
  1267. -
  1268. -
  1269. -
  1270. -
  1271. -
  1272. -
  1273. - ipSystemStatsInDiscards_get(ipSystemStatsTable_rowreq_ctx *
  1274. + int ipSystemStatsInDiscards_get(ipSystemStatsTable_rowreq_ctx *
  1275. rowreq_ctx,
  1276. u_long *
  1277. ipSystemStatsInDiscards_val_ptr);
  1278. - int
  1279. -
  1280. -
  1281. -
  1282. -
  1283. -
  1284. -
  1285. -
  1286. -
  1287. -
  1288. -
  1289. -
  1290. -
  1291. -
  1292. -
  1293. -
  1294. - ipSystemStatsInDelivers_get(ipSystemStatsTable_rowreq_ctx *
  1295. + int ipSystemStatsInDelivers_get(ipSystemStatsTable_rowreq_ctx *
  1296. rowreq_ctx,
  1297. u_long *
  1298. ipSystemStatsInDelivers_val_ptr);
  1299. - int
  1300. -
  1301. -
  1302. -
  1303. -
  1304. -
  1305. -
  1306. -
  1307. -
  1308. -
  1309. -
  1310. -
  1311. -
  1312. -
  1313. -
  1314. -
  1315. - ipSystemStatsHCInDelivers_get(ipSystemStatsTable_rowreq_ctx *
  1316. + int ipSystemStatsHCInDelivers_get(ipSystemStatsTable_rowreq_ctx *
  1317. rowreq_ctx,
  1318. - U64 *
  1319. + struct counter64 *
  1320. ipSystemStatsHCInDelivers_val_ptr);
  1321. - int
  1322. -
  1323. -
  1324. -
  1325. -
  1326. -
  1327. -
  1328. -
  1329. -
  1330. -
  1331. -
  1332. -
  1333. -
  1334. -
  1335. -
  1336. -
  1337. - ipSystemStatsOutRequests_get(ipSystemStatsTable_rowreq_ctx *
  1338. + int ipSystemStatsOutRequests_get(ipSystemStatsTable_rowreq_ctx *
  1339. rowreq_ctx,
  1340. u_long *
  1341. ipSystemStatsOutRequests_val_ptr);
  1342. - int
  1343. -
  1344. -
  1345. -
  1346. -
  1347. -
  1348. -
  1349. -
  1350. -
  1351. -
  1352. -
  1353. -
  1354. -
  1355. -
  1356. -
  1357. -
  1358. - ipSystemStatsHCOutRequests_get(ipSystemStatsTable_rowreq_ctx *
  1359. + int ipSystemStatsHCOutRequests_get(ipSystemStatsTable_rowreq_ctx *
  1360. rowreq_ctx,
  1361. - U64 *
  1362. + struct counter64 *
  1363. ipSystemStatsHCOutRequests_val_ptr);
  1364. - int
  1365. -
  1366. -
  1367. -
  1368. -
  1369. -
  1370. -
  1371. -
  1372. -
  1373. -
  1374. -
  1375. -
  1376. -
  1377. -
  1378. -
  1379. -
  1380. - ipSystemStatsOutNoRoutes_get(ipSystemStatsTable_rowreq_ctx *
  1381. + int ipSystemStatsOutNoRoutes_get(ipSystemStatsTable_rowreq_ctx *
  1382. rowreq_ctx,
  1383. u_long *
  1384. ipSystemStatsOutNoRoutes_val_ptr);
  1385. - int
  1386. -
  1387. -
  1388. -
  1389. -
  1390. -
  1391. -
  1392. -
  1393. -
  1394. -
  1395. -
  1396. -
  1397. -
  1398. -
  1399. -
  1400. -
  1401. - ipSystemStatsOutForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
  1402. + int ipSystemStatsOutForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
  1403. rowreq_ctx,
  1404. u_long *
  1405. ipSystemStatsOutForwDatagrams_val_ptr);
  1406. - int
  1407. -
  1408. -
  1409. -
  1410. -
  1411. -
  1412. -
  1413. -
  1414. -
  1415. -
  1416. -
  1417. -
  1418. -
  1419. -
  1420. -
  1421. -
  1422. - ipSystemStatsHCOutForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
  1423. + int ipSystemStatsHCOutForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
  1424. rowreq_ctx,
  1425. - U64 *
  1426. + struct counter64 *
  1427. ipSystemStatsHCOutForwDatagrams_val_ptr);
  1428. - int
  1429. -
  1430. -
  1431. -
  1432. -
  1433. -
  1434. -
  1435. -
  1436. -
  1437. -
  1438. -
  1439. -
  1440. -
  1441. -
  1442. -
  1443. -
  1444. - ipSystemStatsOutDiscards_get(ipSystemStatsTable_rowreq_ctx *
  1445. + int ipSystemStatsOutDiscards_get(ipSystemStatsTable_rowreq_ctx *
  1446. rowreq_ctx,
  1447. u_long *
  1448. ipSystemStatsOutDiscards_val_ptr);
  1449. - int
  1450. -
  1451. -
  1452. -
  1453. -
  1454. -
  1455. -
  1456. -
  1457. -
  1458. -
  1459. -
  1460. -
  1461. -
  1462. -
  1463. -
  1464. -
  1465. - ipSystemStatsOutFragReqds_get(ipSystemStatsTable_rowreq_ctx *
  1466. + int ipSystemStatsOutFragReqds_get(ipSystemStatsTable_rowreq_ctx *
  1467. rowreq_ctx,
  1468. u_long *
  1469. ipSystemStatsOutFragReqds_val_ptr);
  1470. - int
  1471. -
  1472. -
  1473. -
  1474. -
  1475. -
  1476. -
  1477. -
  1478. -
  1479. -
  1480. -
  1481. -
  1482. -
  1483. -
  1484. -
  1485. -
  1486. - ipSystemStatsOutFragOKs_get(ipSystemStatsTable_rowreq_ctx *
  1487. + int ipSystemStatsOutFragOKs_get(ipSystemStatsTable_rowreq_ctx *
  1488. rowreq_ctx,
  1489. u_long *
  1490. ipSystemStatsOutFragOKs_val_ptr);
  1491. - int
  1492. -
  1493. -
  1494. -
  1495. -
  1496. -
  1497. -
  1498. -
  1499. -
  1500. -
  1501. -
  1502. -
  1503. -
  1504. -
  1505. -
  1506. -
  1507. - ipSystemStatsOutFragFails_get(ipSystemStatsTable_rowreq_ctx *
  1508. + int ipSystemStatsOutFragFails_get(ipSystemStatsTable_rowreq_ctx *
  1509. rowreq_ctx,
  1510. u_long *
  1511. ipSystemStatsOutFragFails_val_ptr);
  1512. - int
  1513. -
  1514. -
  1515. -
  1516. -
  1517. -
  1518. -
  1519. -
  1520. -
  1521. -
  1522. -
  1523. -
  1524. -
  1525. -
  1526. -
  1527. -
  1528. - ipSystemStatsOutFragCreates_get(ipSystemStatsTable_rowreq_ctx *
  1529. + int ipSystemStatsOutFragCreates_get(ipSystemStatsTable_rowreq_ctx *
  1530. rowreq_ctx,
  1531. u_long *
  1532. ipSystemStatsOutFragCreates_val_ptr);
  1533. - int
  1534. -
  1535. -
  1536. -
  1537. -
  1538. -
  1539. -
  1540. -
  1541. -
  1542. -
  1543. -
  1544. -
  1545. -
  1546. -
  1547. -
  1548. -
  1549. - ipSystemStatsOutTransmits_get(ipSystemStatsTable_rowreq_ctx *
  1550. + int ipSystemStatsOutTransmits_get(ipSystemStatsTable_rowreq_ctx *
  1551. rowreq_ctx,
  1552. u_long *
  1553. ipSystemStatsOutTransmits_val_ptr);
  1554. - int
  1555. -
  1556. -
  1557. -
  1558. -
  1559. -
  1560. -
  1561. -
  1562. -
  1563. -
  1564. -
  1565. -
  1566. -
  1567. -
  1568. -
  1569. -
  1570. - ipSystemStatsHCOutTransmits_get(ipSystemStatsTable_rowreq_ctx *
  1571. + int ipSystemStatsHCOutTransmits_get(ipSystemStatsTable_rowreq_ctx *
  1572. rowreq_ctx,
  1573. - U64 *
  1574. + struct counter64 *
  1575. ipSystemStatsHCOutTransmits_val_ptr);
  1576. - int
  1577. -
  1578. -
  1579. -
  1580. -
  1581. -
  1582. -
  1583. -
  1584. -
  1585. -
  1586. -
  1587. -
  1588. -
  1589. -
  1590. -
  1591. -
  1592. - ipSystemStatsOutOctets_get(ipSystemStatsTable_rowreq_ctx *
  1593. + int ipSystemStatsOutOctets_get(ipSystemStatsTable_rowreq_ctx *
  1594. rowreq_ctx,
  1595. u_long *
  1596. ipSystemStatsOutOctets_val_ptr);
  1597. - int
  1598. -
  1599. -
  1600. -
  1601. -
  1602. -
  1603. -
  1604. -
  1605. -
  1606. -
  1607. -
  1608. -
  1609. -
  1610. -
  1611. -
  1612. -
  1613. - ipSystemStatsHCOutOctets_get(ipSystemStatsTable_rowreq_ctx *
  1614. + int ipSystemStatsHCOutOctets_get(ipSystemStatsTable_rowreq_ctx *
  1615. rowreq_ctx,
  1616. - U64 *
  1617. + struct counter64 *
  1618. ipSystemStatsHCOutOctets_val_ptr);
  1619. - int
  1620. -
  1621. -
  1622. -
  1623. -
  1624. -
  1625. -
  1626. -
  1627. -
  1628. -
  1629. -
  1630. -
  1631. -
  1632. -
  1633. -
  1634. -
  1635. - ipSystemStatsInMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1636. + int ipSystemStatsInMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1637. rowreq_ctx,
  1638. u_long *
  1639. ipSystemStatsInMcastPkts_val_ptr);
  1640. - int
  1641. -
  1642. -
  1643. -
  1644. -
  1645. -
  1646. -
  1647. -
  1648. -
  1649. -
  1650. -
  1651. -
  1652. -
  1653. -
  1654. -
  1655. -
  1656. - ipSystemStatsHCInMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1657. + int ipSystemStatsHCInMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1658. rowreq_ctx,
  1659. - U64 *
  1660. + struct counter64 *
  1661. ipSystemStatsHCInMcastPkts_val_ptr);
  1662. - int
  1663. -
  1664. -
  1665. -
  1666. -
  1667. -
  1668. -
  1669. -
  1670. -
  1671. -
  1672. -
  1673. -
  1674. -
  1675. -
  1676. -
  1677. -
  1678. - ipSystemStatsInMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
  1679. + int ipSystemStatsInMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
  1680. rowreq_ctx,
  1681. u_long *
  1682. ipSystemStatsInMcastOctets_val_ptr);
  1683. - int
  1684. -
  1685. -
  1686. -
  1687. -
  1688. -
  1689. -
  1690. -
  1691. -
  1692. -
  1693. -
  1694. -
  1695. -
  1696. -
  1697. -
  1698. -
  1699. - ipSystemStatsHCInMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
  1700. + int ipSystemStatsHCInMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
  1701. rowreq_ctx,
  1702. - U64 *
  1703. + struct counter64 *
  1704. ipSystemStatsHCInMcastOctets_val_ptr);
  1705. - int
  1706. -
  1707. -
  1708. -
  1709. -
  1710. -
  1711. -
  1712. -
  1713. -
  1714. -
  1715. -
  1716. -
  1717. -
  1718. -
  1719. -
  1720. -
  1721. - ipSystemStatsOutMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1722. + int ipSystemStatsOutMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1723. rowreq_ctx,
  1724. u_long *
  1725. ipSystemStatsOutMcastPkts_val_ptr);
  1726. - int
  1727. -
  1728. -
  1729. -
  1730. -
  1731. -
  1732. -
  1733. -
  1734. -
  1735. -
  1736. -
  1737. -
  1738. -
  1739. -
  1740. -
  1741. -
  1742. - ipSystemStatsHCOutMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1743. + int ipSystemStatsHCOutMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1744. rowreq_ctx,
  1745. - U64 *
  1746. + struct counter64 *
  1747. ipSystemStatsHCOutMcastPkts_val_ptr);
  1748. - int
  1749. -
  1750. -
  1751. -
  1752. -
  1753. -
  1754. -
  1755. -
  1756. -
  1757. -
  1758. -
  1759. -
  1760. -
  1761. -
  1762. -
  1763. -
  1764. - ipSystemStatsOutMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
  1765. + int ipSystemStatsOutMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
  1766. rowreq_ctx,
  1767. u_long *
  1768. ipSystemStatsOutMcastOctets_val_ptr);
  1769. - int
  1770. -
  1771. -
  1772. -
  1773. -
  1774. -
  1775. -
  1776. -
  1777. -
  1778. -
  1779. -
  1780. -
  1781. -
  1782. -
  1783. -
  1784. -
  1785. - ipSystemStatsHCOutMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
  1786. + int ipSystemStatsHCOutMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
  1787. rowreq_ctx,
  1788. - U64 *
  1789. + struct counter64 *
  1790. ipSystemStatsHCOutMcastOctets_val_ptr);
  1791. - int
  1792. -
  1793. -
  1794. -
  1795. -
  1796. -
  1797. -
  1798. -
  1799. -
  1800. -
  1801. -
  1802. -
  1803. -
  1804. -
  1805. -
  1806. -
  1807. - ipSystemStatsInBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1808. + int ipSystemStatsInBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1809. rowreq_ctx,
  1810. u_long *
  1811. ipSystemStatsInBcastPkts_val_ptr);
  1812. - int
  1813. -
  1814. -
  1815. -
  1816. -
  1817. -
  1818. -
  1819. -
  1820. -
  1821. -
  1822. -
  1823. -
  1824. -
  1825. -
  1826. -
  1827. -
  1828. - ipSystemStatsHCInBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1829. + int ipSystemStatsHCInBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1830. rowreq_ctx,
  1831. - U64 *
  1832. + struct counter64 *
  1833. ipSystemStatsHCInBcastPkts_val_ptr);
  1834. - int
  1835. -
  1836. -
  1837. -
  1838. -
  1839. -
  1840. -
  1841. -
  1842. -
  1843. -
  1844. -
  1845. -
  1846. -
  1847. -
  1848. -
  1849. -
  1850. - ipSystemStatsOutBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1851. + int ipSystemStatsOutBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1852. rowreq_ctx,
  1853. u_long *
  1854. ipSystemStatsOutBcastPkts_val_ptr);
  1855. - int
  1856. -
  1857. -
  1858. -
  1859. -
  1860. -
  1861. -
  1862. -
  1863. -
  1864. -
  1865. -
  1866. -
  1867. -
  1868. -
  1869. -
  1870. -
  1871. - ipSystemStatsHCOutBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1872. + int ipSystemStatsHCOutBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
  1873. rowreq_ctx,
  1874. - U64 *
  1875. + struct counter64 *
  1876. ipSystemStatsHCOutBcastPkts_val_ptr);
  1877. - int
  1878. -
  1879. -
  1880. -
  1881. -
  1882. -
  1883. -
  1884. -
  1885. -
  1886. -
  1887. -
  1888. -
  1889. -
  1890. -
  1891. -
  1892. -
  1893. - ipSystemStatsDiscontinuityTime_get(ipSystemStatsTable_rowreq_ctx *
  1894. + int ipSystemStatsDiscontinuityTime_get(ipSystemStatsTable_rowreq_ctx *
  1895. rowreq_ctx,
  1896. u_long *
  1897. ipSystemStatsDiscontinuityTime_val_ptr);
  1898. - int
  1899. -
  1900. -
  1901. -
  1902. -
  1903. -
  1904. -
  1905. -
  1906. -
  1907. -
  1908. -
  1909. -
  1910. -
  1911. -
  1912. -
  1913. -
  1914. - ipSystemStatsRefreshRate_get(ipSystemStatsTable_rowreq_ctx *
  1915. + int ipSystemStatsRefreshRate_get(ipSystemStatsTable_rowreq_ctx *
  1916. rowreq_ctx,
  1917. u_long *
  1918. ipSystemStatsRefreshRate_val_ptr);
  1919. -
  1920. -
  1921. - int
  1922. -
  1923. -
  1924. -
  1925. -
  1926. -
  1927. -
  1928. -
  1929. -
  1930. -
  1931. -
  1932. -
  1933. -
  1934. -
  1935. -
  1936. -
  1937. - ipSystemStatsTable_indexes_set_tbl_idx(ipSystemStatsTable_mib_index
  1938. + int ipSystemStatsTable_indexes_set_tbl_idx(ipSystemStatsTable_mib_index
  1939. * tbl_idx,
  1940. u_long
  1941. ipSystemStatsIPVersion_val);
  1942. - int
  1943. -
  1944. -
  1945. -
  1946. -
  1947. -
  1948. -
  1949. -
  1950. -
  1951. -
  1952. -
  1953. -
  1954. -
  1955. -
  1956. -
  1957. -
  1958. - ipSystemStatsTable_indexes_set(ipSystemStatsTable_rowreq_ctx *
  1959. + int ipSystemStatsTable_indexes_set(ipSystemStatsTable_rowreq_ctx *
  1960. rowreq_ctx,
  1961. u_long ipSystemStatsIPVersion_val);
  1962. -
  1963. -
  1964. /*
  1965. *********************************************************************
  1966. * SET function declarations
  1967. diff --git a/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable_interface.c b/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable_interface.c
  1968. index e1ca2cb..09c061f 100644
  1969. --- a/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable_interface.c
  1970. +++ b/agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable_interface.c
  1971. @@ -674,10 +674,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  1972. * ipSystemStatsHCInReceives(4)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  1973. */
  1974. case COLUMN_IPSYSTEMSTATSHCINRECEIVES:
  1975. - var->val_len = sizeof(U64);
  1976. + var->val_len = sizeof(struct counter64);
  1977. var->type = ASN_COUNTER64;
  1978. rc = ipSystemStatsHCInReceives_get(rowreq_ctx,
  1979. - (U64 *) var->val.string);
  1980. + (struct counter64 *) var->val.string);
  1981. break;
  1982. /*
  1983. @@ -694,10 +694,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  1984. * ipSystemStatsHCInOctets(6)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  1985. */
  1986. case COLUMN_IPSYSTEMSTATSHCINOCTETS:
  1987. - var->val_len = sizeof(U64);
  1988. + var->val_len = sizeof(struct counter64);
  1989. var->type = ASN_COUNTER64;
  1990. rc = ipSystemStatsHCInOctets_get(rowreq_ctx,
  1991. - (U64 *) var->val.string);
  1992. + (struct counter64 *) var->val.string);
  1993. break;
  1994. /*
  1995. @@ -764,10 +764,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  1996. * ipSystemStatsHCInForwDatagrams(13)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  1997. */
  1998. case COLUMN_IPSYSTEMSTATSHCINFORWDATAGRAMS:
  1999. - var->val_len = sizeof(U64);
  2000. + var->val_len = sizeof(struct counter64);
  2001. var->type = ASN_COUNTER64;
  2002. rc = ipSystemStatsHCInForwDatagrams_get(rowreq_ctx,
  2003. - (U64 *) var->val.string);
  2004. + (struct counter64 *) var->val.string);
  2005. break;
  2006. /*
  2007. @@ -824,10 +824,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  2008. * ipSystemStatsHCInDelivers(19)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  2009. */
  2010. case COLUMN_IPSYSTEMSTATSHCINDELIVERS:
  2011. - var->val_len = sizeof(U64);
  2012. + var->val_len = sizeof(struct counter64);
  2013. var->type = ASN_COUNTER64;
  2014. rc = ipSystemStatsHCInDelivers_get(rowreq_ctx,
  2015. - (U64 *) var->val.string);
  2016. + (struct counter64 *) var->val.string);
  2017. break;
  2018. /*
  2019. @@ -844,10 +844,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  2020. * ipSystemStatsHCOutRequests(21)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  2021. */
  2022. case COLUMN_IPSYSTEMSTATSHCOUTREQUESTS:
  2023. - var->val_len = sizeof(U64);
  2024. + var->val_len = sizeof(struct counter64);
  2025. var->type = ASN_COUNTER64;
  2026. rc = ipSystemStatsHCOutRequests_get(rowreq_ctx,
  2027. - (U64 *) var->val.string);
  2028. + (struct counter64 *) var->val.string);
  2029. break;
  2030. /*
  2031. @@ -874,10 +874,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  2032. * ipSystemStatsHCOutForwDatagrams(24)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  2033. */
  2034. case COLUMN_IPSYSTEMSTATSHCOUTFORWDATAGRAMS:
  2035. - var->val_len = sizeof(U64);
  2036. + var->val_len = sizeof(struct counter64);
  2037. var->type = ASN_COUNTER64;
  2038. rc = ipSystemStatsHCOutForwDatagrams_get(rowreq_ctx,
  2039. - (U64 *) var->val.string);
  2040. + (struct counter64 *) var->val.string);
  2041. break;
  2042. /*
  2043. @@ -944,10 +944,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  2044. * ipSystemStatsHCOutTransmits(31)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  2045. */
  2046. case COLUMN_IPSYSTEMSTATSHCOUTTRANSMITS:
  2047. - var->val_len = sizeof(U64);
  2048. + var->val_len = sizeof(struct counter64);
  2049. var->type = ASN_COUNTER64;
  2050. rc = ipSystemStatsHCOutTransmits_get(rowreq_ctx,
  2051. - (U64 *) var->val.string);
  2052. + (struct counter64 *) var->val.string);
  2053. break;
  2054. /*
  2055. @@ -964,10 +964,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  2056. * ipSystemStatsHCOutOctets(33)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  2057. */
  2058. case COLUMN_IPSYSTEMSTATSHCOUTOCTETS:
  2059. - var->val_len = sizeof(U64);
  2060. + var->val_len = sizeof(struct counter64);
  2061. var->type = ASN_COUNTER64;
  2062. rc = ipSystemStatsHCOutOctets_get(rowreq_ctx,
  2063. - (U64 *) var->val.string);
  2064. + (struct counter64 *) var->val.string);
  2065. break;
  2066. /*
  2067. @@ -984,10 +984,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  2068. * ipSystemStatsHCInMcastPkts(35)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  2069. */
  2070. case COLUMN_IPSYSTEMSTATSHCINMCASTPKTS:
  2071. - var->val_len = sizeof(U64);
  2072. + var->val_len = sizeof(struct counter64);
  2073. var->type = ASN_COUNTER64;
  2074. rc = ipSystemStatsHCInMcastPkts_get(rowreq_ctx,
  2075. - (U64 *) var->val.string);
  2076. + (struct counter64 *) var->val.string);
  2077. break;
  2078. /*
  2079. @@ -1004,10 +1004,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  2080. * ipSystemStatsHCInMcastOctets(37)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  2081. */
  2082. case COLUMN_IPSYSTEMSTATSHCINMCASTOCTETS:
  2083. - var->val_len = sizeof(U64);
  2084. + var->val_len = sizeof(struct counter64);
  2085. var->type = ASN_COUNTER64;
  2086. rc = ipSystemStatsHCInMcastOctets_get(rowreq_ctx,
  2087. - (U64 *) var->val.string);
  2088. + (struct counter64 *) var->val.string);
  2089. break;
  2090. /*
  2091. @@ -1024,10 +1024,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  2092. * ipSystemStatsHCOutMcastPkts(39)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  2093. */
  2094. case COLUMN_IPSYSTEMSTATSHCOUTMCASTPKTS:
  2095. - var->val_len = sizeof(U64);
  2096. + var->val_len = sizeof(struct counter64);
  2097. var->type = ASN_COUNTER64;
  2098. rc = ipSystemStatsHCOutMcastPkts_get(rowreq_ctx,
  2099. - (U64 *) var->val.string);
  2100. + (struct counter64 *) var->val.string);
  2101. break;
  2102. /*
  2103. @@ -1044,10 +1044,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  2104. * ipSystemStatsHCOutMcastOctets(41)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  2105. */
  2106. case COLUMN_IPSYSTEMSTATSHCOUTMCASTOCTETS:
  2107. - var->val_len = sizeof(U64);
  2108. + var->val_len = sizeof(struct counter64);
  2109. var->type = ASN_COUNTER64;
  2110. rc = ipSystemStatsHCOutMcastOctets_get(rowreq_ctx,
  2111. - (U64 *) var->val.string);
  2112. + (struct counter64 *) var->val.string);
  2113. break;
  2114. /*
  2115. @@ -1064,10 +1064,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  2116. * ipSystemStatsHCInBcastPkts(43)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  2117. */
  2118. case COLUMN_IPSYSTEMSTATSHCINBCASTPKTS:
  2119. - var->val_len = sizeof(U64);
  2120. + var->val_len = sizeof(struct counter64);
  2121. var->type = ASN_COUNTER64;
  2122. rc = ipSystemStatsHCInBcastPkts_get(rowreq_ctx,
  2123. - (U64 *) var->val.string);
  2124. + (struct counter64 *) var->val.string);
  2125. break;
  2126. /*
  2127. @@ -1084,10 +1084,10 @@ _ipSystemStatsTable_get_column(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
  2128. * ipSystemStatsHCOutBcastPkts(45)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
  2129. */
  2130. case COLUMN_IPSYSTEMSTATSHCOUTBCASTPKTS:
  2131. - var->val_len = sizeof(U64);
  2132. + var->val_len = sizeof(struct counter64);
  2133. var->type = ASN_COUNTER64;
  2134. rc = ipSystemStatsHCOutBcastPkts_get(rowreq_ctx,
  2135. - (U64 *) var->val.string);
  2136. + (struct counter64 *) var->val.string);
  2137. break;
  2138. /*
  2139. diff --git a/include/net-snmp/data_access/ipstats.h b/include/net-snmp/data_access/ipstats.h
  2140. index f782459..f0df46b 100644
  2141. --- a/include/net-snmp/data_access/ipstats.h
  2142. +++ b/include/net-snmp/data_access/ipstats.h
  2143. @@ -58,45 +58,45 @@ typedef struct netsnmp_ipstats_s {
  2144. * other columns, when underlying OS does not provide them.
  2145. * Always fill at least 32 bits, the table is periodically polled -> 32 bit
  2146. * overflow shall be detected and 64 bit value should be computed automatically. */
  2147. - U64 HCInReceives;
  2148. - U64 HCInOctets;
  2149. + struct counter64 HCInReceives;
  2150. + struct counter64 HCInOctets;
  2151. u_long InHdrErrors;
  2152. - U64 HCInNoRoutes;
  2153. + struct counter64 HCInNoRoutes;
  2154. u_long InAddrErrors;
  2155. u_long InUnknownProtos;
  2156. u_long InTruncatedPkts;
  2157. /* optional, can be computed from HCInNoRoutes and HCOutForwDatagrams */
  2158. - U64 HCInForwDatagrams;
  2159. + struct counter64 HCInForwDatagrams;
  2160. u_long ReasmReqds;
  2161. u_long ReasmOKs;
  2162. u_long ReasmFails;
  2163. u_long InDiscards;
  2164. - U64 HCInDelivers;
  2165. - U64 HCOutRequests;
  2166. - U64 HCOutNoRoutes;
  2167. - U64 HCOutForwDatagrams;
  2168. - U64 HCOutDiscards;
  2169. + struct counter64 HCInDelivers;
  2170. + struct counter64 HCOutRequests;
  2171. + struct counter64 HCOutNoRoutes;
  2172. + struct counter64 HCOutForwDatagrams;
  2173. + struct counter64 HCOutDiscards;
  2174. /* optional, can be computed from HCOutFragOKs + HCOutFragFails*/
  2175. - U64 HCOutFragReqds;
  2176. - U64 HCOutFragOKs;
  2177. - U64 HCOutFragFails;
  2178. - U64 HCOutFragCreates;
  2179. + struct counter64 HCOutFragReqds;
  2180. + struct counter64 HCOutFragOKs;
  2181. + struct counter64 HCOutFragFails;
  2182. + struct counter64 HCOutFragCreates;
  2183. /* optional, can be computed from
  2184. * HCOutRequests +HCOutForwDatagrams + HCOutFragCreates
  2185. * - HCOutFragReqds - HCOutNoRoutes - HCOutDiscards */
  2186. - U64 HCOutTransmits;
  2187. + struct counter64 HCOutTransmits;
  2188. - U64 HCOutOctets;
  2189. - U64 HCInMcastPkts;
  2190. - U64 HCInMcastOctets;
  2191. - U64 HCOutMcastPkts;
  2192. - U64 HCOutMcastOctets;
  2193. - U64 HCInBcastPkts;
  2194. - U64 HCOutBcastPkts;
  2195. + struct counter64 HCOutOctets;
  2196. + struct counter64 HCInMcastPkts;
  2197. + struct counter64 HCInMcastOctets;
  2198. + struct counter64 HCOutMcastPkts;
  2199. + struct counter64 HCOutMcastOctets;
  2200. + struct counter64 HCInBcastPkts;
  2201. + struct counter64 HCOutBcastPkts;
  2202. /* Array of available columns.*/
  2203. int columnAvail[IPSYSTEMSTATSTABLE_LAST+1];
  2204. diff --git a/include/net-snmp/library/int64.h b/include/net-snmp/library/int64.h
  2205. index 9c7c894..3a85213 100644
  2206. --- a/include/net-snmp/library/int64.h
  2207. +++ b/include/net-snmp/library/int64.h
  2208. @@ -5,31 +5,29 @@
  2209. extern "C" {
  2210. #endif
  2211. - typedef struct counter64 U64;
  2212. -
  2213. #define I64CHARSZ 21
  2214. - void divBy10(U64, U64 *, unsigned int *);
  2215. - void multBy10(U64, U64 *);
  2216. - void incrByU16(U64 *, unsigned int);
  2217. - void incrByU32(U64 *, unsigned int);
  2218. + void divBy10(struct counter64, struct counter64 *, unsigned int *);
  2219. + void multBy10(struct counter64, struct counter64 *);
  2220. + void incrByU16(struct counter64 *, unsigned int);
  2221. + void incrByU32(struct counter64 *, unsigned int);
  2222. NETSNMP_IMPORT
  2223. - void zeroU64(U64 *);
  2224. - int isZeroU64(const U64 *);
  2225. + void zeroU64(struct counter64 *);
  2226. + int isZeroU64(const struct counter64 *);
  2227. NETSNMP_IMPORT
  2228. - void printU64(char *, const U64 *);
  2229. + void printU64(char *, const struct counter64 *);
  2230. NETSNMP_IMPORT
  2231. - void printI64(char *, const U64 *);
  2232. - int read64(U64 *, const char *);
  2233. + void printI64(char *, const struct counter64 *);
  2234. + int read64(struct counter64 *, const char *);
  2235. NETSNMP_IMPORT
  2236. - void u64Subtract(const U64 * pu64one, const U64 * pu64two,
  2237. - U64 * pu64out);
  2238. - void u64Incr(U64 * pu64out, const U64 * pu64one);
  2239. - void u64UpdateCounter(U64 * pu64out, const U64 * pu64one,
  2240. - const U64 * pu64two);
  2241. - void u64Copy(U64 * pu64one, const U64 * pu64two);
  2242. + void u64Subtract(const struct counter64 *pu64one, const struct counter64 *pu64two,
  2243. + struct counter64 *pu64out);
  2244. + void u64Incr(struct counter64 *pu64out, const struct counter64 *pu64one);
  2245. + void u64UpdateCounter(struct counter64 *pu64out, const struct counter64 *pu64one,
  2246. + const struct counter64 *pu64two);
  2247. + void u64Copy(struct counter64 *pu64one, const struct counter64 *pu64two);
  2248. - int netsnmp_c64_check_for_32bit_wrap(U64 *old_val, U64 *new_val,
  2249. + int netsnmp_c64_check_for_32bit_wrap(struct counter64 *old_val, struct counter64 *new_val,
  2250. int adjust);
  2251. NETSNMP_IMPORT
  2252. int netsnmp_c64_check32_and_update(struct counter64 *prev_val,
  2253. diff --git a/snmplib/int64.c b/snmplib/int64.c
  2254. index 51f1f32..951f813 100644
  2255. --- a/snmplib/int64.c
  2256. +++ b/snmplib/int64.c
  2257. @@ -33,7 +33,7 @@
  2258. * @param[out] puR Remainder.
  2259. */
  2260. void
  2261. -divBy10(U64 u64, U64 * pu64Q, unsigned int *puR)
  2262. +divBy10(struct counter64 u64, struct counter64 *pu64Q, unsigned int *puR)
  2263. {
  2264. unsigned long ulT;
  2265. unsigned long ulQ;
  2266. @@ -83,7 +83,7 @@ divBy10(U64 u64, U64 * pu64Q, unsigned int *puR)
  2267. * @param[out] pu64P Product.
  2268. */
  2269. void
  2270. -multBy10(U64 u64, U64 * pu64P)
  2271. +multBy10(struct counter64 u64, struct counter64 *pu64P)
  2272. {
  2273. unsigned long ulT;
  2274. unsigned long ulP;
  2275. @@ -130,7 +130,7 @@ multBy10(U64 u64, U64 * pu64P)
  2276. *
  2277. */
  2278. void
  2279. -incrByU16(U64 * pu64, unsigned int u16)
  2280. +incrByU16(struct counter64 *pu64, unsigned int u16)
  2281. {
  2282. incrByU32(pu64, u16);
  2283. }
  2284. @@ -143,7 +143,7 @@ incrByU16(U64 * pu64, unsigned int u16)
  2285. *
  2286. */
  2287. void
  2288. -incrByU32(U64 * pu64, unsigned int u32)
  2289. +incrByU32(struct counter64 *pu64, unsigned int u32)
  2290. {
  2291. uint32_t tmp;
  2292. @@ -161,7 +161,7 @@ incrByU32(U64 * pu64, unsigned int u32)
  2293. * @param[out] pu64out pu64one - pu64two.
  2294. */
  2295. void
  2296. -u64Subtract(const U64 * pu64one, const U64 * pu64two, U64 * pu64out)
  2297. +u64Subtract(const struct counter64 *pu64one, const struct counter64 *pu64two, struct counter64 *pu64out)
  2298. {
  2299. int carry;
  2300. @@ -177,7 +177,7 @@ u64Subtract(const U64 * pu64one, const U64 * pu64two, U64 * pu64out)
  2301. * @param[in,out] pu64out pu64out += pu64one.
  2302. */
  2303. void
  2304. -u64Incr(U64 * pu64out, const U64 * pu64one)
  2305. +u64Incr(struct counter64 *pu64out, const struct counter64 *pu64one)
  2306. {
  2307. pu64out->high = (uint32_t)(pu64out->high + pu64one->high);
  2308. incrByU32(pu64out, pu64one->low);
  2309. @@ -191,9 +191,9 @@ u64Incr(U64 * pu64out, const U64 * pu64one)
  2310. * @param[out] pu64out pu64out += (pu64one - pu64two)
  2311. */
  2312. void
  2313. -u64UpdateCounter(U64 * pu64out, const U64 * pu64one, const U64 * pu64two)
  2314. +u64UpdateCounter(struct counter64 *pu64out, const struct counter64 *pu64one, const struct counter64 *pu64two)
  2315. {
  2316. - U64 tmp;
  2317. + struct counter64 tmp;
  2318. u64Subtract(pu64one, pu64two, &tmp);
  2319. u64Incr(pu64out, &tmp);
  2320. @@ -208,7 +208,7 @@ netsnmp_feature_child_of(u64copy, netsnmp_unused)
  2321. * @param[out] pu64one Where to store the copy - *pu64one = *pu64two.
  2322. */
  2323. void
  2324. -u64Copy(U64 * pu64one, const U64 * pu64two)
  2325. +u64Copy(struct counter64 *pu64one, const struct counter64 *pu64two)
  2326. {
  2327. *pu64one = *pu64two;
  2328. }
  2329. @@ -220,7 +220,7 @@ u64Copy(U64 * pu64one, const U64 * pu64two)
  2330. * @param[in] pu64 Number to be zeroed.
  2331. */
  2332. void
  2333. -zeroU64(U64 * pu64)
  2334. +zeroU64(struct counter64 *pu64)
  2335. {
  2336. pu64->low = 0;
  2337. pu64->high = 0;
  2338. @@ -232,7 +232,7 @@ zeroU64(U64 * pu64)
  2339. * @param[in] pu64 Number to be checked.
  2340. */
  2341. int
  2342. -isZeroU64(const U64 * pu64)
  2343. +isZeroU64(const struct counter64 *pu64)
  2344. {
  2345. return pu64->low == 0 && pu64->high == 0;
  2346. }
  2347. @@ -390,10 +390,10 @@ netsnmp_c64_check32_and_update(struct counter64 *prev_val, struct counter64 *new
  2348. /** Convert an unsigned 64-bit number to ASCII. */
  2349. void
  2350. printU64(char *buf, /* char [I64CHARSZ+1]; */
  2351. - const U64 * pu64)
  2352. + const struct counter64 *pu64)
  2353. {
  2354. - U64 u64a;
  2355. - U64 u64b;
  2356. + struct counter64 u64a;
  2357. + struct counter64 u64b;
  2358. char aRes[I64CHARSZ + 1];
  2359. unsigned int u;
  2360. @@ -414,9 +414,9 @@ printU64(char *buf, /* char [I64CHARSZ+1]; */
  2361. /** Convert a signed 64-bit number to ASCII. */
  2362. void
  2363. printI64(char *buf, /* char [I64CHARSZ+1]; */
  2364. - const U64 * pu64)
  2365. + const struct counter64 *pu64)
  2366. {
  2367. - U64 u64a;
  2368. + struct counter64 u64a;
  2369. if (pu64->high & 0x80000000) {
  2370. u64a.high = (uint32_t) ~pu64->high;
  2371. @@ -429,11 +429,11 @@ printI64(char *buf, /* char [I64CHARSZ+1]; */
  2372. }
  2373. }
  2374. -/** Convert a signed 64-bit integer from ASCII to U64. */
  2375. +/** Convert a signed 64-bit integer from ASCII to struct counter64. */
  2376. int
  2377. -read64(U64 * i64, const char *str)
  2378. +read64(struct counter64 *i64, const char *str)
  2379. {
  2380. - U64 i64p;
  2381. + struct counter64 i64p;
  2382. unsigned int u;
  2383. int sign = 0;
  2384. int ok = 0;
  2385. diff --git a/snmplib/read_config.c b/snmplib/read_config.c
  2386. index e159c27..ab5b6a3 100644
  2387. --- a/snmplib/read_config.c
  2388. +++ b/snmplib/read_config.c
  2389. @@ -2279,10 +2279,10 @@ read_config_read_memory(int type, char *readfrom,
  2390. return readfrom;
  2391. case ASN_COUNTER64:
  2392. - if (*len < sizeof(U64))
  2393. + if (*len < sizeof(struct counter64))
  2394. return NULL;
  2395. - *len = sizeof(U64);
  2396. - read64((U64 *) dataptr, readfrom);
  2397. + *len = sizeof(struct counter64);
  2398. + read64((struct counter64 *) dataptr, readfrom);
  2399. readfrom = skip_token(readfrom);
  2400. return readfrom;
  2401. }
  2402. diff --git a/testing/fulltests/unit-tests/T015int64_clib.c b/testing/fulltests/unit-tests/T015int64_clib.c
  2403. index 5f5f4b6..66f66b7 100644
  2404. --- a/testing/fulltests/unit-tests/T015int64_clib.c
  2405. +++ b/testing/fulltests/unit-tests/T015int64_clib.c
  2406. @@ -1,4 +1,4 @@
  2407. -/* HEADER Testing 64-bit integer operations (U64). */
  2408. +/* HEADER Testing 64-bit integer operations (struct counter64). */
  2409. int i, j;
  2410. char buf[22];
  2411. @@ -15,7 +15,7 @@ static const int64_t intval[] = {
  2412. };
  2413. for (i = 0; i < sizeof(intval)/sizeof(intval[0]); ++i) {
  2414. - U64 a, b;
  2415. + struct counter64 a, b;
  2416. a.low = (uint32_t)intval[i];
  2417. a.high = (uint32_t)(intval[i] >> 32);
  2418. printI64(buf, &a);
  2419. @@ -27,7 +27,7 @@ for (i = 0; i < sizeof(intval)/sizeof(intval[0]); ++i) {
  2420. for (i = 0; i < sizeof(intval)/sizeof(intval[0]); ++i) {
  2421. for (j = i; j < sizeof(intval)/sizeof(intval[0]); ++j) {
  2422. - U64 a, b;
  2423. + struct counter64 a, b;
  2424. uint64_t d;
  2425. a.low = (uint32_t)intval[i];
  2426. a.high = (uint32_t)(intval[i] >> 32);
  2427. @@ -43,7 +43,7 @@ for (i = 0; i < sizeof(intval)/sizeof(intval[0]); ++i) {
  2428. for (i = 0; i < sizeof(intval)/sizeof(intval[0]); ++i) {
  2429. for (j = i; j < sizeof(intval)/sizeof(intval[0]); ++j) {
  2430. - U64 a, b, c;
  2431. + struct counter64 a, b, c;
  2432. uint64_t d;
  2433. a.low = (uint32_t)intval[i];
  2434. a.high = (uint32_t)(intval[i] >> 32);
  2435. @@ -58,7 +58,7 @@ for (i = 0; i < sizeof(intval)/sizeof(intval[0]); ++i) {
  2436. }
  2437. {
  2438. - U64 old_val, new_val;
  2439. + struct counter64 old_val, new_val;
  2440. old_val.low = 7;
  2441. old_val.high = 0;
  2442. new_val = old_val;
  2443. --
  2444. 2.8.2
  2445. diff -puNr net-snmp-5.7.3.orig/perl/agent/default_store/Makefile.PL net-snmp-5.7.3/perl/agent/default_store/Makefile.PL
  2446. --- net-snmp-5.7.3.orig/perl/agent/default_store/Makefile.PL 2014-12-08 21:23:22.000000000 +0100
  2447. +++ net-snmp-5.7.3/perl/agent/default_store/Makefile.PL 2016-05-11 00:02:32.571453072 +0200
  2448. @@ -1,3 +1,4 @@
  2449. +package agent_default_store;
  2450. use ExtUtils::MakeMaker;
  2451. require 5;
  2452. use Config;
  2453. diff -puNr net-snmp-5.7.3.orig/perl/agent/Makefile.PL net-snmp-5.7.3/perl/agent/Makefile.PL
  2454. --- net-snmp-5.7.3.orig/perl/agent/Makefile.PL 2014-12-08 21:23:22.000000000 +0100
  2455. +++ net-snmp-5.7.3/perl/agent/Makefile.PL 2016-05-11 00:02:32.571453072 +0200
  2456. @@ -1,3 +1,4 @@
  2457. +package agent;
  2458. use ExtUtils::MakeMaker;
  2459. require 5;
  2460. use Config;
  2461. diff -puNr net-snmp-5.7.3.orig/perl/agent/Support/Makefile.PL net-snmp-5.7.3/perl/agent/Support/Makefile.PL
  2462. --- net-snmp-5.7.3.orig/perl/agent/Support/Makefile.PL 2014-12-08 21:23:22.000000000 +0100
  2463. +++ net-snmp-5.7.3/perl/agent/Support/Makefile.PL 2016-05-11 00:02:32.571453072 +0200
  2464. @@ -1,3 +1,4 @@
  2465. +package agent_Support;
  2466. use ExtUtils::MakeMaker;
  2467. require 5;
  2468. use Config;
  2469. diff -puNr net-snmp-5.7.3.orig/perl/AnyData_SNMP/Makefile.PL net-snmp-5.7.3/perl/AnyData_SNMP/Makefile.PL
  2470. --- net-snmp-5.7.3.orig/perl/AnyData_SNMP/Makefile.PL 2014-12-08 21:23:22.000000000 +0100
  2471. +++ net-snmp-5.7.3/perl/AnyData_SNMP/Makefile.PL 2016-05-11 00:02:32.570453079 +0200
  2472. @@ -1,3 +1,4 @@
  2473. +package AnyData_SNMP;
  2474. use ExtUtils::MakeMaker;
  2475. # See lib/ExtUtils/MakeMaker.pm for details of how to influence
  2476. # the contents of the Makefile that is written.
  2477. diff -puNr net-snmp-5.7.3.orig/perl/ASN/Makefile.PL net-snmp-5.7.3/perl/ASN/Makefile.PL
  2478. --- net-snmp-5.7.3.orig/perl/ASN/Makefile.PL 2014-12-08 21:23:22.000000000 +0100
  2479. +++ net-snmp-5.7.3/perl/ASN/Makefile.PL 2016-05-11 00:02:32.551453196 +0200
  2480. @@ -1,3 +1,4 @@
  2481. +package ASN;
  2482. use ExtUtils::MakeMaker;
  2483. require 5;
  2484. use Config;
  2485. diff -puNr net-snmp-5.7.3.orig/perl/default_store/Makefile.PL net-snmp-5.7.3/perl/default_store/Makefile.PL
  2486. --- net-snmp-5.7.3.orig/perl/default_store/Makefile.PL 2014-12-08 21:23:22.000000000 +0100
  2487. +++ net-snmp-5.7.3/perl/default_store/Makefile.PL 2016-05-11 00:02:32.572453066 +0200
  2488. @@ -1,3 +1,4 @@
  2489. +package default_store;
  2490. use ExtUtils::MakeMaker;
  2491. require 5;
  2492. use Config;
  2493. diff -puNr net-snmp-5.7.3.orig/perl/manager/Makefile.PL net-snmp-5.7.3/perl/manager/Makefile.PL
  2494. --- net-snmp-5.7.3.orig/perl/manager/Makefile.PL 2014-12-08 21:23:22.000000000 +0100
  2495. +++ net-snmp-5.7.3/perl/manager/Makefile.PL 2016-05-11 00:02:32.572453066 +0200
  2496. @@ -1,3 +1,4 @@
  2497. +package manager;
  2498. use ExtUtils::MakeMaker;
  2499. # See lib/ExtUtils/MakeMaker.pm for details of how to influence
  2500. # the contents of the Makefile that is written.
  2501. diff -puNr net-snmp-5.7.3.orig/perl/OID/Makefile.PL net-snmp-5.7.3/perl/OID/Makefile.PL
  2502. --- net-snmp-5.7.3.orig/perl/OID/Makefile.PL 2014-12-08 21:23:22.000000000 +0100
  2503. +++ net-snmp-5.7.3/perl/OID/Makefile.PL 2016-05-11 00:02:32.570453079 +0200
  2504. @@ -1,3 +1,4 @@
  2505. +package OID;
  2506. # See lib/ExtUtils/MakeMaker.pm for details of how to influence
  2507. # the contents of the Makefile that is written.
  2508. diff -puNr net-snmp-5.7.3.orig/perl/SNMP/Makefile.PL net-snmp-5.7.3/perl/SNMP/Makefile.PL
  2509. --- net-snmp-5.7.3.orig/perl/SNMP/Makefile.PL 2014-12-08 21:23:22.000000000 +0100
  2510. +++ net-snmp-5.7.3/perl/SNMP/Makefile.PL 2016-05-11 00:02:32.570453079 +0200
  2511. @@ -1,3 +1,4 @@
  2512. +package SNMP;
  2513. use ExtUtils::MakeMaker;
  2514. require 5;
  2515. use Config;
  2516. diff -puNr net-snmp-5.7.3.orig/perl/TrapReceiver/Makefile.PL net-snmp-5.7.3/perl/TrapReceiver/Makefile.PL
  2517. --- net-snmp-5.7.3.orig/perl/TrapReceiver/Makefile.PL 2014-12-08 21:23:22.000000000 +0100
  2518. +++ net-snmp-5.7.3/perl/TrapReceiver/Makefile.PL 2016-05-11 00:02:32.571453072 +0200
  2519. @@ -1,3 +1,4 @@
  2520. +package TrapReceiver;
  2521. use ExtUtils::MakeMaker;
  2522. require 5;
  2523. use Config;