Revision bf8e2cfd src/Cache/topo_proto.c

View differences:

src/Cache/topo_proto.c
24 24
  int i;
25 25
  uint8_t *p = payload;
26 26

  
27
  if (!max_peers) max_peers = 1000; // just to be sure to dump the whole cache...
27
  if (!max_peers) max_peers = 1000; // FIXME: just to be sure to dump the whole cache...
28 28
  p += cache_header_dump(p, c, include_me);
29 29
  if (include_me) {
30 30
    p += entry_dump(p, context->myEntry, 0, size - (p - payload));
......
95 95

  
96 96
  con = malloc(sizeof(struct topo_context));
97 97
  if (!con) return NULL;
98
  con->pkt_size = 60 * 1024;
98
  con->pkt_size = 60 * 1024;	// FIXME: Do something smarter, here!
99 99
  con->pkt = malloc(con->pkt_size);
100 100
  if (!con->pkt) {
101 101
    free(con);

Also available in: Unified diff