exchange_lookup
extern struct exchange *exchange_lookup(u_int8_t *, int);
msg->exchange = exchange_lookup(buf, 1);
msg->exchange = exchange_lookup(buf, 0);