Prints no more non-sense if header is encrypted.

FossilOrigin-Name: 51167f99ee1eecb4f18243c96c8771c14c1670e9703ede6a8318f61032a8ea96
This commit is contained in:
7u83@mail.ru 2014-08-02 16:52:38 +00:00
parent 525685128e
commit e95a74c2dc
1 changed files with 9 additions and 0 deletions

View File

@ -27,8 +27,17 @@
int hdr_print(char *str, uint8_t *packet, int len)
{
char *s = str;
if (CWTH_GET_PREAMBLE(packet)==01){
s+=sprintf(s,"\tEncrypted data.");
return s-str;
}
int hlen = CWTH_GET_HLEN(packet);
int rid = CWTH_GET_RID(packet);
int wbid = CWTH_GET_WBID(packet);