Fix `all-fields` to print IP octets as uint8
`IP:10.185.1.1` instead of `IP:10.-71.1.1`pull/234/head
parent
11613bb668
commit
bf41bf57d9
|
|
@ -178,9 +178,9 @@ int main(int argc, char** argv)
|
|||
int j;
|
||||
for (j = 0; j < gn->d.ip->length; j++) {
|
||||
if (j < gn->d.ip->length - 1)
|
||||
printf("%d.", (int) gn->d.ip->strData[j]);
|
||||
printf("%u.", (uint8_t)gn->d.ip->strData[j]);
|
||||
else
|
||||
printf("%d", (int) gn->d.ip->strData[j]);
|
||||
printf("%u", (uint8_t)gn->d.ip->strData[j]);
|
||||
}
|
||||
printf("\n");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue