farsightsec / fstrm

Frame Streams implementation in C
MIT License
59 stars 27 forks source link

fstrm_replay sanity check port/address #47

Closed reedjc closed 6 years ago

reedjc commented 6 years ago

This ticket has a few suggestions:

fstrm_replay should complain if --port is used with --unix

fstrm_replay should have sanity checking for the --port value before uses fstrm_tcp_writer_init().

For example, see open_read_tcp() in src/fstrm_capture.c which does: fstrm_capture: Usage error: Failed to parse TCP listen port

Also check for valid tcp address too.

reedjc commented 6 years ago

This was merged to branch for upcoming release. I will close this now.