Permalink
Browse files

Mmove a define into virtunoid-config.h

  • Loading branch information...
1 parent 64b4ce9 commit e02534b7b01bce3fb436b4a6b5df08e5389319cb @nelhage committed Aug 9, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −0 virtunoid-config.h
  2. +0 −3 virtunoid.c
View
5 virtunoid-config.h
@@ -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
View
3 virtunoid.c
@@ -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"

0 comments on commit e02534b

Please sign in to comment.