packet fragmentation for raw sockets

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

    For Linux, the answer is yes. If you take a look at Linux's raw socket implementation, there is no reassembly happening for raw sockets.

提交回复
热议问题