An upcoming patch will add the first user. Signed-off-by: Ben Pfaff <b...@nicira.com> --- lib/match.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/match.h b/lib/match.h index 6633304..638c49d 100644 --- a/lib/match.h +++ b/lib/match.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014 Nicira, Inc. + * Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,6 +35,9 @@ struct match { struct flow_wildcards wc; }; +/* Initializer for a "struct match" that matches every packet. */ +#define MATCH_CATCHALL_INITIALIZER { .flow.dl_type = 0 } + void match_init(struct match *, const struct flow *, const struct flow_wildcards *); void match_wc_init(struct match *match, const struct flow *flow); -- 2.1.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev