Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
2 votes
1 answer
128 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 ...
0 votes
0 answers
90 views

I'm making an assembly program that is supposed to get the mac address of the specified interface, however, when I try to assemble it, I get this error. gethwaddress.s:12: warning: multi-line macro `...
3 votes
0 answers
44 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 ...
4 votes
1 answer
144 views

I'm interested in filtering ICMP packets. More precisely I open a raw socket int sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP) and I'm interested to send PING_ECHO and to receive PING_ECHOREPLY ...
2 votes
1 answer
88 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: ...
0 votes
1 answer
75 views

I'm new in raw socket We know that if we using raw socket we need to handle everything including the buffer if we use raw socket we can use the following call : recvfrom(); recvmsg(); Suppose I'm ...
0 votes
1 answer
150 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 "...
0 votes
1 answer
149 views

I am trying to create a traceroute program in UNIX using raw sockets. I'm kind of new to this, but I managed to gather some things from here and there and put them together. However, it doesn't work ...
1 vote
0 answers
53 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
0 answers
40 views

I have a socket-based communication setup between a server and a client for my operating system project. I'm setting the IP_HDRINCL option to manually add an IP header, but this breaks communication—...
0 votes
2 answers
226 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 ...
0 votes
1 answer
547 views

I encountered many problems while trying to build raw socket packets in Windows using C++, so I consulted some materials. Because the Windows system restricts developers from using raw sockets to ...
S-N's user avatar
  • 402
0 votes
0 answers
78 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 ...
0 votes
1 answer
135 views

I am working on a network application where I send and receive TCP packets. However, I’m encountering an issue where the data received does not match the data sent. I’m using raw sockets and ...
0 votes
1 answer
516 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

15 30 50 per page
1
2 3 4 5
...
35

AltStyle によって変換されたページ (->オリジナル) /