MCPcopy Index your code
hub / github.com/google/gopacket / decodePath

Method decodePath

layers/sflow.go:1269–1278  ·  view source on GitHub ↗
(data *[]byte)

Source from the content-addressed store, hash-verified

1267}
1268
1269func (ad *SFlowASDestination) decodePath(data *[]byte) {
1270 *data, ad.Type = (*data)[4:], SFlowASPathType(binary.BigEndian.Uint32((*data)[:4]))
1271 *data, ad.Count = (*data)[4:], binary.BigEndian.Uint32((*data)[:4])
1272 ad.Members = make([]uint32, ad.Count)
1273 for i := uint32(0); i < ad.Count; i++ {
1274 var member uint32
1275 *data, member = (*data)[4:], binary.BigEndian.Uint32((*data)[:4])
1276 ad.Members[i] = member
1277 }
1278}
1279
1280func decodeExtendedGatewayFlowRecord(data *[]byte) (SFlowExtendedGatewayFlowRecord, error) {
1281 eg := SFlowExtendedGatewayFlowRecord{}

Callers 1

Calls 1

SFlowASPathTypeTypeAlias · 0.85

Tested by

no test coverage detected