blob: 19fb9d0ff615baeeb5d5eff4e3bec67367d1a305 [file] [log] [blame]
Jian Li27759352016-10-04 20:14:42 +09001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.lisp.msg.protocols;
17
18import org.onosproject.lisp.msg.types.LispAfiAddress;
19
20/**
21 * LISP info super interface.
22 */
23public interface LispInfo extends LispMessage {
24
25 /**
26 * Obtains has info reply flag value.
27 *
28 * @return has info reply flag value
29 */
Jian Lid1a109e2016-11-12 09:00:42 +090030 boolean isInfoReply();
Jian Li27759352016-10-04 20:14:42 +090031
32 /**
33 * Obtains nonce value.
34 *
35 * @return nonce value
36 */
37 long getNonce();
38
39 /**
40 * Obtains key identifier.
41 *
42 * @return key identifier
43 */
44 short getKeyId();
45
46 /**
47 * Obtains authentication data length.
48 *
49 * @return authentication data length
50 */
51 short getAuthDataLength();
52
53 /**
54 * Obtains authentication data.
55 *
56 * @return authentication data
57 */
Jian Lid1a109e2016-11-12 09:00:42 +090058 byte[] getAuthData();
Jian Li27759352016-10-04 20:14:42 +090059
60 /**
61 * Obtains TTL value.
62 *
63 * @return record TTL value
64 */
65 int getTtl();
66
67 /**
68 * Obtains mask length of the EID Record.
69 *
70 * @return mask length of the EID Record
71 */
72 byte getMaskLength();
73
74 /**
75 * Obtains EID prefix.
76 *
77 * @return EID prefix
78 */
79 LispAfiAddress getPrefix();
80}