Revision 339a662d ml.c

View differences:

ml.c
1103 1103
	}
1104 1104

  
1105 1105
	msg_h = (struct msg_header *) msgbuf;
1106

  
1107
	//verify minimum size
1108
	if (recvSize < sizeof(struct msg_header)) {
1109
	  info("UDP packet too small, can't be an ML packet");
1110
	  return;
1111
	}
1112

  
1113
	//TODO add more verifications
1114

  
1106 1115
	bufptr += MSG_HEADER_SIZE + msg_h->len_mon_packet_hdr;
1107 1116
	msg_size = recvSize - MSG_HEADER_SIZE - msg_h->len_mon_packet_hdr;
1108 1117

  

Also available in: Unified diff