author | Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
Sun, 12 Aug 2007 16:28:29 +0200 | |
changeset 1341 | f685d4bf320f |
parent 1333 | c0d66de933e9 |
child 1383 | 12f30b7defb4 |
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 |
||
1341
f685d4bf320f
use the Object::GetTraceResolver tracing support rather than the old adhoc tracing code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1333
diff
changeset
|
45 |
protected: |
f685d4bf320f
use the Object::GetTraceResolver tracing support rather than the old adhoc tracing code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1333
diff
changeset
|
46 |
virtual Ptr<TraceResolver> GetTraceResolver (void); |
f685d4bf320f
use the Object::GetTraceResolver tracing support rather than the old adhoc tracing code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1333
diff
changeset
|
47 |
private: |
242 | 48 |
virtual void SendTo (Packet p, Ipv4Address dest); |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
607
diff
changeset
|
49 |
Ptr<Node> m_node; |
242 | 50 |
}; |
51 |
||
52 |
}//namespace ns3 |
|
53 |
||
54 |
||
55 |
#endif /* ARP_IPV4_INTERFACE_H */ |