eCap adapter support for Packet Frame details

Asked by Jatin

Hello,

Could you please suggest that how can I change the code for eCap to fetch:
1) Source and destination MAC addresses
2) Source and destination ports

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Rousskov
Solved:
Last query:
Last reply:
Revision history for this message
Best Alex Rousskov (rousskov) said :
#1

You do not need to change libecap to receive information about the client (in REQMOD) and server (in RESPMOD) connections. You can use the existing libecap::Options API to pass that information from the host application to the adapter transaction.

Your host application may need to be modified to supply the necessary meta information, of course. For example, Squid supplies client IP and user name information to the adapter transaction but needs to be modified to pass the other info you want (see the Adaptation::Ecap::XactionRep::visitEachOption() method in Squid sources). Please use host application support channels to get help with enhancing your host application.

Revision history for this message
Jatin (jbhasin83) said :
#2

Thanks Alex Rousskov, that solved my question.