~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to lib/learn.h

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2011, 2012 Nicira, Inc.
 
2
 * Copyright (c) 2011, 2012, 2013 Nicira, Inc.
3
3
 *
4
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
5
 * you may not use this file except in compliance with the License.
17
17
#ifndef LEARN_H
18
18
#define LEARN_H 1
19
19
 
 
20
#include "compiler.h"
20
21
#include "ofp-errors.h"
21
22
 
22
23
struct ds;
23
24
struct flow;
 
25
struct flow_wildcards;
24
26
struct ofpbuf;
25
27
struct ofpact_learn;
26
28
struct ofputil_flow_mod;
38
40
 
39
41
void learn_execute(const struct ofpact_learn *, const struct flow *,
40
42
                   struct ofputil_flow_mod *, struct ofpbuf *ofpacts);
 
43
void learn_mask(const struct ofpact_learn *, struct flow_wildcards *);
41
44
 
42
 
void learn_parse(char *, const struct flow *, struct ofpbuf *ofpacts);
 
45
char *learn_parse(char *, struct ofpbuf *ofpacts) WARN_UNUSED_RESULT;
43
46
void learn_format(const struct ofpact_learn *, struct ds *);
44
47
 
45
48
#endif /* learn.h */