Revision 026a7e5d som/TopologyManager/ncast_proto.c

View differences:

som/TopologyManager/ncast_proto.c
6 6
#include "nccache.h"
7 7
#include "proto.h"
8 8
#include "ncast_proto.h"
9
#include "msg_types.h"
9 10

  
10 11
static struct cache_entry *myEntry;
11 12

  
......
44 45
  }
45 46
#endif
46 47
  dst = nodeid(c, 0);
47
  h->protocol = PROTO_NCAST;
48
  h->protocol = MSG_TYPE_TOPOLOGY;
48 49
  h->type = NCAST_REPLY;
49 50
  len = ncast_payload_fill(pkt + sizeof(struct ncast_header), 1500 - sizeof(struct ncast_header), local_cache, dst);
50 51

  
......
59 60
  struct ncast_header *h = (struct ncast_header *)pkt;
60 61
  int len;
61 62

  
62
  h->protocol = PROTO_NCAST;
63
  h->protocol = MSG_TYPE_TOPOLOGY;
63 64
  h->type = NCAST_QUERY;
64 65
  len = ncast_payload_fill(pkt + sizeof(struct ncast_header), 1500 - sizeof(struct ncast_header), local_cache, dst);
65 66
  return send_data(nodeid(myEntry, 0), dst, pkt, sizeof(struct ncast_header) + len);

Also available in: Unified diff