MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / EncryptFOpts

Function EncryptFOpts

pkg/specification/macspec/specification.go:63–65  ·  view source on GitHub ↗

EncryptFOpts reports whether v requires MAC commands in FOpts to be encrypted.

(v ttnpb.MACVersion)

Source from the content-addressed store, hash-verified

61
62// EncryptFOpts reports whether v requires MAC commands in FOpts to be encrypted.
63func EncryptFOpts(v ttnpb.MACVersion) bool {
64 return compareMACVersion(v, ttnpb.MACVersion_MAC_V1_1) >= 0
65}
66
67// HasMaxFCntGap reports whether v defines a MaxFCntGap.
68func HasMaxFCntGap(v ttnpb.MACVersion) bool {

Callers 9

generateDataDownlinkMethod · 0.92
MakeDataUplinkFunction · 0.92
MakeDataDownlinkFunction · 0.92
decodeUplinkFunction · 0.92
decodeDownlinkFunction · 0.92
processDownlinkFunction · 0.92
simulate.goFile · 0.92

Calls 1

compareMACVersionFunction · 0.85

Tested by 1