Better displaying of fragmented packets..
FossilOrigin-Name: 9709b21c3291ecde555e3ca1d249dc1bb98e862a21699a1ed96c0ea80054d27a
This commit is contained in:
parent
d3ea9b3343
commit
c42cf076d1
@ -155,7 +155,12 @@ int cw_format_pkt(char *dst,int level,struct conn *conn, uint8_t * packet, int l
|
|||||||
char *s=dst;
|
char *s=dst;
|
||||||
switch (level) {
|
switch (level) {
|
||||||
case DBG_PKT_IN:
|
case DBG_PKT_IN:
|
||||||
s+=sprintf(s,"From %s",sock_addr2str(from));
|
if (cw_get_hdr_flag_f(packet)){
|
||||||
|
s+=sprintf(s,"Fragment from %s",sock_addr2str(from));
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
s+=sprintf(s,"From %s",sock_addr2str(from));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case DBG_PKT_OUT:
|
case DBG_PKT_OUT:
|
||||||
s+=sprintf(s,"To %s",sock_addr2str(from));
|
s+=sprintf(s,"To %s",sock_addr2str(from));
|
||||||
@ -172,11 +177,11 @@ int cw_format_pkt(char *dst,int level,struct conn *conn, uint8_t * packet, int l
|
|||||||
if (len<4)
|
if (len<4)
|
||||||
goto abort;
|
goto abort;
|
||||||
|
|
||||||
|
/*
|
||||||
if (cw_get_hdr_flag_f(packet)){
|
if (cw_get_hdr_flag_f(packet)){
|
||||||
s+=sprintf(s," (fragmented)");
|
s+=sprintf(s," (fragmented)");
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
int hlen = cw_get_hdr_hlen(packet);
|
int hlen = cw_get_hdr_hlen(packet);
|
||||||
int rid = cw_get_hdr_rid(packet);
|
int rid = cw_get_hdr_rid(packet);
|
||||||
int wbid = cw_get_hdr_wbid(packet);
|
int wbid = cw_get_hdr_wbid(packet);
|
||||||
|
Loading…
Reference in New Issue
Block a user