|
|
|
|
|
by globular-toast
482 days ago
|
|
When using a packet socket you are sending bytes directly to the device driver. The only ports at this level are the physical ports on your machine which will have names like "eth1" etc. Assuming an Ethernet driver, the bytes must be a valid Ethernet frame[0], but that's all. The payload is just bytes. [0] https://en.wikipedia.org/wiki/Ethernet_frame |
|