author | Tom Henderson <tomh@tomh.org> |
Fri, 10 Aug 2007 13:49:41 -0700 | |
changeset 1277 | c26bf0511078 |
parent 1229 | e4cfe4094c10 |
child 1325 | f3be9eed2d90 |
child 1442 | bb5cf98c0c64 |
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); |
|
345
47b41507a45a
move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents:
242
diff
changeset
|
47 |
virtual TraceResolver *DoCreateTraceResolver (TraceContext const &context); |
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 */ |