packet fragmentation for raw sockets

前端 未结 5 849
春和景丽
春和景丽 2021-01-06 18:49

If I am using raw sockets to send a UDP packet of size 3000bytes, do I need to handle packet fragmentation myself in the code, or should the raw socket handle fragmentation

5条回答
  •  执念已碎
    2021-01-06 19:22

    The underlying protocol, IP, still handles fragmentation. As long as you're not setting the DF (don't fragment) bit you should be fine, I think.

提交回复
热议问题