Przeglądaj źródła

Kill off some warnings-problematic debug statements in ndp.c; the code

is non-functional anyway.
tags/v0.9.3
Michael Brown 16 lat temu
rodzic
commit
798f7f6b8e
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2
    4
      src/net/ndp.c

+ 2
- 4
src/net/ndp.c Wyświetl plik

80
 		memset ( ndp->ll_addr, 0, netdev->ll_protocol->ll_addr_len );
80
 		memset ( ndp->ll_addr, 0, netdev->ll_protocol->ll_addr_len );
81
 	}
81
 	}
82
 	ndp->state = state;
82
 	ndp->state = state;
83
-	DBG ( "New neighbour cache entry (%d): IP6 %s => %s %s\n",
84
-	      ( ndp - ndp_table ),
83
+	DBG ( "New neighbour cache entry: IP6 %s => %s %s\n",
85
 	      inet6_ntoa ( ndp->in6 ), netdev->ll_protocol->name,
84
 	      inet6_ntoa ( ndp->in6 ), netdev->ll_protocol->name,
86
 	      netdev->ll_protocol->ntoa ( ndp->ll_addr ) );
85
 	      netdev->ll_protocol->ntoa ( ndp->ll_addr ) );
87
 }
86
 }
118
 
117
 
119
 	/* Check if the entry was already created */
118
 	/* Check if the entry was already created */
120
 	if ( ndp ) {
119
 	if ( ndp ) {
121
-		DBG ( "Awaiting neighbour advertisement (cache entry %d)\n",
122
-		      ( ndp - ndp_table ) );
120
+		DBG ( "Awaiting neighbour advertisement\n" );
123
 		/* For test */
121
 		/* For test */
124
 //		ndp->state = NDP_STATE_REACHABLE;
122
 //		ndp->state = NDP_STATE_REACHABLE;
125
 //		memcpy ( ndp->ll_addr, netdev->ll_addr, 6 );
123
 //		memcpy ( ndp->ll_addr, netdev->ll_addr, 6 );

Ładowanie…
Anuluj
Zapisz