mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 00:59:55 +00:00
some more ipv6 code
This commit is contained in:
1 parent
d5e60b1ba0
commit
a53cf6534d
12 files changed
+528
-60
No files matched your search
@@ -140,6 +140,13 @@ grub_net_recv_udp_packet (struct grub_net_buff *nb,
|
||||
grub_net_udp_socket_t sock;
|
||||
grub_err_t err;
|
||||
|
||||
/* Ignore broadcast. */
|
||||
if (!inf)
|
||||
{
|
||||
grub_netbuff_free (nb);
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
udph = (struct udphdr *) nb->data;
|
||||
if (nb->tail - nb->data < (grub_ssize_t) sizeof (*udph))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user