Skip to content

Commit

Permalink
fix: dscp test
Browse files Browse the repository at this point in the history
  • Loading branch information
sakateka committed Feb 10, 2025
1 parent 7846140 commit 70d27be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/go/modules/dscp/dscp.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ func dscpModuleConfig(prefixes []netip.Prefix, flag, dscp uint8) C.struct_dscp_m
lpm4, lpm6 := common.BuildLPMs(prefixes)
m.lpm_v4 = *(*C.struct_lpm)(unsafe.Pointer(&lpm4))
m.lpm_v6 = *(*C.struct_lpm)(unsafe.Pointer(&lpm6))
m.flag = C.uint8_t(flag)
m.dscp = C.uint8_t(dscp)
m.dscp = C.struct_dscp_config{
flag: C.uint8_t(flag),
mark: C.uint8_t(dscp),
}

return m
}
Expand Down

0 comments on commit 70d27be

Please sign in to comment.