traceflow
traceflow copied to clipboard
A pure python interpretation of traceroute
I tried `traceflow` on my MacBook and it crashed... looks like `setsockopt(socket.SOL_SOCKET, SO_TIMESTAMPNS, 1)` is not supported on OSX... ref -> https://stackoverflow.com/a/46330410/667301 Full OSX crash info: ```python % sudo traceflow...
Could be useful to be used when piping the output and / or when used in conjunction with other tooling, e.g., ``jq``, etc.
https://github.com/rucarrol/traceflow/blob/d0711521dcbd855c4b44ca4fc55b63c9af182b74/traceflow/socket_handler.py#L60 do `socket.bind((ipaddr, port)) ` if a source is supplied
When using traceflow interactively, it's cleaner to gracefully catch KeyboardInterrupts instead of throwing an exception. Ideally it would be less ugly to put the packet sending code in the main...
It's still work in progress but sending packets already works.