Skip to content

Commit 2ff7dea

Browse files
committed
Linux: Remember to apply the symbols to addr as well as link
1 parent 815d695 commit 2ff7dea

File tree

1 file changed

+3
-1
lines changed
  • volatility3/framework/plugins/linux

1 file changed

+3
-1
lines changed

volatility3/framework/plugins/linux/ip.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from volatility3.framework.configuration import requirements
88
from volatility3.framework.interfaces import plugins
99
from volatility3.framework.symbols.linux import net
10+
from volatility3.framework.symbols.linux.extensions import net as net_extensions
1011

1112

1213
class Addr(plugins.PluginInterface):
@@ -29,7 +30,7 @@ def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]
2930
),
3031
]
3132

32-
def _gather_net_dev_info(self, net_dev):
33+
def _gather_net_dev_info(self, net_dev: net_extensions.net_device):
3334
mac_addr = net_dev.get_mac_address()
3435
promisc = net_dev.promisc
3536
operational_state = net_dev.get_operational_state()
@@ -61,6 +62,7 @@ def _generator(self):
6162

6263
net_type_symname = vmlinux.symbol_table_name + constants.BANG + "net"
6364
net_device_symname = vmlinux.symbol_table_name + constants.BANG + "net_device"
65+
net.NetSymbols.apply(self.context.symbol_space[vmlinux.symbol_table_name])
6466

6567
# 'net_namespace_list' exists from kernels >= 2.6.24
6668
net_namespace_list = vmlinux.object_from_symbol("net_namespace_list")

0 commit comments

Comments
 (0)