support ip fragmentation

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-07-09 00:27:27 +02:00
parent e2955971a3
commit fecdbd6b17
9 changed files with 374 additions and 98 deletions

View file

@ -57,6 +57,8 @@ send_ethernet_packet (struct grub_net_network_level_interface *inf,
struct etherhdr *eth;
grub_err_t err;
COMPILE_TIME_ASSERT (sizeof (*eth) < GRUB_NET_MAX_LINK_HEADER_SIZE);
err = grub_netbuff_push (nb, sizeof (*eth));
if (err)
return err;