summaryrefslogtreecommitdiff
path: root/debian/patches/no-unaligned-access.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/no-unaligned-access.patch')
-rw-r--r--debian/patches/no-unaligned-access.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/debian/patches/no-unaligned-access.patch b/debian/patches/no-unaligned-access.patch
deleted file mode 100644
index 9bec4c3..0000000
--- a/debian/patches/no-unaligned-access.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Author: Steve Langasek <steve.langasek@ubuntu.com>
-Description: Fix unaligned access in buffer copies
- There's a TODO in the source about fixing alignment of the address being
- copied. This unaligned access is a problem on armhf with some kernel
- configurations, and is generally slower even on other architectures due
- to the fixups. Just use memcpy instead which is bound to do the right
- thing.
-
-Index: nfstrace-0.4.2/src/filtration/sessions_hash.h
-===================================================================
---- nfstrace-0.4.2.orig/src/filtration/sessions_hash.h
-+++ nfstrace-0.4.2/src/filtration/sessions_hash.h
-@@ -105,12 +105,8 @@
-
- static inline void copy_ipv6(uint32_t dst[4], const uint8_t src[16])
- {
-- // TODO:: fix alignment of src!
-- const uint32_t* s { reinterpret_cast<const uint32_t*>(src) };
-- dst[0] = s[0];
-- dst[1] = s[1];
-- dst[2] = s[2];
-- dst[3] = s[3];
-+ uint8_t* d { reinterpret_cast<uint8_t*>(dst) };
-+ memcpy(d, src, sizeof(uint32_t) * 4);
- }
-
- struct IPv6PortsKeyHash