"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "print-domain.c" between
tcpdump-4.99.0.tar.gz and tcpdump-4.99.1.tar.gz

About: tcpdump is a tool for network monitoring and data acquisition.

print-domain.c  (tcpdump-4.99.0):print-domain.c  (tcpdump-4.99.1)
skipping to change at line 795 skipping to change at line 795
char ntop_buf[INET6_ADDRSTRLEN]; char ntop_buf[INET6_ADDRSTRLEN];
if (!ND_TTEST_1(cp)) if (!ND_TTEST_1(cp))
return(NULL); return(NULL);
pbit = GET_U_1(cp); pbit = GET_U_1(cp);
pbyte = (pbit & ~7) / 8; pbyte = (pbit & ~7) / 8;
if (pbit > 128) { if (pbit > 128) {
ND_PRINT(" %u(bad plen)", pbit); ND_PRINT(" %u(bad plen)", pbit);
break; break;
} else if (pbit < 128) { } else if (pbit < 128) {
if (!ND_TTEST_LEN(cp + 1, sizeof(a) - pbyte))
return(NULL);
memset(a, 0, sizeof(a)); memset(a, 0, sizeof(a));
memcpy(a + pbyte, cp + 1, sizeof(a) - pbyte); GET_CPY_BYTES(a + pbyte, cp + 1, sizeof(a) - pbyte);
ND_PRINT(" %u %s", pbit, ND_PRINT(" %u %s", pbit,
addrtostr6(&a, ntop_buf, sizeof(ntop_buf))); addrtostr6(&a, ntop_buf, sizeof(ntop_buf)));
} }
if (pbit > 0) { if (pbit > 0) {
ND_PRINT(" "); ND_PRINT(" ");
if (fqdn_print(ndo, cp + 1 + sizeof(a) - pbyte, bp) == NU LL) if (fqdn_print(ndo, cp + 1 + sizeof(a) - pbyte, bp) == NU LL)
return(NULL); return(NULL);
} }
break; break;
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)