Compare commits

..

1 Commits

Author SHA1 Message Date
Mikhail Sennikovsky 51156d19df
Merge a0423c9897 into 69f487d596 2025-01-24 09:33:20 +01:00
3 changed files with 0 additions and 13 deletions

View File

@ -186,9 +186,6 @@ func (e *Ct) unmarshal(fam byte, data []byte) error {
e.Register = ad.Uint32()
case unix.NFTA_CT_DIRECTION:
e.Direction = ad.Uint32()
case unix.NFTA_CT_SREG:
e.SourceRegister = true
e.Register = ad.Uint32()
}
}
return ad.Err()

View File

@ -38,14 +38,6 @@ func TestCt(t *testing.T) {
Direction: 1, // direction: reply
},
},
{
name: "Unmarshal Ct source register case",
ct: Ct{
Register: 1,
Key: CtKeySRC,
SourceRegister: true,
},
},
}
for _, tt := range tests {

View File

@ -209,8 +209,6 @@ func exprFromName(name string) Any {
e = &CtTimeout{}
case "fib":
e = &Fib{}
case "numgen":
e = &Numgen{}
}
return e
}