raw-sockets
Set IP_HDRINCL with PF_PACKET error in linux
I setup a raw Packet socket using the following: sockFd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL) );[详细]
2023-04-11 01:19 分类:问答Using raw sockets with C#
I want to write a port scanner in C# and I can\'t use SocketType.Raw as raw sockets were taken out from desktop versions of windows. I can\'t use SharpPcap either or other wrapper for Winpcap as I use[详细]
2023-04-07 06:55 分类:问答How to use raw sockets in WinCE5?
I need to use raw sockets in Windows CE 5.0. The following code always fails with error socket fai开发者_运维知识库led, err:10044.(The support for the specified socket type does not exist in this ad[详细]
2023-03-11 23:03 分类:问答Socket transmit data but can't receive response
I am trying to implement UpNP in C++, I found a few sources on google but none worked. I found this one working (http://www.codeproject.com/KB/IP/upnplib.aspx) but it\'s for .NET, so I decided to snif[详细]
2023-03-06 17:18 分类:问答TCP Connection Hijacking
I have a small project that I\'ve been working on in C++, and due to the nature of what it does, I need to insert packets in to a live TCP stream. (The purpose is innocent enough, http://ee.forumify.c[详细]
2023-02-28 20:50 分类:问答Raw Socket Help: Why UDP packets created by raw sockets are not being received by kernel UDP?
I am studying raw sockets. I used the IP_HDRINCL option to build my own IP headers. After the IP header, I am building a UDP header. Then I am sending the packet to my system\'s loopback address. I ha[详细]
2023-02-25 20:28 分类:问答How to read complete IP frames from TCP socket in Python?
I need to read a complete (raw) IP frame from a TCP stream socket using Python. Essentially I want an 开发者_如何学编程unmodified frame just as if it came off the physical line, including all the head[详细]
2023-02-19 02:24 分类:问答How to bind a Raw Socket to a specific port?
I am currently working on a programming assignment. The assignment is to implement a client,network emulator, and server. The client passes packets to a network emulator, and the network emulator pass[详细]
2023-02-10 12:03 分类:问答Does the ICMP Header Checksum include the data as well?
As part of a homework assignment, I have to write a C开发者_JS百科 program in Linux that generates ICMP replies to ICMP Echo requests using raw sockets. Does the data in the ICMP Packet have to be inc[详细]
2023-02-08 14:48 分类:问答Send an UDP packet and receive an ICMP response from router in C
I\'m trying write a C progr开发者_开发技巧am that sends an UDP packet to a given IP adress and waits for an ICMP response of a router telling that the time to live expired. It\'s kept very simple beca[详细]
2023-02-08 14:21 分类:问答