Merge pull request #234 from elms/all-fields-ip-printf-format
Fix `all-fields` to print IP octets as uint8pull/236/head
commit
e98762b110
|
@ -178,9 +178,9 @@ int main(int argc, char** argv)
|
||||||
int j;
|
int j;
|
||||||
for (j = 0; j < gn->d.ip->length; j++) {
|
for (j = 0; j < gn->d.ip->length; j++) {
|
||||||
if (j < gn->d.ip->length - 1)
|
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
|
else
|
||||||
printf("%d", (int) gn->d.ip->strData[j]);
|
printf("%u", (uint8_t)gn->d.ip->strData[j]);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue