libpgen
libpgen copied to clipboard
Add check-script for PGEN-Core, PGEN-IO
u_char buf[1000]; int buflen; /* recv packet */
pgen_packet* pack = &arp; pack->cast(buf, buflen);
if(buflen != pack->len()){ printf("length error \n"); }else{ int res = memcmp(buf, pack->data()); printf("result: %d \n", res); }