-1

I am writing a packet sniffer and have to detect when packets come from a certain website. I was wondering if the packet always contains a header, or if it is only a select few.

Thanks

alk
  • 69,737
  • 10
  • 105
  • 255
BOB
  • 47
  • 6

2 Answers2

2

No.

TCP works on a different level in the OSI model.

Bart Friederichs
  • 33,050
  • 15
  • 95
  • 195
1

No. There are packets for the TCP handshake, and packets could contain only pieces of the request body.

Matt Ball
  • 354,903
  • 100
  • 647
  • 710