18 year old #if 0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

18 year old #if 0

Martin Pieuchot
Now that they can drink in many countries, let them go away... ok?

Index: netinet6/frag6.c
===================================================================
RCS file: /cvs/src/sys/netinet6/frag6.c,v
retrieving revision 1.79
diff -u -p -r1.79 frag6.c
--- netinet6/frag6.c 7 Nov 2017 16:47:07 -0000 1.79
+++ netinet6/frag6.c 8 Nov 2017 14:26:50 -0000
@@ -352,29 +352,13 @@ frag6_input(struct mbuf **mp, int *offp,
  */
  if (paf6 != NULL) {
  i = (paf6->ip6af_off + paf6->ip6af_frglen) - ip6af->ip6af_off;
- if (i > 0) {
-#if 0 /* suppress the noisy log */
- char ip[INET6_ADDRSTRLEN];
- log(LOG_ERR, "%d bytes of a fragment from %s "
-    "overlaps the previous fragment\n",
-    i,
-    inet_ntop(AF_INET6, &q6->ip6q_src, ip, sizeof(ip)));
-#endif
+ if (i > 0)
  goto flushfrags;
- }
  }
  if (af6 != NULL) {
  i = (ip6af->ip6af_off + ip6af->ip6af_frglen) - af6->ip6af_off;
- if (i > 0) {
-#if 0 /* suppress the noisy log */
- char ip[INET6_ADDRSTRLEN];
- log(LOG_ERR, "%d bytes of a fragment from %s "
-    "overlaps the succeeding fragment",
-    i,
-    inet_ntop(AF_INET6, &q6->ip6q_src, ip, sizeof(ip)));
-#endif
+ if (i > 0)
  goto flushfrags;
- }
  }
 
  insert:
@@ -390,12 +374,6 @@ frag6_input(struct mbuf **mp, int *offp,
  LIST_INSERT_HEAD(&q6->ip6q_asfrag, ip6af, ip6af_list);
  frag6_nfrags++;
  q6->ip6q_nfrag++;
-#if 0 /* xxx */
- if (q6 != TAILQ_FIRST(&frag6_queue)) {
- TAILQ_REMOVE(&frag6_queue, q6, ip6q_queue);
- TAILQ_INSERT_HEAD(&frag6_queue, q6, ip6q_queue);
- }
-#endif
  next = 0;
  for (paf6 = NULL, af6 = LIST_FIRST(&q6->ip6q_asfrag);
     af6 != NULL;