PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/net-analyzer/nstats/files/nstats-0.4-glibc24.patch

https://gitlab.com/rindeal/gentoo-cvs-history-archive
Patch | 102 lines | 97 code | 5 blank | 0 comment | 0 complexity | 20f9b368750ca3fab8a3e68f95a29084 MD5 | raw file
  1. --- a/src/packet.c
  2. +++ b/src/packet.c
  3. @@ -148,9 +148,9 @@
  4. stats.ip.ipv6.icmp.dst_unreach.s_admin += hdr->len;
  5. break;
  6. - case ICMP6_DST_UNREACH_NOTNEIGHBOR:
  7. - stats.ip.ipv6.icmp.dst_unreach.notneighbor++;
  8. - stats.ip.ipv6.icmp.dst_unreach.s_notneighbor += hdr->len;
  9. + case ICMP6_DST_UNREACH_BEYONDSCOPE:
  10. + stats.ip.ipv6.icmp.dst_unreach.beyondscope++;
  11. + stats.ip.ipv6.icmp.dst_unreach.s_beyondscope += hdr->len;
  12. break;
  13. case ICMP6_DST_UNREACH_ADDR:
  14. @@ -219,21 +219,6 @@
  15. stats.ip.ipv6.icmp.s_echo_reply += hdr->len;
  16. break;
  17. - case ICMP6_MEMBERSHIP_QUERY:
  18. - stats.ip.ipv6.icmp.mbrship_query++;
  19. - stats.ip.ipv6.icmp.s_mbrship_query += hdr->len;
  20. - break;
  21. -
  22. - case ICMP6_MEMBERSHIP_REPORT:
  23. - stats.ip.ipv6.icmp.mbrship_report++;
  24. - stats.ip.ipv6.icmp.s_mbrship_report += hdr->len;
  25. - break;
  26. -
  27. - case ICMP6_MEMBERSHIP_REDUCTION:
  28. - stats.ip.ipv6.icmp.mbrship_reduction++;
  29. - stats.ip.ipv6.icmp.s_mbrship_reduction += hdr->len;
  30. - break;
  31. -
  32. case ND_ROUTER_SOLICIT:
  33. stats.ip.ipv6.icmp.nd_router_solicit++;
  34. stats.ip.ipv6.icmp.s_nd_router_solicit += hdr->len;
  35. --- a/src/stats.c
  36. +++ b/src/stats.c
  37. @@ -316,15 +316,6 @@
  38. print_line("Echo Reply:", ICMP6.echo_reply, ICMP6.cnt,
  39. ICMP6.s_echo_reply, ICMP6.bs, .0);
  40. NEXT_ROW;
  41. - print_line("MbrShip Query:", ICMP6.mbrship_query, ICMP6.cnt,
  42. - ICMP6.s_mbrship_query, ICMP6.bs, .0);
  43. - NEXT_ROW;
  44. - print_line("MbrShip Report:", ICMP6.mbrship_report, ICMP6.cnt,
  45. - ICMP6.s_mbrship_report, ICMP6.bs, .0);
  46. - NEXT_ROW;
  47. - print_line("MbrShip Reduct.:", ICMP6.mbrship_reduction, ICMP6.cnt,
  48. - ICMP6.s_mbrship_reduction, ICMP6.bs, .0);
  49. - NEXT_ROW;
  50. print_line("ND Rtr Solicit:", ICMP6.nd_router_solicit, ICMP6.cnt,
  51. ICMP6.s_nd_router_solicit, ICMP6.bs, .0);
  52. NEXT_ROW;
  53. --- a/src/stats.h
  54. +++ b/src/stats.h
  55. @@ -233,7 +233,7 @@
  56. cnt_t noroute; cnt_t s_noroute;
  57. cnt_t admin; cnt_t s_admin;
  58. - cnt_t notneighbor; cnt_t s_notneighbor;
  59. + cnt_t beyondscope; cnt_t s_beyondscope;
  60. cnt_t addr; cnt_t s_addr;
  61. cnt_t noport; cnt_t s_noport;
  62. @@ -265,9 +265,6 @@
  63. cnt_t pkt_too_big; cnt_t s_pkt_too_big;
  64. cnt_t echo_request; cnt_t s_echo_request;
  65. cnt_t echo_reply; cnt_t s_echo_reply;
  66. - cnt_t mbrship_query; cnt_t s_mbrship_query;
  67. - cnt_t mbrship_report; cnt_t s_mbrship_report;
  68. - cnt_t mbrship_reduction; cnt_t s_mbrship_reduction;
  69. cnt_t nd_router_solicit; cnt_t s_nd_router_solicit;
  70. cnt_t nd_router_advert; cnt_t s_nd_router_advert;
  71. cnt_t nd_neighbor_solicit; cnt_t s_nd_neighbor_solicit;
  72. --- a/src/nstats.c
  73. +++ b/src/nstats.c
  74. @@ -528,12 +528,6 @@
  75. ICMP6.s_echo_request, ICMP6.bs);
  76. print_line("Echo Reply:", ICMP6.echo_reply, ICMP6.cnt,
  77. ICMP6.s_echo_reply, ICMP6.bs);
  78. - print_line("MbrShip Query:", ICMP6.mbrship_query, ICMP6.cnt,
  79. - ICMP6.s_mbrship_query, ICMP6.bs);
  80. - print_line("MbrShip Report:", ICMP6.mbrship_report, ICMP6.cnt,
  81. - ICMP6.s_mbrship_report, ICMP6.bs);
  82. - print_line("MbrShip Reduct.:", ICMP6.mbrship_reduction, ICMP6.cnt,
  83. - ICMP6.s_mbrship_reduction, ICMP6.bs);
  84. print_line("ND Rtr Solicit:", ICMP6.nd_router_solicit, ICMP6.cnt,
  85. ICMP6.s_nd_router_solicit, ICMP6.bs);
  86. print_line("ND Rtr Advert:", ICMP6.nd_router_advert, ICMP6.cnt,
  87. @@ -553,8 +547,8 @@
  88. DESTU6.s_noroute, DESTU6.bs);
  89. print_line("Admin:", DESTU6.admin, DESTU6.cnt,
  90. DESTU6.s_admin, DESTU6.bs);
  91. - print_line("Not Neighbor:", DESTU6.notneighbor, DESTU6.cnt,
  92. - DESTU6.s_notneighbor, DESTU6.bs);
  93. + print_line("Beyond Scope:", DESTU6.beyondscope, DESTU6.cnt,
  94. + DESTU6.s_beyondscope, DESTU6.bs);
  95. print_line("Addr:", DESTU6.addr, DESTU6.cnt,
  96. DESTU6.s_addr, DESTU6.bs);
  97. print_line("No Port:", DESTU6.noport, DESTU6.cnt,