blob: de8cce84bc42753f7ad4b8acd5a9be20072a92ae [file] [log] [blame]
Rich Lanecc327672014-04-10 13:37:35 -07001/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University */
2/* Copyright (c) 2011, 2012 Open Networking Foundation */
3/* Copyright (c) 2012, 2013 Big Switch Networks, Inc. */
4/* See the file LICENSE.loci which should have been included in the source distribution */
5
6/**
7 *
8 * AUTOMATICALLY GENERATED FILE. Edits will be lost on regen.
9 *
10 * Declarations of message validation functions. These functions check that an
11 * OpenFlow message is well formed. Specifically, they check internal length
12 * fields.
13 */
14
15#if !defined(_LOCI_VALIDATOR_H_)
16#define _LOCI_VALIDATOR_H_
17
18#include <loci/loci.h>
19
20/*
21 * Validate an OpenFlow message.
22 * @return 0 if message is valid, -1 otherwise.
23 */
24extern int of_validate_message(of_message_t msg, int len);
25
26#endif /* _LOCI_VALIDATOR_H_ */