(unsigned int)(sizeof *hdr - sizeof hdr->rec_size));
return FALSE;
}
- if (rec_size > WTAP_MAX_PACKET_SIZE) {
+ if (rec_size > WTAP_MAX_PACKET_SIZE_STANDARD) {
/*
* Probably a corrupt capture file; return an error,
* so that our caller doesn't blow up trying to allocate
*/
*err = WTAP_ERR_BAD_FILE;
*err_info = g_strdup_printf("aethra: File has %u-byte packet, bigger than maximum of %u",
- rec_size, WTAP_MAX_PACKET_SIZE);
+ rec_size, WTAP_MAX_PACKET_SIZE_STANDARD);
return FALSE;
}