Hi,

On 30.10.2015 11:18, rizwana rizzy wrote:
hi,


Im doing a project on odp. just help me to know the example programs.
  like odp_pktio.c  does- fetching the packets from an interface and
sends out of system.
  what does odp_generator.c, IPsec, l2fwd and classifier do?

You should ask these question on the lng-odp mailing list (forwarded).
Briefly:
- odp-generator is a simple tool to generate packets (TCP, UDP, ICMP)
- IPsec is an example that demonstrates the ODP crypto API
- classifier is an example of using the ODP classification API.



Does any of these do :
  1. L2 layer processing. Check for L2 packet errors and take action
based on ethertype.

if so mention.

2.L3 layer processing. Checks for IP errors in packet and takes action
to terminate the traffic if destination is local or forward the packet
if the destination is outside.

3. identifies the IP gateway/destination to which the packet should be
routed.



4.finds the next hop MAC address and adds the L2 headers to the routed
packets.


You're not going to find such examples in ODP, merely simple ones to demonstrate the usage of the various APIs. Example 1 in your list sounds like something that can be easily put together, but still not very specific / useful.

You can easily start from the packet example, look at the swap_pkt_addrs to find out how to read the Ethernet header. Also check the API reference manual: http://docs.opendataplane.org/master/linux-generic-doxygen-html/index.html



regards
rizwana






_______________________________________________
lng-odp-ovs mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp-ovs

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to