Skip to content

binary protocol support + backticks for nfsim

Max Kellermann netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Linux 2.6.11 API fixescore/ipv4/ipv4.c core/ipv4/ipv4.h kernelenv/include/kernelenv.h+14 -20 replies
2/4check current_command in expect_log_hook()core/expect.c+3 -00 replies
3/4escape non-printables and 8bit characterscore/ipv4/ipv4.c+6 -00 replies
4/4implement backtickscore/tui.c+148 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nfsim 0/4] binary protocol support + backticks for nfsim

Hi,

this set of 4 patches adds support for binary protocols by escaping all non-printable and 8 bit characters and by adding the "backtick" feature known from the shell and perl. This enables you to write a small program which generates packets for nfsim.

Without these patches, it is a major pain to write nfsim tests for binary protocols like H.323.

Consider the following snippet (NAT helper test):

expect gen_ip send:eth1 {*DATA ./generate-h225-connect 192.168.0.2} tcpsession DATA original ./generate-h225-connect 192.168.0.1

Now imagine the same expressed in inlined hex notation.

Max