… | |
… | |
32 | |
32 | |
33 | void *net_packet::operator new(size_t s) |
33 | void *net_packet::operator new(size_t s) |
34 | { |
34 | { |
35 | if (s > sizeof (data_packet)) |
35 | if (s > sizeof (data_packet)) |
36 | { |
36 | { |
37 | slog (L_ERR, _("FATAL: allocation for network packet larger than max supported packet size (%d > %d).\n"), |
37 | slog (L_ERR, _("FATAL: allocation for network packet larger than max supported packet size (%d > %d)."), |
38 | s, sizeof (data_packet)); |
38 | s, sizeof (data_packet)); |
39 | abort (); |
39 | abort (); |
40 | } |
40 | } |
41 | |
41 | |
42 | if (pkt_cachen) |
42 | if (pkt_cachen) |