summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-26 12:20:30 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-26 12:20:30 +0100
commit6ebd855150dbea53e2762f7e4433d344888f06f0 (patch)
tree912be1c23b10b492f5c95777e76dbff2c16ad5ff /debian/patches
parent68a465bbe351840d554c03bf5cb8cb2a981be2cb (diff)
add undo_net_size_fix.patch
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/series1
-rw-r--r--debian/patches/undo_net_size_fix.patch12
2 files changed, 13 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series
index b0f3b56f..310aec24 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -76,3 +76,4 @@ libmachdev-remove-static-linking-hack.patch
0026-hurd-add-intranpayload-functions-to-all-hurd-types.patch
0027-libports-use-protected-payloads-to-optimize-the-obje.patch
0028-libports-Fix-build.patch
+undo_net_size_fix.patch
diff --git a/debian/patches/undo_net_size_fix.patch b/debian/patches/undo_net_size_fix.patch
new file mode 100644
index 00000000..47c5e54d
--- /dev/null
+++ b/debian/patches/undo_net_size_fix.patch
@@ -0,0 +1,12 @@
+diff --git a/libmachdev/net.c b/libmachdev/net.c
+index 53edcd0..ea56b8b 100644
+--- a/libmachdev/net.c
++++ b/libmachdev/net.c
+@@ -245,7 +245,6 @@ netif_rx_handle (char *data, int len, struct net_device *dev)
+ /* remember message sizes must be rounded up */
+ net_msg->msg_hdr.msgh_size =
+ (((mach_msg_size_t) (sizeof (struct net_rcv_msg)
+- - sizeof net_msg->sent
+ - NET_RCV_MAX + pack_size)) + 3) & ~3;
+
+ /* Copy packet into message buffer. */