diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-06-23 21:15:53 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-06-23 22:15:45 +0200 |
commit | 130c4fbe2e815d94bcf4b6d13849bebbfbf0198d (patch) | |
tree | 1e526e4f0d2f46a2b28b84aa7dc87e46f054e90e /src/input/ipaccess.c | |
parent | af3fed9213666c8fa68ba3a153aa17577df97649 (diff) |
ipa-proxy: add A-bis over IP generic proxy commands for VTY
This patch adds VTY commands to route IPA flows. The following
example allows to add a new route:
$ tests/./ipa_proxy_test &
<0000> ipa_proxy_test.c:74 entering main loop
$ telnet localhost 4260
ipa-proxy-test> enable
ipa-proxy-test# ipa instance input-oml bind 127.0.0.1 tcp port 8888
ipa-proxy-test# ipa instance output-oml connect 127.0.0.1 tcp port 3002
ipa-proxy-test# ipa route instance input-oml streamid 0xfe instance output-oml streamid 0xfe
ipa-proxy-test# ipa instance input-rsl bind 127.0.0.1 tcp port 8889
ipa-proxy-test# ipa instance output-rsl connect 127.0.0.1 tcp port 3003
ipa-proxy-test# ipa route instance input-rsl streamid 0xfe instance output-rsl streamid 0xfe
I'm using this to initially test this code [*].
[*] note that this requires a minor hackish patch for the
src/input/ipaccess.c driver which changes the default OML and RSL
ports to listen in 8888 and 8889 instead of the default ports,
thus, I can initially test everything from the localhost.
Diffstat (limited to 'src/input/ipaccess.c')
0 files changed, 0 insertions, 0 deletions