diff options
author | Konstantin Ananyev <konstantin.ananyev@intel.com> | 2017-02-21 18:12:20 +0000 |
---|---|---|
committer | Konstantin Ananyev <konstantin.ananyev@intel.com> | 2017-02-24 16:37:08 +0000 |
commit | aa97dd1ce910b839fed46ad55d1e70e403f5a930 (patch) | |
tree | f6f0fd494eaf499859bff9f20f5ddfac9ab99233 /examples/l4fwd/fe.cfg | |
parent | f5f10013ffef8e4ac1071087b8492fe6380d98fe (diff) |
Introduce first version of TCP code.
Supported functionality:
- open/close
- listen/accept/connect
- send/recv
In order to achieve that libtle_udp library was
reworked into libtle_l4p library that supports
both TCP and UDP protocols.
New libtle_timer library was introduced
(thanks to Cisco guys and Dave Barach <dbarach@cisco.com>
for sharing their timer code with us).
Sample application was also reworked significantly
to support both TCP and UDP traffic handling.
New UT were introduced.
Change-Id: I806b05011f521e89b58db403cfdd484a37beb775
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>
Signed-off-by: Karol Latecki <karolx.latecki@intel.com>
Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'examples/l4fwd/fe.cfg')
-rw-r--r-- | examples/l4fwd/fe.cfg | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/l4fwd/fe.cfg b/examples/l4fwd/fe.cfg new file mode 100644 index 0000000..2706323 --- /dev/null +++ b/examples/l4fwd/fe.cfg @@ -0,0 +1,24 @@ +# +# udpfwd FE config file example +# + +# open IPv4 stream with local_addr=192.168.1.233:32768, +# and remote_addr as wildcard (any remote addressi/port allowed). +# use it echo mode - for any received packet - send it back to the source +lcore=3,op=echo,laddr=192.168.1.233,lport=0x8000,raddr=0.0.0.0,rport=0 + +# open IPv4 stream with specified local/remote address/port and +# do send only over that stream. +lcore=3,op=tx,laddr=192.168.1.233,lport=0x8001,raddr=192.168.1.56,rport=0x200,txlen=72 + +# open IPv6 stream with specified local port (512) probably over multiple +# eth ports, and do recv only over that stream. +lcore=3,op=rx,laddr=::,lport=0x200,raddr=::,rport=0,txlen=72 + +# fwd mode example. +# open IPv4 stream on local port 11211 (memcached) over all possible ports. +# for each new flow, sort of tunnel will be created, i.e: +# new stream will be opend to communcate with forwarding remote address, +# so all packets with <laddr=A:11211,raddr=X:N> will be forwarded to +# <laddr=[B]:M,raddr=[2001:4860:b002::56]:11211> and visa-versa. +lcore=3,op=fwd,laddr=0.0.0.0,lport=11211,raddr=0.0.0.0,rport=0,fwladdr=::,fwlport=0,fwraddr=2001:4860:b002::56,fwrport=11211 |