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-20 14:53:42 -05:00
|
|
|
}
|