diff
2 + #define MAX_ICMPMSG_STATISTICS_SIZE 512  // Assuming the array size is 512
3   if (field + 256 < MAX_ICMPMSG_STATISTICS_SIZE) {
4       SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, field+256);
5   } else {
6       // Handle error or log warning
7   }
