Initial commit
FossilOrigin-Name: c53d95729c009f8f80a7d63847cef7668ff73f8af0523ab65f7734696f85399c
This commit is contained in:
13
src/capwap/cwmsg_set_control_header.c
Normal file
13
src/capwap/cwmsg_set_control_header.c
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
#include "cwmsg.h"
|
||||
|
||||
void cwmsg_set_control_header(struct cwmsg * cwmsg,int msgtype, int seqnum)
|
||||
{
|
||||
uint32_t val;
|
||||
val = htonl(msgtype);
|
||||
*((uint32_t*)(cwmsg->ctrlhdr))=htonl(val);
|
||||
val = (seqnum<<24)|(cwmsg->pos<<8);
|
||||
*((uint32_t*)(cwmsg->ctrlhdr+4))=htonl(val);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user