packet fragmentation for raw sockets

前端 未结 5 882
春和景丽
春和景丽 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:16

    Nope, packet fragmentation is handled at a lower level. You should see exactly what you put in the packet come back out. That is to say UDP guaranties message boundaries.

提交回复
热议问题