This will make the dynamic update protocol and future forwarding extensions easier. Along the way I spotted a number of other minor faults, and have fixed those too. Changes in v2: * Several documentation and whitespace changes * Updated MAX_LISTEN_SOCKS since it's now per pif but not per protocol * Actually removed old TCP tables, overlooked before * Added 2 additional cleanup patches David Gibson (9): conf, fwd: Make overall forwarding mode local to conf path tcp: Remove stale description of port_to_tap field fwd: Don't initialise unused port bitmaps Fix misnamed field in struct ctx comments fwd: Split forwarding table from port scanning state fwd: Unify TCP and UDP forwarding tables fwd: Always open /proc/net{tcp,tcp6,udp,udp6} in pasta mode conf: Don't defer handling of --dns option conf: Parse all forwarding options at the same time conf.c | 225 ++++++++++++++++++++++++++------------------------ flow.c | 25 ++---- fwd.c | 249 ++++++++++++++++++++++++++++++++++---------------------- fwd.h | 67 +++++++-------- passt.c | 3 + passt.h | 7 +- tcp.c | 8 +- tcp.h | 9 +- udp.c | 9 +- udp.h | 8 +- 10 files changed, 331 insertions(+), 279 deletions(-) -- 2.53.0