Revision 026a7e5d som/TopologyManager/ncast.c

View differences:

som/TopologyManager/ncast.c
10 10
#include "nccache.h"
11 11
#include "ncast_proto.h"
12 12
#include "proto.h"
13
#include "msg_types.h"
13 14

  
14 15
#define MAX_PEERS 30
15 16

  
......
65 66
    struct ncast_header *h = (struct ncast_header *)buff;
66 67
    struct cache_entry *new, *remote_cache;
67 68

  
68
    if (h->protocol != PROTO_NCAST) {
69
    if (h->protocol != MSG_TYPE_TOPOLOGY) {
69 70
      fprintf(stderr, "NCAST: Wrong protocol!\n");
70 71

  
71 72
      return -1;

Also available in: Unified diff