Message ID | CFF8EF42F1132E4CBE2BF0AB6C21C58D6E541C52@ESESSMB107.ericsson.se |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index 04dd048..cc19db4 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp-actions.c @@ -4189,7 +4189,8 @@ parse_ENCAP(char *arg, return error; } /* ofbuf out may have been re-allocated. */ - encap = (struct ofpact_encap *) ((char *)out->data + start_ofs); + encap = ALIGNED_CAST(struct ofpact_encap *, (char *)out->data + start_ofs); encap->n_props = n_props; ofpact_finish_ENCAP(out, &encap); return NULL; @@ -4224,7 +4225,7 @@ format_ed_props(struct ds *s, uint16_t n_props,