Package: dhcpdump
Version : 1.6-1
i have to patch de dhcpdump.c when i want to see a 82 dhcpoption with 2 sub-options :
case 82: // Relay Agent Information
printf("\n");
for (i=j+2;i<j+data[j+1];) {
if (i != j+2) {
printf("\n");
}
printf("%-17s %-13s ", " ",
data[i]>sizeof(relayagent_suboptions)?
"*wrong value*":
relayagent_suboptions[data[i]]);
if (i+data[i+1]>j+data[j+1]) {
printf("*MALFORMED -- TOO LARGE*\n");
break;
}
printHexColon(data+i+2,data[i+1]);
i+=data[i+1]+2;
}
break;
}
Title: dhcpdump display relay agent information