Sending arbitrary (raw) packets

I saw it elsewhere, but no one responds to my satisfaction: how can I receive and send raw packets?

By "raw packets" I mean where I have to generate all the headers and data so that the bytes are completely arbitrary, and I am in no way limited. This is why Microsoft RAW sockets will not work because you cannot send TCP or UDP packets with the wrong source addresses.

I know that you can send packets as I want using WinPCAP, but you cannot receive raw information with it, which I also need to do.

+5
source share
1 answer

, , :

Ethernet

Ethernet Ethernet, , , , , , , , Windows. NetBSD , Ethernet .

(, Napatech, ), API Ethernet, , .

, , ethernet, , IP OS. NIC NIC .

IP

/ IP-, winpcap . , winpcap , winpcap .

, IP , TCP/IP, -, IP-, IP/ 3 . . IP-, UDP TCP- TCP , , TCP/IP

TCP/IP .

TCP/UDP

, / IP-. winpcap, , ethernet/IP . , TCP/IP. TCP/IP .

() ( "" TCP/IP ). / , , . , .

, TCP , , TCP, , , , TCP . (, "" 5 - - () ). , , nagel (TCP_NDELAY) / MTU NIC.

, muckery TCP, . , / IP- , .

, TCP/UDP ( IP-).

  • , , , .

  • "Ethernet" "IP". .. , . , , . . Linux netfilter , , .

  • -, , - , , / .

  • , TCP, , , UMP ICMP. TCP- . . ( , , TCP, ). IP UDP/TCP , , ICMP- WinPcap, winpcap, /, -.

  • NS/2

+9

All Articles