635bf25b5941ea138bfd0c413276f0fce19fc047
[packetcable.git] / protocol_plugins.packetcable / src / main / java / org / pcmm / gates / IExtendedClassifier.java
1 /**
2  @header@
3  */
4
5
6 package org.pcmm.gates;
7
8 import java.net.InetAddress;
9
10 public interface IExtendedClassifier extends IClassifier {
11
12     static final short LENGTH = 40;
13     static final byte SNUM = 6;
14     static final byte STYPE = 2;
15
16     void setIPSourceMask(InetAddress a);
17
18     void setIPDestinationMask(InetAddress m);
19
20     void setSourcePortStart(short p);
21
22     void setSourcePortEnd(short p);
23
24     void setDestinationPortStart(short p);
25
26     void setDestinationPortEnd(short p);
27
28     void setClassifierID(short p);
29
30     /**
31      * <pre>
32      * 0x00 Inactive
33      * 0x01 Active
34      * </pre>
35      *
36      * @param s
37      */
38     void setActivationState(byte s);
39
40     /**
41      * <pre>
42      * 0x00 Add classifier
43      * 0x01 Replace classifier
44      * 0x02 Delete classifier
45      * 0x03 No change
46      * </pre>
47      *
48      * @param a
49      */
50     void setAction(byte a);
51
52     InetAddress getIPSourceMask();
53
54     InetAddress getIPDestinationMask();
55
56     short getSourcePortStart();
57
58     short getSourcePortEnd();
59
60     short getDestinationPortStart();
61
62     short getDestinationPortEnd();
63
64     short getClassifierID();
65
66     byte getActivationState();
67
68     byte getAction();
69 }