equal
deleted
inserted
replaced
134 * \param ttl TTL to set |
134 * \param ttl TTL to set |
135 */ |
135 */ |
136 void SetDefaultTtl (uint8_t ttl); |
136 void SetDefaultTtl (uint8_t ttl); |
137 |
137 |
138 /** |
138 /** |
|
139 * \brief Set the default TCLASS. |
|
140 * \param tclass TCLASS to set |
|
141 */ |
|
142 void SetDefaultTclass (uint8_t tclass); |
|
143 |
|
144 /** |
139 * \brief Receive method when a packet arrive in the stack. |
145 * \brief Receive method when a packet arrive in the stack. |
140 * This method removes IPv6 header and forward up to L4 protocol. |
146 * This method removes IPv6 header and forward up to L4 protocol. |
141 * |
147 * |
142 * \param device network device |
148 * \param device network device |
143 * \param p the packet |
149 * \param p the packet |
396 * \brief Construct an IPv6 header. |
402 * \brief Construct an IPv6 header. |
397 * \param src source IPv6 address |
403 * \param src source IPv6 address |
398 * \param dst destination IPv6 address |
404 * \param dst destination IPv6 address |
399 * \param protocol L4 protocol |
405 * \param protocol L4 protocol |
400 * \param payloadSize payload size |
406 * \param payloadSize payload size |
401 * \param ttl TTL |
407 * \param hopLimit Hop limit |
402 * \return newly created IPv6 header |
408 * \return newly created IPv6 header |
403 */ |
409 */ |
404 Ipv6Header BuildHeader (Ipv6Address src, Ipv6Address dst, uint8_t protocol, |
410 Ipv6Header BuildHeader (Ipv6Address src, Ipv6Address dst, uint8_t protocol, |
405 uint16_t payloadSize, uint8_t ttl); |
411 uint16_t payloadSize, uint8_t hopLimit, uint8_t tclass); |
406 |
412 |
407 /** |
413 /** |
408 * \brief Send packet with route. |
414 * \brief Send packet with route. |
409 * \param route route |
415 * \param route route |
410 * \param packet packet to send |
416 * \param packet packet to send |
509 * \brief Default TTL for outgoing packets. |
515 * \brief Default TTL for outgoing packets. |
510 */ |
516 */ |
511 uint8_t m_defaultTtl; |
517 uint8_t m_defaultTtl; |
512 |
518 |
513 /** |
519 /** |
|
520 * \brief Default TCLASS for outgoing packets. |
|
521 */ |
|
522 uint8_t m_defaultTclass; |
|
523 |
|
524 /** |
514 * \brief Routing protocol. |
525 * \brief Routing protocol. |
515 */ |
526 */ |
516 Ptr<Ipv6RoutingProtocol> m_routingProtocol; |
527 Ptr<Ipv6RoutingProtocol> m_routingProtocol; |
517 |
528 |
518 /** |
529 /** |