blob: e386fb146072e791a756e164e390901e592e1d9a [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.
25 */
26public interface ProxyArpStore {
27
28 /**
29 * Forwards an ARP or neighbor solicitation request to its destination.
30 * Floods at the edg the request if the destination is not known.
31 *
32 * @param outPort the port the request was received on
33 * @param subject subject host
34 * @param packet an ethernet frame containing an ARP or neighbor
35 * solicitation request
36 */
37 void forward(ConnectPoint outPort, Host subject, ByteBuffer packet);
38
39 /**
40 * Associates the specified delegate with the store.
41 *
42 * @param delegate store delegate
43 */
44 void setDelegate(ProxyArpStoreDelegate delegate);
45}