Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

replaced https://tools.ietf.org/html/rfc with https://www.rfc-editor.org/rfc/rfc
Source Link

You need to build a Ethernet header and a TCP header and add your data to it according to the RFC standard (this might be a good place to start: https://tools.ietf.org/html/rfc793 https://www.rfc-editor.org/rfc/rfc793). Then you need to "simply" send that out on to your "socket". There's no magic involved with RAW sockets, you build your header with a source+destination address, and you send your payload out onto the cable hoping you built the packet correctly.

You need to build a Ethernet header and a TCP header and add your data to it according to the RFC standard (this might be a good place to start: https://tools.ietf.org/html/rfc793). Then you need to "simply" send that out on to your "socket". There's no magic involved with RAW sockets, you build your header with a source+destination address, and you send your payload out onto the cable hoping you built the packet correctly.

You need to build a Ethernet header and a TCP header and add your data to it according to the RFC standard (this might be a good place to start: https://www.rfc-editor.org/rfc/rfc793). Then you need to "simply" send that out on to your "socket". There's no magic involved with RAW sockets, you build your header with a source+destination address, and you send your payload out onto the cable hoping you built the packet correctly.

added 35 characters in body
Source Link
Torxed
  • 23.6k
  • 15
  • 91
  • 135

That's because a raw socket doesn't utelize the Ethernet/TCP/IP library at all. It's a RAW socket, you're in charge of whatever data you send. You're also in charge of connecting to your peer by sending the right SYN/ACK order.

That's because a raw socket doesn't utelize the Ethernet/TCP/IP library at all. It's a RAW socket, you're in charge of whatever data you send. You're also in charge of connecting to your peer.

That's because a raw socket doesn't utelize the Ethernet/TCP/IP library at all. It's a RAW socket, you're in charge of whatever data you send. You're also in charge of connecting to your peer by sending the right SYN/ACK order.

added 50 characters in body
Source Link
Torxed
  • 23.6k
  • 15
  • 91
  • 135

That's because a raw socket doesn't utelize the Ethernet/TCP/IP library at all. It's a RAW socket, you're in charge of whatever data you send. You're also in charge of connecting to your peer.

That's because a raw socket doesn't utelize the Ethernet/TCP/IP library at all. It's a RAW socket, you're in charge of whatever data you send.

That's because a raw socket doesn't utelize the Ethernet/TCP/IP library at all. It's a RAW socket, you're in charge of whatever data you send. You're also in charge of connecting to your peer.

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot
Loading
added 138 characters in body
Source Link
Torxed
  • 23.6k
  • 15
  • 91
  • 135
Loading
added 4260 characters in body
Source Link
Torxed
  • 23.6k
  • 15
  • 91
  • 135
Loading
Source Link
Torxed
  • 23.6k
  • 15
  • 91
  • 135
Loading
lang-py

AltStyle によって変換されたページ (->オリジナル) /