Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 436 Bytes
package packets
import (
type DHCPv6Layer struct {
Raw []byte
func (l *DHCPv6Layer) LayerType() gopacket.LayerType { return layers.LayerTypeDHCPv6 }
func (l DHCPv6Layer) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error {
bytes, err := b.PrependBytes(len(l.Raw))
if err != nil {
return err
copy(bytes, l.Raw)
return nil
You can’t perform that action at this time.