OLD | NEW |
1 // -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- | 1 // -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- |
2 // | 2 // |
3 // Copyright (c) 2008 University of Washington | 3 // Copyright (c) 2008 University of Washington |
4 // | 4 // |
5 // This program is free software; you can redistribute it and/or modify | 5 // This program is free software; you can redistribute it and/or modify |
6 // it under the terms of the GNU General Public License version 2 as | 6 // it under the terms of the GNU General Public License version 2 as |
7 // published by the Free Software Foundation; | 7 // published by the Free Software Foundation; |
8 // | 8 // |
9 // This program is distributed in the hope that it will be useful, | 9 // This program is distributed in the hope that it will be useful, |
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 * | 75 * |
76 * The Ipv4GlobalRouting class supports host and network unicast routes. | 76 * The Ipv4GlobalRouting class supports host and network unicast routes. |
77 * This method initializes the lists containing these routes to empty. | 77 * This method initializes the lists containing these routes to empty. |
78 * | 78 * |
79 * \see Ipv4GlobalRouting | 79 * \see Ipv4GlobalRouting |
80 */ | 80 */ |
81 Ipv4GlobalRouting (); | 81 Ipv4GlobalRouting (); |
82 virtual ~Ipv4GlobalRouting (); | 82 virtual ~Ipv4GlobalRouting (); |
83 | 83 |
84 // These methods inherited from base class | 84 // These methods inherited from base class |
85 virtual Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, P
tr<NetDevice> oif, Socket::SocketErrno &sockerr); | 85 virtual Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4FlowI &flowi, Soc
ket::SocketErrno &sockerr); |
86 | |
87 virtual bool RouteInput (Ptr<const Packet> p, const Ipv4Header &header, Ptr<c
onst NetDevice> idev, | 86 virtual bool RouteInput (Ptr<const Packet> p, const Ipv4Header &header, Ptr<c
onst NetDevice> idev, |
88 UnicastForwardCallback ucb, MulticastForwardCallback
mcb, | 87 UnicastForwardCallback ucb, MulticastForwardCallback
mcb, |
89 LocalDeliverCallback lcb, ErrorCallback ecb); | 88 LocalDeliverCallback lcb, ErrorCallback ecb); |
90 virtual void NotifyInterfaceUp (uint32_t interface); | 89 virtual void NotifyInterfaceUp (uint32_t interface); |
91 virtual void NotifyInterfaceDown (uint32_t interface); | 90 virtual void NotifyInterfaceDown (uint32_t interface); |
92 virtual void NotifyAddAddress (uint32_t interface, Ipv4InterfaceAddress addres
s); | 91 virtual void NotifyAddAddress (uint32_t interface, Ipv4InterfaceAddress addres
s); |
93 virtual void NotifyRemoveAddress (uint32_t interface, Ipv4InterfaceAddress add
ress); | 92 virtual void NotifyRemoveAddress (uint32_t interface, Ipv4InterfaceAddress add
ress); |
94 virtual void SetIpv4 (Ptr<Ipv4> ipv4); | 93 virtual void SetIpv4 (Ptr<Ipv4> ipv4); |
95 virtual void PrintRoutingTable (Ptr<OutputStreamWrapper> stream) const; | 94 virtual void PrintRoutingTable (Ptr<OutputStreamWrapper> stream) const; |
96 | 95 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 HostRoutes m_hostRoutes; | 236 HostRoutes m_hostRoutes; |
238 NetworkRoutes m_networkRoutes; | 237 NetworkRoutes m_networkRoutes; |
239 ASExternalRoutes m_ASexternalRoutes; // External routes imported | 238 ASExternalRoutes m_ASexternalRoutes; // External routes imported |
240 | 239 |
241 Ptr<Ipv4> m_ipv4; | 240 Ptr<Ipv4> m_ipv4; |
242 }; | 241 }; |
243 | 242 |
244 } // Namespace ns3 | 243 } // Namespace ns3 |
245 | 244 |
246 #endif /* IPV4_GLOBAL_ROUTING_H */ | 245 #endif /* IPV4_GLOBAL_ROUTING_H */ |
OLD | NEW |