Dear John,

Is this picture what you have in mind?

Client 1   +
Client 2   | ---> TCP dst-port=5000, dst-addr=vpp intfc address -> vpp -> tap 
interface -> Linux stack
....
Client N   +

As in: you want to redirect tcp-for-us dst-port=5000 packets to the Linux stack?

If that’s correct, “ip[4|6]_register_protocol (IP_PROTOCOL_TCP, 
my_node.index);” will hand “my_node” all tcp-for-us packets, whereupon you can 
check for the indicated dst port and so forth.

That’s true today.

We’re developing a vpp tcp host-stack, which will be in 17.04. Mechanics will 
change. Before we go there, please confirm that I’m understanding what you need 
to do.

Thanks… Dave

From: John Pearson [mailto:[email protected]]
Sent: Tuesday, February 7, 2017 7:00 PM
To: Dave Barach (dbarach) <[email protected]>
Cc: [email protected]
Subject: Re: [vpp-dev] classify and redirect to tap


Hi Dave,

I have a custom application that processes packets sent on port 5000 by the 
clients. I can’t manually configure each client, so this requires redirecting 
packets with destination port 5000 to tap interface on which the application is 
listening.

Thanks

On Tue, Feb 7, 2017 at 4:53 AM, Dave Barach (dbarach) 
<[email protected]<mailto:[email protected]>> wrote:
Dear John,

Read at face value, you’ll probably want to implement an output feature to take 
care of it. Before I jump in and start describing the mechanics involved: 
please describe the use-case in some detail.

The easiest-to-code solution would probably cost an annoying amount of 
performance on every packet. Depending on details, it may be possible to use 
e.g. FIB adjacencies to reduce the cost to zero for traffic that you don’t 
redirect.

Thanks… Dave

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of John Pearson
Sent: Tuesday, February 7, 2017 12:57 AM
To: [email protected]<mailto:[email protected]>
Subject: [vpp-dev] classify and redirect to tap

Hi, I am trying to send/redirect outgoing tcp port 5000 traffic to tap device.

I found another thread mention “tap inject” but couldn’t find any documentation 
on it and “inject” is an unknown input in vpp CLI.

Any advice?

_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to