lundi 24 août 2020

How to write a Linux hook function to get called when a packet is received on an interface

I'm writing a software on a Linux Gateway device which receives data on RS485 interface.

  1. I want to write a Linux hook function that shall be invoked when message is received on RS485 interface.
  2. My hook function shall return a pointer to the message so that i can open the message and retrieve data within that message.

Aucun commentaire:

Enregistrer un commentaire