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) 2009 University of Washington | 3 * Copyright (c) 2009 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 * the second highest priority, and so on. The priority parameter is an | 84 * the second highest priority, and so on. The priority parameter is an |
85 * output parameter and it returns the integer priority of the protocol. | 85 * output parameter and it returns the integer priority of the protocol. |
86 * \param index index of protocol to return | 86 * \param index index of protocol to return |
87 * \param priority output parameter, set to the priority of the protocol | 87 * \param priority output parameter, set to the priority of the protocol |
88 * being returned | 88 * being returned |
89 * \return pointer to routing protocol indexed by· | 89 * \return pointer to routing protocol indexed by· |
90 */ | 90 */ |
91 virtual Ptr<Ipv6RoutingProtocol> GetRoutingProtocol (uint32_t index, int16_t&
priority) const; | 91 virtual Ptr<Ipv6RoutingProtocol> GetRoutingProtocol (uint32_t index, int16_t&
priority) const; |
92 | 92 |
93 // Below are from Ipv6RoutingProtocol | 93 // Below are from Ipv6RoutingProtocol |
94 virtual Ptr<Ipv6Route> RouteOutput (Ptr<Packet> p, const Ipv6Header &header, P
tr<NetDevice> oif, Socket::SocketErrno &sockerr); | 94 virtual Ptr<Ipv6Route> RouteOutput (Ptr<Packet> p, const Ipv6FlowI &flowi, Soc
ket::SocketErrno &sockerr); |
95 | 95 |
96 virtual bool RouteInput (Ptr<const Packet> p, const Ipv6Header &header, Ptr<co
nst NetDevice> idev, | 96 virtual bool RouteInput (Ptr<const Packet> p, const Ipv6Header &header, Ptr<co
nst NetDevice> idev, |
97 UnicastForwardCallback ucb, MulticastForwardCallback
mcb, | 97 UnicastForwardCallback ucb, MulticastForwardCallback
mcb, |
98 LocalDeliverCallback lcb, ErrorCallback ecb); | 98 LocalDeliverCallback lcb, ErrorCallback ecb); |
99 virtual void NotifyInterfaceUp (uint32_t interface); | 99 virtual void NotifyInterfaceUp (uint32_t interface); |
100 virtual void NotifyInterfaceDown (uint32_t interface); | 100 virtual void NotifyInterfaceDown (uint32_t interface); |
101 virtual void NotifyAddAddress (uint32_t interface, Ipv6InterfaceAddress addres
s); | 101 virtual void NotifyAddAddress (uint32_t interface, Ipv6InterfaceAddress addres
s); |
102 virtual void NotifyRemoveAddress (uint32_t interface, Ipv6InterfaceAddress add
ress); | 102 virtual void NotifyRemoveAddress (uint32_t interface, Ipv6InterfaceAddress add
ress); |
103 virtual void NotifyAddRoute (Ipv6Address dst, Ipv6Prefix mask, Ipv6Address nex
tHop, uint32_t interface, Ipv6Address prefixToUse = Ipv6Address::GetZero ()); | 103 virtual void NotifyAddRoute (Ipv6Address dst, Ipv6Prefix mask, Ipv6Address nex
tHop, uint32_t interface, Ipv6Address prefixToUse = Ipv6Address::GetZero ()); |
104 virtual void NotifyRemoveRoute (Ipv6Address dst, Ipv6Prefix mask, Ipv6Address
nextHop, uint32_t interface, Ipv6Address prefixToUse = Ipv6Address::GetZero ()); | 104 virtual void NotifyRemoveRoute (Ipv6Address dst, Ipv6Prefix mask, Ipv6Address
nextHop, uint32_t interface, Ipv6Address prefixToUse = Ipv6Address::GetZero ()); |
(...skipping 25 matching lines...) Expand all Loading... |
130 /** | 130 /** |
131 * \brief Ipv6 reference. | 131 * \brief Ipv6 reference. |
132 */ | 132 */ |
133 Ptr<Ipv6> m_ipv6; | 133 Ptr<Ipv6> m_ipv6; |
134 }; | 134 }; |
135 | 135 |
136 } // namespace ns3 | 136 } // namespace ns3 |
137 | 137 |
138 #endif /* IPV6_LIST_ROUTING_H */ | 138 #endif /* IPV6_LIST_ROUTING_H */ |
139 | 139 |
OLD | NEW |