diff --git a/scripts/fast-reboot-dump.py b/scripts/fast-reboot-dump.py index 81d98456b24f..2744f05a0d4e 100644 --- a/scripts/fast-reboot-dump.py +++ b/scripts/fast-reboot-dump.py @@ -182,7 +182,7 @@ def generate_fdb_entries(filename): def get_if(iff, cmd): s = socket.socket() - ifreq = ioctl(s, cmd, struct.pack("16s16x",iff)) + ifreq = ioctl(s, cmd, struct.pack("16s16x",bytes(iff.encode()))) s.close() return ifreq