Run hexedit on a list of packets, then return the edited packets.
(pktlist)
| 3247 | |
| 3248 | @conf.commands.register |
| 3249 | def hexedit(pktlist): |
| 3250 | # type: (_PacketIterable) -> PacketList |
| 3251 | """Run hexedit on a list of packets, then return the edited packets.""" |
| 3252 | f = get_temp_file() |
| 3253 | wrpcap(f, pktlist) |
| 3254 | with ContextManagerSubprocess(conf.prog.hexedit): |
| 3255 | subprocess.call([conf.prog.hexedit, f]) |
| 3256 | rpktlist = rdpcap(f) |
| 3257 | os.unlink(f) |
| 3258 | return rpktlist |
| 3259 | |
| 3260 | |
| 3261 | def get_terminal_width(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…