Setting the skb->mark field from application

Vishwas Srivastava vishu.kernel at gmail.com
Mon Jun 2 06:25:13 EDT 2014


Hi all,
         Is it possible to set the skb->mark flied of the linux socket
buffer from the application?

Suppose application is using the Raw socket of Ethernet interface and it
sends and receive packets to that interface. However, application wants to
set the skb->mark filed of the socket buffer which in turn is honoured by
the ethernet driver. I could not find any option in the api "setsockopt"
which will allow to set the skb->mark field.

Anybody having any idea if it can be done from the application?
thanks,
Vishwas S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140602/acbb3e33/attachment.html 


More information about the Kernelnewbies mailing list