mirror of
https://git.freebsd.org/ports.git
synced 2025-07-02 18:10:38 -04:00
38 lines
1 KiB
Diff
38 lines
1 KiB
Diff
--- qemu-0.15.0/net.c.orig
|
|
+++ qemu-0.15.0/net.c
|
|
@@ -30,6 +30,7 @@
|
|
#include "net/dump.h"
|
|
#include "net/slirp.h"
|
|
#include "net/vde.h"
|
|
+#include "net/udp.h"
|
|
#include "net/util.h"
|
|
#include "monitor.h"
|
|
#include "qemu-common.h"
|
|
@@ -1029,6 +1030,27 @@ static const struct {
|
|
},
|
|
},
|
|
#endif
|
|
+ [NET_CLIENT_TYPE_UDP] = {
|
|
+ .type = "udp",
|
|
+ .init = net_init_udp,
|
|
+ .desc = {
|
|
+ NET_COMMON_PARAMS_DESC,
|
|
+ {
|
|
+ .name = "sport",
|
|
+ .type = QEMU_OPT_NUMBER,
|
|
+ .help = "source port number",
|
|
+ }, {
|
|
+ .name = "daddr",
|
|
+ .type = QEMU_OPT_STRING,
|
|
+ .help = "destination IP address",
|
|
+ }, {
|
|
+ .name = "dport",
|
|
+ .type = QEMU_OPT_NUMBER,
|
|
+ .help = "destination port number",
|
|
+ },
|
|
+ { /* end of list */ }
|
|
+ },
|
|
+ },
|
|
[NET_CLIENT_TYPE_DUMP] = {
|
|
.type = "dump",
|
|
.init = net_init_dump,
|