Pndpd/pndp/NDPRequest.go

25 lines
376 B
Go
Raw Normal View History

2021-12-22 07:01:30 -05:00
package pndp
2021-12-20 14:53:42 -05:00
2021-12-22 07:01:30 -05:00
type ndpType int
2021-12-20 16:46:26 -05:00
const (
2021-12-22 07:01:30 -05:00
ndp_ADV ndpType = 0
ndp_SOL ndpType = 1
2021-12-20 16:46:26 -05:00
)
2021-12-22 07:01:30 -05:00
type ndpRequest struct {
requestType ndpType
2021-12-21 06:00:28 -05:00
srcIP []byte
answeringForIP []byte
dstIP []byte
mac []byte
receivedIfaceMac []byte
sourceIface string
2021-12-25 08:21:07 -05:00
rawPacket []byte
2021-12-20 14:53:42 -05:00
}
2021-12-24 16:43:49 -05:00
type ndpQuestion struct {
targetIP []byte
askedBy []byte
}