you can try the raw socket in c.
In C socket function SOCK_RAW macro is available.
see man 2 socket.