Lines Matching +full:m +full:- +full:class

2 # SPDX-License-Identifier: GPL-2.0
76 if str2.find(char) != -1:
85 if str2.find(char) == -1:
97 if firstnum[-1] == "/":
98 firstnum = firstnum[:-1]
101 m = None
106 m = int(secondnum, 0)
108 return statestr[totalparse + 1 :], k, m
128 while len(flag_str) > 0 and (flag_str[0] == "+" or flag_str[0] == "-"):
131 elif flag_str[0] == "-":
139 and flag_str[flag_len] != "-"
203 mask = (0xFFFFFFFF << (32 - int(mask))) & 0xFFFFFFFF
226 return int(value, 0), pow(2, size) - 1
234 m = re.search(scanstr, block_str)
235 if m is None:
240 block_str = block_str[len(m.group(0)) :]
271 m = re.search(scanfmt, str_skipped)
272 if m is None:
275 data = m.group(0)
277 data = convert(m.group(0))
279 str_skipped = str_skipped[len(m.group(0)) :]
357 class ovs_dp_msg(genlmsg):
365 class ovsactions(nla):
397 class psample(nla):
430 class sample(nla):
473 class ctact(nla):
489 class natattr(nla):
513 print_str += "XXX-unknown-nat"
524 print_str += "-%s," % str(
574 class userspace(nla):
683 r"([0-9]+)",
694 return (totallen - len(actstr))
706 r"([0-9a-fA-Fx]+)",
750 m = ovskey()
752 actstr = k.parse(actstr, m)
753 self["attrs"].append(("OVS_ACTION_ATTR_SET_MASKED", [k, m]))
784 # sub-action and this lets it sit anywhere in the ct() action
801 actstr, "=", r"([0-9a-fA-F\.]+)", str, False
804 actstr, "-", r"([0-9a-fA-F\.]+)", str, False
811 actstr, "-", r"(\d+)", int, False
873 r"([0-9]+)",
883 parencount -= 1
890 return (totallen - len(actstr))
897 return (totallen - len(actstr))
900 class ovskey(nla):
938 class ovs_key_proto(nla):
975 m = typeInst()
1000 k[f[0]], m[f[0]] = f[4](data)
1003 m[f[0]] = f[3](data)
1007 return flowstr, k, m
1011 return flowstr, k, m
1041 class ethaddr(ovs_key_proto):
1082 class ovs_key_ipv4(ovs_key_proto):
1135 class ovs_key_ipv6(ovs_key_proto):
1186 class ovs_key_tcp(ovs_key_proto):
1205 class ovs_key_udp(ovs_key_proto):
1224 class ovs_key_sctp(ovs_key_proto):
1243 class ovs_key_icmp(ovs_key_proto):
1272 class ovs_key_icmpv6(ovs_key_icmp):
1291 class ovs_key_arp(ovs_key_proto):
1351 class ovs_key_nd(ovs_key_proto):
1387 class ovs_key_ct_tuple_ipv4(ovs_key_proto):
1434 class ovs_key_ct_tuple_ipv6(nla):
1479 class ovs_key_tunnel(nla):
1518 ("src=", r"([0-9a-fA-F\.]+)", str,
1521 ("dst=", r"([0-9a-fA-F\.]+)", str,
1525 ("ipv6_src=", r"([0-9a-fA-F:]+)", str,
1528 ("ipv6_dst=", r"([0-9a-fA-F:]+)", str,
1636 class ovs_key_mpls(nla):
1702 flowstr, k, m = nk.parse(flowstr, field[2])
1705 flowstr, k, m = field[2](flowstr)
1707 if m and mask is not None:
1708 mask["attrs"].append([field[0], m])
1823 m = None if mask is None else mask.get_attr(field[0])
1825 print_str += v.dpstr(m, more)
1828 if m is None or field[3](m):
1832 elif more or m != 0:
1834 print_str += (field[2] % v) + "/" + (field[2] % m)
1840 class OvsPacket(GenericNetlinkSocket):
1845 class ovs_packet_msg(ovs_dp_msg):
1885 class OvsDatapath(GenericNetlinkSocket):
1889 class dp_cmd_msg(ovs_dp_msg):
1891 Message class that will be used to communicate with the kernel module.
1906 class dpstats(nla):
1914 class megaflowstats(nla):
1962 if versionStr is not None and versionStr.find(":") != -1:
1965 if versionStr is None or versionStr.find(":") == -1:
2013 class OvsVport(GenericNetlinkSocket):
2020 class ovs_vport_msg(ovs_dp_msg):
2034 class vportopts(nla):
2041 class vportstats(nla):
2217 class OvsFlow(GenericNetlinkSocket):
2218 class ovs_flow_msg(ovs_dp_msg):
2233 class flowstats(nla):
2244 "ufid:{:08x}-{:04x}-{:04x}-{:04x}-{:04x}{:08x}".format(
2293 used_time = (cur_time_sec * 1000) - used_time
2353 m = ovskey()
2354 k.parse(flowstr, m)
2356 self["attrs"].append(["OVS_FLOW_ATTR_MASK", m])
2471 class psample_sample(genlmsg):
2508 class psample_msg(Marshal):
2517 class PsampleEvent(EventSocket):
2552 print(" masks-cache: size:%d" % masks_cache_size)
2566 opts += " tnl-dport:%s" % socket.ntohs(dpo)
2590 "-v",
2591 "--verbose",
2603 adddpcmd = subparsers.add_parser("add-dp")
2606 "-u",
2607 "--upcall",
2612 "-V",
2613 "--versioning",
2618 deldpcmd = subparsers.add_parser("del-dp")
2621 addifcmd = subparsers.add_parser("add-if")
2625 "-u",
2626 "--upcall",
2631 "-t",
2632 "--ptype",
2639 "-p",
2640 "--dport",
2646 "-l",
2647 "--lwt",
2652 delifcmd = subparsers.add_parser("del-if")
2655 delifcmd.add_argument("-d",
2656 "--dellink",
2660 dumpflcmd = subparsers.add_parser("dump-flows")
2663 addflcmd = subparsers.add_parser("add-flow")
2668 delfscmd = subparsers.add_parser("del-flows")
2671 subparsers.add_parser("psample-events")
2687 if args.subcommand == "psample-events":