In my python code I need to get the list of “physical” WiFi network devices connected to Raspberry Pi I’ve been doing this by calling: and then extracting all the data I need from raw_output It works ok, but in iw help it says that Do NOT screenscrape this tool, we don’t consider its output stable. Is it really unsafe
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
How to get the URL or IP of a load balancer from DNS of a website?
nslookup is a network administration command-line tool available for many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record. So, nslookup returns the endpoint(s) of a url. But if I needs to get the intermediate url/ip, how do I do so? For eg. If
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
Copy network file from a Linux host to my Linux server using PHP
I am trying to retrieve a network file from an OpenSUSE 13.1 Host to my OpenSUSE 13.2 Webserver, but I don’t seem to have any success. First I check if target directory is a directory: In this case the function is_dir() returns FALSE, although the folder exists and has 777 permisions, the IP is correct, and the computer is turned
Java read bytes from Socket on Linux
I’m trying to send a file from my Windows machine to my Raspberry-Pi 2, and I have a client and a server. The client should be able to send a zip file over the network to my server on my linux machine. I know my client and server work on Windows, as when I run both the client and server
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,