Lines Matching refs:mark
129 def assertMarkIs(self, mark, attrs): argument
130 self.assertEqual(mark, attrs.get("INET_DIAG_MARK", None))
148 mark = s.getsockopt(SOL_SOCKET, net_test.SO_MARK)
149 self.assertMarkIs(mark, attrs)
1043 def FilterEstablishedSockets(self, mark, mask): argument
1044 instructions = [(sock_diag.INET_DIAG_BC_MARK_COND, 1, 2, (mark, mask))]
1113 mark = random.randrange(0, 2**31 - 1)
1114 s.setsockopt(SOL_SOCKET, net_test.SO_MARK, mark)
1115 return mark
1117 def assertSocketMarkIs(self, s, mark): argument
1119 self.assertMarkIs(mark, attrs)
1159 mark = self.SetRandomMark(s)
1161 self.assertSocketMarkIs(s, mark)
1169 mark = self.SetRandomMark(s)
1170 self.assertSocketMarkIs(s, mark)
1173 self.assertEqual(mark, sockets[0][1].get("INET_DIAG_MARK", None))