Skip to content

Commit a5e6b74

Browse files
committed
fix typos
Signed-off-by: Florian Lehner <dev@der-flo.net>
1 parent e060f1f commit a5e6b74

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
with:
4646
version: "2026.1"
4747
install-go: false
48-
cache-key: ${{ matrix.go }}
48+
cache-key: ${{ matrix.go-version }}

attribute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func extractAttribute(a *Attribute, logger Logger, data []byte) error {
114114
ctInfo := ad.Uint32()
115115
a.CtInfo = &ctInfo
116116
ad.ByteOrder = nativeEndian
117-
case nfulaAttrL2Hdr:
117+
case nfUlaAttrL2Hdr:
118118
ad.ByteOrder = binary.BigEndian
119119
l2hdr := bytes.Clone(ad.Bytes())
120120
a.Layer2Hdr = &l2hdr

attribute_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ func pBytes(v []byte) *[]byte {
3030
return &v
3131
}
3232

33-
func pTime(sec, usec int64) *time.Time {
34-
t := time.Unix(sec, usec)
33+
func pTime(sec, nsec int64) *time.Time {
34+
t := time.Unix(sec, nsec)
3535
return &t
3636
}
3737

types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const (
8282
nfUlaAttrCt
8383
nfUlaAttrCtInfo
8484
nfUlaAttrVlan
85-
nfulaAttrL2Hdr
85+
nfUlaAttrL2Hdr
8686
)
8787

8888
// Attribute contains various elements for nflog elements.

0 commit comments

Comments
 (0)