Lines Matching defs:message
94 uint16_t message;
133 static void set_message(uint16_t message)
135 uint16_t length = lengths[message];
141 outgoing.message = htons(message);
153 /* We are going to read a new message if incoming.expect is 0. */
159 /* The longest message defined in RFC 2637 is 220 bytes, but the protocol
161 * message but only keep the first 220 bytes before passing up. */
195 log_print(DEBUG, "Invalid message length");
201 /* Now we have a complete message. Reset incoming.expect. */
205 /* Return 1 if it is a control message. */
209 log_print(DEBUG, "Ignored non-control message (type = %d)",
267 log_print(DEBUG, "Control message too short");
270 incoming.message = ntohs(incoming.message);
271 if (incoming.message > MESSAGE_MAX || !messages[incoming.message]) {
272 log_print(DEBUG, "Received UNKNOWN %d", incoming.message);
275 if (incoming.length < lengths[incoming.message]) {
277 messages[incoming.message], incoming.length);
281 switch(incoming.message) {
363 log_print(DEBUG, "Recevied %s", messages[incoming.message]);
385 /* We reach here if we got an unexpected message. Just log it. */
386 log_print(DEBUG, "Received UNEXPECTED %s", messages[incoming.message]);