Jump to content

Raw socket

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 24.225.212.247 (talk) at 00:27, 2 September 2005 (→‎major edit - irrelevant code and redundant information removed). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Raw socket is a computer networking term used to describe a socket that allows access to packet headers on incoming and outgoing packets. Raw sockets are usually used at the transport or network layers.

Usually raw sockets always receive packets with the header included (as opposed to non-raw sockets, which strip the header and receive just the payload). Whether or not a header is automatically prepended to outgoing packets is usually a configurable socket option.

Due to the fact that raw sockets allow users to craft packet headers themselves, their power can be abused to perform feats such as denial-of-service attacks.

Raw sockets are not a programming language-level construct, they are part of the underlying operating system's networking API.

Resources

Net::RawIP; module for PERL applications. Created by Sergey Kolychev.

Network Programming for Microsoft Windows