next up previous contents
Next: Related include files Up: Packet construction Previous: IGMP header   Contents

IPv6 header

The macro IP6_HDR builds an IPv6 header, as defined in [RFC2460]. The macro IP6_PCK is synonymous to IP6_HDR, except that it also sets the protocol to ETH_P_IPV6 with ``default'' priority.

\begin{tabular}{\vert cccccccccccccccccccccccccccccccc\vert}...{32}{\vert c\vert}{{\bf global} ::} \\

Note that $ip6_src and $ip6_dst are of type ``IPv6 address''.


$ip6_dst = ::

send IP6_PCK($ip6_tc=0xe0 $ip6_nxt=46)
  /* pretend this is RSVP */

Martin A. Brown 2003-11-06