This is for convenience only, so that when translating a payload expression into an exthdr one we can't accidentally address data out of bounds. Signed-off-by: Phil Sutter <phil@xxxxxx> --- include/exthdr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/exthdr.h b/include/exthdr.h index a2647ee142dcd..a5522ea5b5e5d 100644 --- a/include/exthdr.h +++ b/include/exthdr.h @@ -14,7 +14,7 @@ struct exthdr_desc { const char *name; uint8_t type; - struct proto_hdr_template templates[10]; + struct proto_hdr_template templates[PROTO_HDRS_MAX]; }; extern struct expr *exthdr_expr_alloc(const struct location *loc, -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html