Hi my friend,

"Vadlapudi Madhu" <[EMAIL PROTECTED]> writes:
> Hi friends,
> May I know, what is exact file name, where IP packet will be taken from
> ethrnet. I mean after stripping of the ethernet header , the packet will
> be forwarded to IP layer, i want to know the place of that function.

It's in ./net/ipv6/ipv6_sockglue.c at line 558 as of kernel 2.4.19 pre4

If you want to receive all IPv6 packets and not deliver them to
linux's stack, here's a code snippet:

  if ((lnx_ptypev6 = ptype_base [0x86DD & 15]))
  {
          dev_remove_pack (lnx_ptypev6);
  }
  dev_add_pack (&function_ipv6_packet_type);

And now your function_ipv6_packet_type will receive all IPv6 packets,
and the Linux stack will not get them.  You can put this code into
your own module.c, then insmod that module and you're all set.

Alex

---------------------------------------------------------------------
The IPv6 Users Mailing List
Unsubscribe by sending "unsubscribe users" to [EMAIL PROTECTED]

Reply via email to