| author | Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
| Fri, 10 Aug 2007 15:47:13 +0200 | |
| changeset 1333 | c0d66de933e9 |
| parent 1325 | f3be9eed2d90 |
| child 1341 | f685d4bf320f |
| permissions | -rw-r--r-- |
| 242 | 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 |
* Authors: |
|
20 |
* Mathieu Lacage <mathieu.lacage@sophia.inria.fr>, |
|
21 |
*/ |
|
22 |
#ifndef ARP_IPV4_INTERFACE_H |
|
23 |
#define ARP_IPV4_INTERFACE_H |
|
24 |
||
25 |
#include "ipv4-interface.h" |
|
|
553
eb9d614accf0
convert more code to use Ptr<Node> instead of Node *
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
524
diff
changeset
|
26 |
#include "ns3/ptr.h" |
| 242 | 27 |
|
28 |
namespace ns3 {
|
|
29 |
||
|
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
607
diff
changeset
|
30 |
class Node; |
| 242 | 31 |
|
| 410 | 32 |
/** |
33 |
* \brief an Ipv4 Interface which uses ARP |
|
34 |
* |
|
35 |
* If you need to use ARP on top of a specific NetDevice, you |
|
36 |
* can use this Ipv4Interface subclass to wrap it for the Ipv4 class |
|
37 |
* when calling Ipv4::AddInterface. |
|
38 |
*/ |
|
| 242 | 39 |
class ArpIpv4Interface : public Ipv4Interface |
40 |
{
|
|
41 |
public: |
|
|
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
607
diff
changeset
|
42 |
ArpIpv4Interface (Ptr<Node> node, Ptr<NetDevice> device); |
| 242 | 43 |
virtual ~ArpIpv4Interface (); |
44 |
||
45 |
private: |
|
46 |
virtual void SendTo (Packet p, Ipv4Address dest); |
|
|
1333
c0d66de933e9
convert TraceResolver * to Ptr<TraceResolver>
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1325
diff
changeset
|
47 |
virtual Ptr<TraceResolver> DoCreateTraceResolver (void); |
|
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
607
diff
changeset
|
48 |
Ptr<Node> m_node; |
| 242 | 49 |
}; |
50 |
||
51 |
}//namespace ns3 |
|
52 |
||
53 |
||
54 |
#endif /* ARP_IPV4_INTERFACE_H */ |