mirror of
https://github.com/bettercap/bettercap
synced 2025-08-13 18:26:57 -07:00
fix: updated gopacket to fix compilation issues on macOS (ref #357)
This commit is contained in:
parent
5be3fcbf20
commit
a95ae94957
23 changed files with 1625 additions and 205 deletions
|
@ -2,12 +2,15 @@ package packets
|
|||
|
||||
import (
|
||||
"github.com/google/gopacket"
|
||||
"github.com/google/gopacket/layers"
|
||||
)
|
||||
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue