blob: 252f1a3c427e77750aa4714e1491e82520540f31 [file] [log] [blame]
Charles M.C. Chan94f37372015-01-10 17:53:42 +08001/*
2 * Copyright 2014-2015 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 */
16
17package org.onlab.packet.ipv6;
18
19/**
20 * Interface for IPv6 extension header.
21 */
22public interface IExtensionHeader {
23 /**
24 * Gets the type of next header.
25 *
26 * @return next header
27 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070028 byte getNextHeader();
Charles M.C. Chan94f37372015-01-10 17:53:42 +080029
30 /**
31 * Sets the type of next header.
32 *
33 * @param nextHeader the next header to set
34 * @return this
35 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070036 IExtensionHeader setNextHeader(final byte nextHeader);
Charles M.C. Chan94f37372015-01-10 17:53:42 +080037}