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 {
|
2021-12-27 07:58:10 -05:00
|
|
|
requestType ndpType
|
|
|
|
srcIP []byte
|
|
|
|
answeringForIP []byte
|
|
|
|
dstIP []byte
|
|
|
|
sourceIface string
|
|
|
|
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
|
|
|
|
}
|