summaryrefslogtreecommitdiff
path: root/csum.h
diff options
context:
space:
mode:
Diffstat (limited to 'csum.h')
-rw-r--r--csum.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/csum.h b/csum.h
index de76755..96211c5 100644
--- a/csum.h
+++ b/csum.h
@@ -182,10 +182,10 @@ static inline uint16_t p6_csum(const struct ip6_hdr *ip6, const uint8_t *data,
uint8_t proto;
} __packed ph;
- memcpy(&ph.src, ip6->ip6_src.s6_addr, sizeof(ph.src));
- memcpy(&ph.dst, ip6->ip6_dst.s6_addr, sizeof(ph.dst));
+ fmemcpy(&ph.src, ip6->ip6_src.s6_addr, sizeof(ph.src));
+ fmemcpy(&ph.dst, ip6->ip6_dst.s6_addr, sizeof(ph.dst));
ph.len = htons(len);
- memset(&ph.mbz, 0, sizeof(ph.mbz));
+ fmemset(&ph.mbz, 0, sizeof(ph.mbz));
ph.proto = next_proto;
vec[0].ptr = (const uint8_t *) (void *) &ph;