Split emunet into platform-dependent and GRUB-binding parts. Keep
platform-dependent part in kernel for easy access to OS functions.
This commit is contained in:
parent
25ac643a54
commit
70671037c8
9 changed files with 220 additions and 92 deletions
|
@ -16,6 +16,35 @@
|
|||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <grub/dl.h>
|
||||
#include <config.h>
|
||||
#include <config-util.h>
|
||||
|
||||
GRUB_MOD_LICENSE ("GPLv3+");
|
||||
#include <grub/i18n.h>
|
||||
#include <grub/emu/net.h>
|
||||
|
||||
grub_ssize_t
|
||||
grub_emunet_send (const void *packet __attribute__ ((unused)),
|
||||
grub_size_t sz __attribute__ ((unused)))
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
grub_ssize_t
|
||||
grub_emunet_receive (void *packet __attribute__ ((unused)),
|
||||
grub_size_t sz __attribute__ ((unused)))
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
grub_emunet_create (grub_size_t *mtu)
|
||||
{
|
||||
*mtu = 1500;
|
||||
return -1;
|
||||
}
|
||||
|
||||
void
|
||||
grub_emunet_close (void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue