Lines Matching refs:flowstr
970 def parse(self, flowstr, typeInst): argument
971 if not flowstr.startswith(self.proto_str):
977 flowstr = flowstr[len(self.proto_str) :]
978 if flowstr.startswith("("):
979 flowstr = flowstr[1:]
984 if flowstr.startswith(f[1]):
988 flowstr = flowstr[len(f[1]) + 1 :]
990 for c in flowstr:
994 data = flowstr[:splitchar]
995 flowstr = flowstr[splitchar:]
1005 flowstr = flowstr[strspn(flowstr, ", ") :]
1006 if len(flowstr) == 0:
1007 return flowstr, k, m
1009 flowstr = flowstr[strspn(flowstr, "), ") :]
1011 return flowstr, k, m
1502 def parse(self, flowstr, mask=None): argument
1503 if not flowstr.startswith("tunnel("):
1510 flowstr = flowstr[len("tunnel("):]
1546 flowstr, value = parse_extract_field(flowstr, prefix, regex, typ, False)
1573 if flowstr.startswith("flags("):
1574 flowstr = flowstr[len("flags("):]
1575 flagspos = flowstr.find(")")
1576 flags = flowstr[:flagspos]
1577 flowstr = flowstr[flagspos + 1:]
1591 flowstr = flowstr[strspn(flowstr, ", ") :]
1592 return flowstr, k, mask
1639 def parse(self, flowstr, mask=None): argument
1697 if not flowstr.startswith(fld):
1702 flowstr, k, m = nk.parse(flowstr, field[2])
1704 flowstr = flowstr[len(fld) :]
1705 flowstr, k, m = field[2](flowstr)
1711 flowstr = flowstr[strspn(flowstr, "), ") :]
1713 return flowstr
2308 def parse(self, flowstr, actstr, dpidx=0): argument
2318 if flowstr.startswith("ufid:"):
2320 while flowstr[count] != ",":
2322 ufidstr = flowstr[5:count]
2323 flowstr = flowstr[count + 1 :]
2354 k.parse(flowstr, m)