Skip to content
Advertisement

Tag: network-programming

How do I restart wlan0 with the static ip instead of a dynamic ip? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Is libpcap implemented by socket API?

libpcap is used for package capturing. As I understand, it can capture the network packages from all ports. And it can capture the package data in link layer (such as ethernet frame). This looks a little confusing to me, because it seems impossible to intercept all network traffic (from all ports) by just using the socket API in Unix-like system.

Recreate and send packet captured by nfqueue

I capture all the packets in one side with help of nfqueue, “record” them (all the data: ip info, next protocol info etc) with nfq_get_payload and deliver them into another side with help of udp. How can I restore this packet on another side and then send to myself(2 side) like there is no udp-encapsulation between? Should I use some

Understanding the msghdr structure from sys/socket.h

I’m trying to understand the following members of the msghdr structure of the sys/socket.h lib. struct iovec *msg_iov scatter/gather array void *msg_control ancillary data, see below It states below: Ancillary data consists of a sequence of pairs, each consisting of a cmsghdr structure followed by a data array. The data array contains the ancillary data message, and the cmsghdr structure

Golang UDP Server only recieving locally sent packets

I’ve written a UDP Server in Go(listens on port 666), and it seems to be only receiving packets that were sent locally. To confirm traffic, I have been using: My(abbreviated) server code: If, from the machine the server is running on, I use: then the server receives that packet, and prints the message(and tcpdump shows no output). However, if I

how to verify tcp checksum [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago. For some odd reason,

Advertisement