Discussion:
Reading packets larger than MTU size from netfilter queue
Vitthaladevuni, Pavan Kumar
2014-09-02 20:28:01 UTC
Permalink
Hello,

I am trying to read incoming TCP packets. TCPdump shows that there are packets of size 20-30KB that are arriving.The IP header of these packets has the "Do Not Fragment" flag set to true.

When I try to read them from the netfilter queue, I am failing. I am using this command:

"status = recv(nfq_fd(_NFQHandle), buf, sizeof(buf), MSG_WAITALL)."

Even with MSG_PEEK or MSG_MSG_DONTWAIT, these packets are not being read. I am able to increase the MTU size only upto 9KB. Any packet that is larger than this MTU size is not being read by the recv function.

My question is: Is it possible to read un-fragmented packets that are larger than MTU size using the recv function from the netfilter queue?

Thanks
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...