1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
|
2 /* |
|
3 * Copyright (c) 2007 INRIA |
|
4 * All rights reserved. |
|
5 * |
|
6 * This program is free software; you can redistribute it and/or modify |
|
7 * it under the terms of the GNU General Public License version 2 as |
|
8 * published by the Free Software Foundation; |
|
9 * |
|
10 * This program is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 * GNU General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU General Public License |
|
16 * along with this program; if not, write to the Free Software |
|
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 * |
|
19 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
|
20 */ |
|
21 #ifndef I_ARP_PRIVATE_H |
|
22 #define I_ARP_PRIVATE_H |
|
23 |
|
24 #include "ns3/ns-unknown.h" |
|
25 #include "ipv4-address.h" |
|
26 |
|
27 namespace ns3 { |
|
28 |
|
29 class NetDevice; |
|
30 class MacAddress; |
|
31 class Packet; |
|
32 class Arp; |
|
33 |
|
34 class IArpPrivate : public NsUnknown |
|
35 { |
|
36 public: |
|
37 static const uint32_t iid; |
|
38 IArpPrivate (Arp *arp); |
|
39 virtual ~IArpPrivate (); |
|
40 bool Lookup (Packet &p, Ipv4Address destination, |
|
41 NetDevice *device, |
|
42 MacAddress *hardwareDestination); |
|
43 protected: |
|
44 virtual void DoDispose (void); |
|
45 private: |
|
46 Arp *m_arp; |
|
47 }; |
|
48 |
|
49 } // namespace ns3 |
|
50 |
|
51 #endif /* I_ARP_PRIVATE_H */ |
|