Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mmove a define into virtunoid-config.h

  • Loading branch information...
commit e02534b7b01bce3fb436b4a6b5df08e5389319cb 1 parent 64b4ce9
Nelson Elhage authored
Showing with 5 additions and 3 deletions.
  1. +5 −0 virtunoid-config.h
  2. +0 −3  virtunoid.c
5 virtunoid-config.h
View
@@ -54,4 +54,9 @@
#define HPET_CFG 0x959e20
#define SIZEOF_HPET_CFG 121
+/* Offset of the ICMP data inside qemu's net queue buffer */
+/* = sizeof(NetPacket) + sizeof(iphdr) + sizeof(icmphdr) + some
+ other crap I've forgotten */
+#define PACKET_OFFSET 74
+
#undef HAVE_TIMER_SCALE
3  virtunoid.c
View
@@ -244,9 +244,6 @@ hva_t gva_to_hva(gva_t addr) {
return gpa_to_hva(gva_to_gpa(addr));
}
-/* Offset of the ICMP header inside qemu's net queue buffer */
-#define PACKET_OFFSET 74
-
#define PORT 0xae08
#define QEMU_GATEWAY "10.0.2.2"
Please sign in to comment.
Something went wrong with that request. Please try again.