diff options
author | Damien Zammit <damien@zamaudio.com> | 2025-07-22 09:23:42 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-08-01 00:27:39 +0200 |
commit | 1d5c92654b2ebd95bee4f2bc4690b883c468b1a4 (patch) | |
tree | 97cd1da043120d6d17a3be843301dde97bca62a4 /rumpnet/net-rump.h | |
parent | ecbc38df9f62ecffd1349b6f3b4fd234dbc08fe4 (diff) |
rumpnet: Add device translator for (Intel) NICsHEADv0.9.git20250801master
This adds a working rump driver for /dev/wmX cards,
which are Intel i8254x Gigabit Ethernet devices.
(See man.netbsd.org for "wm(4)")
This should be easily extended to support other NICs
by contributing some makefile foo to netbsd/rump.
TESTED:
- On UP+apic it works 100% with hurd-i386.
- On SMP it also works 100% with hurd-i386.
Example usage:
settrans -fgap /dev/rumpnet /hurd/rumpnet
settrans -fgap /dev/wm0 /hurd/devnode -M /dev/rumpnet wm0
settrans -fgap /servers/socket/2 /hurd/pfinet -i /dev/wm0
ifup /dev/wm0
TODO: check tcpdump support
Requires latest master of librump for nofifofs dynamic lib.
Message-ID: <20250722092324.414844-1-damien@zamaudio.com>
Diffstat (limited to 'rumpnet/net-rump.h')
-rw-r--r-- | rumpnet/net-rump.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/rumpnet/net-rump.h b/rumpnet/net-rump.h new file mode 100644 index 00000000..327b80e8 --- /dev/null +++ b/rumpnet/net-rump.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Free Software Foundation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef _RUMP_NET_H_ +#define _RUMP_NET_H_ + +void rump_register_net(void); + +#endif |