blob: 708f92fa7209dbacade28b6e18c5f466bee46c9b [file] [log] [blame]
Thomas Vachuskab2c47a72015-08-05 14:22:54 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuskab2c47a72015-08-05 14:22:54 -07003 *
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.net.proxyarp;
17
18import org.onosproject.net.ConnectPoint;
19import org.onosproject.net.Host;
20
21import java.nio.ByteBuffer;
22
23/**
24 * State distribution mechanism for the proxy ARP service.
Jonathan Hartc4f681c2016-09-09 07:14:25 -070025 *
26 * @deprecated in Hummingbird release. This is no longer necessary as there are
27 * other solutions for the problem this was solving.
Thomas Vachuskab2c47a72015-08-05 14:22:54 -070028 */
Jonathan Hartc4f681c2016-09-09 07:14:25 -070029@Deprecated
Thomas Vachuskab2c47a72015-08-05 14:22:54 -070030public interface ProxyArpStore {
31
32 /**
33 * Forwards an ARP or neighbor solicitation request to its destination.
34 * Floods at the edg the request if the destination is not known.
35 *
36 * @param outPort the port the request was received on
37 * @param subject subject host
38 * @param packet an ethernet frame containing an ARP or neighbor
39 * solicitation request
40 */
41 void forward(ConnectPoint outPort, Host subject, ByteBuffer packet);
42
43 /**
44 * Associates the specified delegate with the store.
45 *
46 * @param delegate store delegate
47 */
48 void setDelegate(ProxyArpStoreDelegate delegate);
49}