print out_string
# EndMacro: rtentry_trash
+# Macro: show_rtentry
+@lldb_command('show_rtentry')
+def ShRtEntry(cmd_args=None):
+ """ Print rtentry.
+ """
+ out_string = ""
+ rt = kern.GetValueFromAddress(cmd_args[0], 'rtentry *')
+ out_string += GetRtEntryPrDetailsAsString(rt) + "\n"
+ print out_string
+# EndMacro: show_rtentry
+
# Macro: inifa_trash
@lldb_command('inifa_trash')
def InIfaTrash(cmd_args=None):
out_string += "timewait "
if (pcb.inp_flags2 & INP2_IN_FCTREE):
out_string += "in_fctree "
- if (pcb.inp_flags2 & INP2_WANT_FLOW_DIVERT):
- out_string += "want_flow_divert "
+ if (pcb.inp_flags2 & INP2_WANT_APP_POLICY):
+ out_string += "want_app_policy "
so = pcb.inp_socket
if (so != 0):