changes for ipv6

changes for ipv6
These functions sh ould use the version of the IP packet pointed by *ethbuf or *ipbuf.  No need for the `ipType` parameter.