解读Raw Socket
生活随笔
收集整理的這篇文章主要介紹了
解读Raw Socket
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
什么是Raw Socket呢?下面是來自wikipedia的解釋: In computer networking, a raw socket is a socket that allows direct access to packet's headers. Due to the fact that raw sockets allow users to craft packets' headers, their power can be abused to perform attacks such as IP address spoofing in hand with denial-of-service. Raw Socket的最大特點就是允許用戶自己定義packet header,如果這一功能被濫用,就可以被用來實現(xiàn)IP地址欺騙,以及DoS***。 Raw sockets are not a programming language-level construct, they are part of the underlying operating system's networking API. Most socket interfaces, especially those based on the Berkeley sockets, support them. Raw Socket不是編程語言級別的標(biāo)準(zhǔn)構(gòu)造,由OS里面的低層API支持,大多數(shù)的網(wǎng)絡(luò)接口都支持Raw Socket。 Usually raw sockets receive packets containing the header, as opposed to standard sockets, which receive just the payload with the headers stripped for programmer's convenience. For outgoing packets, whether or not a header is automatically prepended is usually a raw socket's configurable option. 通過Raw Socket接收到的數(shù)據(jù)包帶有包頭,通過標(biāo)準(zhǔn)Socket只能接收到凈載,通過Raw Socket發(fā)出數(shù)據(jù)時,要不要自動生成pocket header是可配置的。 Raw sockets are usually used on the network's transport layer or network layer. Raw Socket通常用在傳輸層和網(wǎng)絡(luò)層。
轉(zhuǎn)載于:https://blog.51cto.com/simon/76043
總結(jié)
以上是生活随笔為你收集整理的解读Raw Socket的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 将SQL Server中所有表的列信息显
- 下一篇: 在NumericStepper控件中使用