Recent

Author Topic: Building a packet from scratch (under Windows)  (Read 2556 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 8039
Re: Building a packet from scratch (under Windows)
« Reply #30 on: November 12, 2024, 08:51:08 am »
I know that you've seen the DF flag but it's not relevant to local operation particularly if application-level messages already fit inside the lower-level MTU.

Working from memory for example sizes, it would be relevant if you were sending 1 MByte messages over Ethernet with the standard 1K-ish MTU, or 64K messages over ATM with frame size 48 bytes.

Apart from that, and I can assure you that we are all getting sick of trying to hammer this home, TCP is stream-based and neither end of the link should be making assumptions about fragmentation. If the equipment with which you are trying to communicate is assuming that just because it sees the first byte of an application-level message it can recover the final one as part of the same operation then it's broken, what's more that design flaw could potentially result in a security vulnerability.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018