Added functionality to print transport header debugs via hdr_print. (For hdr_print see libcapwap)

FossilOrigin-Name: b92e12c81585fa1b14c9221276745a3c53638c7ffec563bb8f5f5e37039cb36f
This commit is contained in:
user@SRH-Linux-01.(none) 2014-07-29 17:30:49 +00:00
parent 32a1652a06
commit a9da5a53ac
1 changed files with 5 additions and 0 deletions

View File

@ -190,6 +190,11 @@ void process_cw_ctrl_packet(int index,struct sockaddr * addr, uint8_t * buffer,
{
int sock = socklist[index].reply_sockfd;
char hdrstr[1024];
hdr_print(hdrstr,buffer,len);
cw_log_debug2("Header\n%s\n",hdrstr);
/* first of all check preamble */
int preamble = CWTH_GET_PREAMBLE(buffer);