Skip to content

Commit

Permalink
Linux: fix issue in net_device extension where the flags var in get_f…
Browse files Browse the repository at this point in the history
…lag_names was set unnecessary
  • Loading branch information
eve-mem committed Nov 2, 2023
1 parent 230988d commit 5f63f05
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions volatility3/framework/symbols/linux/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1629,9 +1629,7 @@ def get_flag_names(self) -> List[str]:
flags = net_device_flags_enum_flags(self.flags)

# format flags to string, drop IFF_ to match `ip link` output
flags = [
flag.replace("IFF_", "") for flag in net_device_flags_enum_flags(self.flags)
]
flags = [flag.replace("IFF_", "") for flag in flags]
return flags

def get_ip_addresses(self) -> List[str]:
Expand Down

0 comments on commit 5f63f05

Please sign in to comment.