blob: f1b1297692e233915bb44b9ff2a8ff3ad9003610 [file] [log] [blame]
tom0eb04ca2014-08-25 14:34:51 -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// This library was generated by the LoxiGen Compiler.
5// See the file LICENSE.txt which should have been included in the source distribution
6
7// Automatically generated by LOXI from template of_interface.java
8// Do not modify
9
10package org.projectfloodlight.openflow.protocol;
11
12import org.projectfloodlight.openflow.protocol.*;
13import org.projectfloodlight.openflow.protocol.action.*;
14import org.projectfloodlight.openflow.protocol.actionid.*;
15import org.projectfloodlight.openflow.protocol.bsntlv.*;
16import org.projectfloodlight.openflow.protocol.errormsg.*;
17import org.projectfloodlight.openflow.protocol.meterband.*;
18import org.projectfloodlight.openflow.protocol.instruction.*;
19import org.projectfloodlight.openflow.protocol.instructionid.*;
20import org.projectfloodlight.openflow.protocol.match.*;
21import org.projectfloodlight.openflow.protocol.oxm.*;
22import org.projectfloodlight.openflow.protocol.queueprop.*;
23import org.projectfloodlight.openflow.types.*;
24import org.projectfloodlight.openflow.util.*;
25import org.projectfloodlight.openflow.exceptions.*;
26import org.jboss.netty.buffer.ChannelBuffer;
27
28public interface OFPacketIn extends OFObject, OFMessage {
29 OFVersion getVersion();
30 OFType getType();
31 long getXid();
32 OFBufferId getBufferId();
33 int getTotalLen();
34 OFPacketInReason getReason();
35 TableId getTableId() throws UnsupportedOperationException;
36 Match getMatch() throws UnsupportedOperationException;
37 byte[] getData();
38 OFPort getInPort() throws UnsupportedOperationException;
39 OFPort getInPhyPort() throws UnsupportedOperationException;
40 U64 getCookie() throws UnsupportedOperationException;
41
42 void writeTo(ChannelBuffer channelBuffer);
43
44 Builder createBuilder();
45 public interface Builder extends OFMessage.Builder {
46 OFPacketIn build();
47 OFVersion getVersion();
48 OFType getType();
49 long getXid();
50 Builder setXid(long xid);
51 OFBufferId getBufferId();
52 Builder setBufferId(OFBufferId bufferId);
53 int getTotalLen();
54 Builder setTotalLen(int totalLen);
55 OFPacketInReason getReason();
56 Builder setReason(OFPacketInReason reason);
57 TableId getTableId() throws UnsupportedOperationException;
58 Builder setTableId(TableId tableId) throws UnsupportedOperationException;
59 Match getMatch() throws UnsupportedOperationException;
60 Builder setMatch(Match match) throws UnsupportedOperationException;
61 byte[] getData();
62 Builder setData(byte[] data);
63 OFPort getInPort() throws UnsupportedOperationException;
64 Builder setInPort(OFPort inPort) throws UnsupportedOperationException;
65 OFPort getInPhyPort() throws UnsupportedOperationException;
66 Builder setInPhyPort(OFPort inPhyPort) throws UnsupportedOperationException;
67 U64 getCookie() throws UnsupportedOperationException;
68 Builder setCookie(U64 cookie) throws UnsupportedOperationException;
69 }
70}