Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
113 views

I'm writing a TCP/IP stack for embedded systems, but I wanted to test it on my host system. Originally I tried with tap0 + a bridge. But I quickly realized it would make the most sense to bind to the ...
Charles Lohr's user avatar
  • 1,021
3 votes
0 answers
42 views

Thanks for understanding, I'm really noob in c/c++ languages. Prerequisites: I'm trying to create http-parser.js/ts lib at the lowest possible cost. Moreover, I want my own parser work with node.js ...
xNevrroXx's user avatar
  • 517
2 votes
1 answer
87 views

I am implementing TCP from scratch using raw sockets on macOS. I want to: Get a dynamic source port from the kernel Use this port with IP_HDRINCL for full IP/TCP header control Current approach: ...
Ma Ja's user avatar
  • 53
0 votes
1 answer
143 views

When we using a raw socket, we need to handle everything including handling which packet we need to process. Suppose I receive 2 packets with 10 byte size. The packets contain the message "...
Akbar294's user avatar
1 vote
0 answers
48 views

I tried to receive a UDP packet with the following function: int UDP::recv(byte* data, const uint16_t dataLen, uint16_t srcPort, IPV4& srcIp) { const size_t totalHeadersLen = IP_HEADERS_SIZE + ...
Padadi's user avatar
  • 11
0 votes
2 answers
217 views

So I'm implementing TCP sockets in C with raw sockets in order to further understand computer networking. I'm working on writing the ethernet header code, and I can get the source MAC address that's ...
Spencer Nold's user avatar
0 votes
0 answers
77 views

I am learning raw socket programming in linux Ubuntu but i have a problem. My udp packet is not shown in Wireshark. I suspect that its being dropped by my router because of a mistake I made. here is ...
ling978089's user avatar
0 votes
1 answer
498 views

I am programming a code that sends a text message to a specific port using UDP. I initialize IP header and UDP myself. My problem is that the finished UDP packet is corrupted and Wireshark doesn't ...
ni1's user avatar
  • 25
0 votes
1 answer
296 views

Description I'm currently trying to send packets via a raw socket in Rust. I'm currently using libc to manage the socket. I've had success with sending the packet but the packet sent is never the same ...
petios's user avatar
  • 27
1 vote
0 answers
73 views

I am using unix sockets on layer 2 to send layer 2 packets in the air. I have an Alfa Awus adapter which I set to monitor mode via iwconfig wlanAdapter mode monitor command. I have this c function ...
C.Unbay's user avatar
  • 2,826
1 vote
1 answer
181 views

the sendto function we have to pass destination struct sockaddr or sockaddr_in But what's the purpose? isn't it, if we use raw Socket, we create our own header, which means we will specify the address ...
Hanzo Mortal_kombat's user avatar
0 votes
1 answer
85 views

how the header structure in bit representation let's take the example icmp header because this icmp has fewest fields. | TYPE | CODE | CHECKSUM | CONTENT Just for example then let's assign some ...
Hanzo Mortal_kombat's user avatar
1 vote
1 answer
76 views

I'm trying to write a PHP TCP client to connect to an Unreal Engine 5 RCON server. I'm using an existing C# project on GitHub as a reference but I'm having trouble preparing packets to send. The ...
Daniel's user avatar
  • 1,491
0 votes
0 answers
20 views

I have a new problem with the migration to freebsd. I've tried to give everything I can. The problem with recvfrom is it just can't wait for a packet, even when I remove the timeout. Here is a ...
lomaster's user avatar
0 votes
1 answer
433 views

Main Situation I'm using raw socket trying to recv OSPF packet. Although I've successfully grabbed the packet through Wireshark, I could not receive anything through function recv(), where the thread ...
Xlucidator's user avatar
0 votes
1 answer
334 views

I'm trying to write a simple python server that accepts a connection from whatever and digests the entire frame, down to the ethernet headers. The server will not maintain a connection or care about ...
CD1210's user avatar
  • 1
1 vote
2 answers
2k views

I am trying to understand the difference between how DPDK passes packet data to userspace, versus Linux raw sockets? The Man page for raw sockets implies the Kernel does no packet processing: Packet ...
intrigued_66's user avatar
  • 17.5k
1 vote
0 answers
220 views

I would like to implement a sniffer for incident response and forensic investigations, to sniff the traffic and identifying malicious packets and C2 (C&C -Command and Control) IP. In incident ...
MauriceLambert's user avatar
1 vote
0 answers
282 views

I have a board (with FPGA) connecting to a windows 10 host through a 10G NIC. The board is set to static IP 10.254.210.10 & the host is 10.254.210.11. I can see the UDP packets in wireshark but it ...
skallurr's user avatar
1 vote
0 answers
405 views

Windows usually blocks sending raw IP packets with app-specied TCP payloads. I would like to be able to do this because it would allow students to use Python's beautiful sockets library to send TCP ...
Josiah Yoder --MSOE's user avatar
1 vote
0 answers
236 views

I have implemented my own raw socket operating on „raw“ Ethernet frames (socket(AF_PACKET,SOCK_RAW,htons(ETH_P_ALL));) and bound it to one specific network Interface. Sending and receiving raw packets ...
Ohjurot's user avatar
  • 97
0 votes
0 answers
457 views

I wish to manually add a UDP header to a raw packet which I make with a RAW socket (with ProtocolType.IP and NOT ProtocolType.Udp). I found code in Python, taken from here, which did the thing I need: ...
Yonka2019's user avatar
0 votes
1 answer
2k views

Im making an application that needs to receive a TCP connection that comes with a request that contains some header data that i need to read and send back with more info later. The issue is that after ...
xguysOG's user avatar
  • 53
0 votes
1 answer
938 views

I have 2 programs. One program sends data to the other program. Both programs use raw UDP sockets. The sending program sends to loopback address 127.0.0.1, from port 25252 to port 80. The receiving ...
castile's user avatar
0 votes
1 answer
540 views

I am doing raw socket programming and trying to send TCP packets. I have created ethernet header, IPv4 header and TCP header. The ethernet header is 14 bytes long, IPv4 header is 20 bytes long and the ...
anbocode's user avatar

1
2 3 4 5
11