Compare commits
1 Commits
3e146b1f12
...
a0c1a693cb
Author | SHA1 | Date |
---|---|---|
|
a0c1a693cb |
|
@ -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()
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue