Lines Matching refs:mark
299 void verifyXfrmiArguments(uint32_t mark, uint32_t mask, uint32_t ifId) { in verifyXfrmiArguments() argument
301 EXPECT_EQ(0U, mark); in verifyXfrmiArguments()
306 void verifyVtiArguments(uint32_t mark, uint32_t mask, uint32_t ifId) { in verifyVtiArguments() argument
308 EXPECT_EQ(TEST_XFRM_MARK, mark); in verifyVtiArguments()
394 XfrmController::nlattr_xfrm_mark mark{}; in testIpSecAddSecurityAssociation() local
397 auto attrHandler = [&encryptAlgo, &authAlgo, &mark, &outputmark, &xfrm_if_id]( in testIpSecAddSecurityAssociation()
411 mark.hdr = attr; in testIpSecAddSecurityAssociation()
412 netdutils::extract(buf, mark.mark); in testIpSecAddSecurityAssociation()
414 mark.hdr = attr; in testIpSecAddSecurityAssociation()
433 verifyXfrmiArguments(mark.mark.v, mark.mark.m, xfrm_if_id.if_id); in testIpSecAddSecurityAssociation()
435 verifyVtiArguments(mark.mark.v, mark.mark.m, xfrm_if_id.if_id); in testIpSecAddSecurityAssociation()
446 EXPECT_EQ(0U, mark.mark.v); in testIpSecAddSecurityAssociation()
447 EXPECT_EQ(0U, mark.mark.m); in testIpSecAddSecurityAssociation()
569 void parseTunnelNetlinkAttrs(XfrmController::nlattr_xfrm_mark* mark, in parseTunnelNetlinkAttrs() argument
571 auto attrHandler = [mark, xfrm_if_id](const nlattr& attr, const Slice& attr_payload) { in parseTunnelNetlinkAttrs()
574 mark->hdr = attr; in parseTunnelNetlinkAttrs()
575 netdutils::extract(buf, mark->mark); in parseTunnelNetlinkAttrs()
625 XfrmController::nlattr_xfrm_mark mark{}; in TEST_P() local
627 parseTunnelNetlinkAttrs(&mark, &xfrm_if_id, nlMsgSlice); in TEST_P()
630 verifyXfrmiArguments(mark.mark.v, mark.mark.m, xfrm_if_id.if_id); in TEST_P()
632 verifyVtiArguments(mark.mark.v, mark.mark.m, xfrm_if_id.if_id); in TEST_P()
681 XfrmController::nlattr_xfrm_mark mark{}; in TEST_P() local
683 auto attrHandler = [&usertmpl, &mark, &xfrm_if_id](const nlattr& attr, in TEST_P()
690 mark.hdr = attr; in TEST_P()
691 netdutils::extract(buf, mark.mark); in TEST_P()
693 mark.hdr = attr; in TEST_P()
704 verifyXfrmiArguments(mark.mark.v, mark.mark.m, xfrm_if_id.if_id); in TEST_P()
706 verifyVtiArguments(mark.mark.v, mark.mark.m, xfrm_if_id.if_id); in TEST_P()
786 XfrmController::nlattr_xfrm_mark mark{}; in TEST_P() local
788 parseTunnelNetlinkAttrs(&mark, &xfrm_if_id, nlMsgSlice); in TEST_P()
791 verifyXfrmiArguments(mark.mark.v, mark.mark.m, xfrm_if_id.if_id); in TEST_P()
793 verifyVtiArguments(mark.mark.v, mark.mark.m, xfrm_if_id.if_id); in TEST_P()