Programming :: Opening A Network Interface?
Apr 29, 2011Is there a way to open a network interface (that is not configured, yet), to send and receive some packets? The program will be running with root permissions.
View 11 RepliesIs there a way to open a network interface (that is not configured, yet), to send and receive some packets? The program will be running with root permissions.
View 11 Repliesopening a text file from glade interface.how?using c code
View 1 Replies View RelatedIs there any API or event notification scheme to tell when the network is down/up?
View 1 Replies View RelatedI am trying to write an app that will perform some actions when a network interface is unplugged. Is there a way to get the OS to signal me when a network interface is unplugged. I have looked at DBus but can't figure it out.
View 1 Replies View RelatedI want to get info about network interfaces in C , is there any library for this purpose ?
View 1 Replies View RelatedIn C++ or C, is there anyway to detect the name of the module or driver currently used by a network interface card (either wired or wireless, INCLUDING USB DEVICES)?My application must have this feature. I just want to detect whether the module / driver is ndiswrapper or not.
View 4 Replies View RelatedI have a ppp0 entry with post-up options like this
mapping ppp0
map none photon-plus motorola
map timeout: 12
[code]...
I found multiple sites explaining how to add IPs to a network interface as virtual interface like eth0:0. However I can add IPs to an interface as well using the ip command: ip a a 192.168.2.2/24 dev eth0 What I want to know is how I can make this persistent on rhel/centos.
View 2 Replies View RelatedI am totally new to Linux and have just installed ubuntu 10.10. After configuring the network interface via dhcp I started getting these messages that come in so frequently I can't configure anything else.
[87.186415] Stack:
Why I am getting this messages and more importantly how do I get rid of them.
The installation is on a VM on Hyper-V.
today I tried to configure a network route to a host for testing my network interface. Code: route add 192.168.1.15 eth0 As I have to eth interfaces and both interface got their IP from DHCP (192.168.1.11 and 192.168.1.12) and are in the same subnet, I shut the other interface down:
Code: ifconfig eth1 down Then I tried to test the interface by doing a ping to 192.168.1.15.
Problem: When I unplug the cable from eth0 (and eth1 is still plugged) the ping still works. Somehow my linux (it's debian) powers up again eth0 and pings over this port.
How can I stop my linux doing this. I just want to have the route added only on the one interface - not the other. Is it maybe some case of a default-gateway?
Config: Squeeze, 2.6.32-5-amd64I just installed squeeze and the network is up and nm-manager deamon if working but the Gnome applet doesn't seem to work as usual. It indicates no network although the network is available as indicated by ifconfig and route below. When I switch WiFi on, the nm works flawlessly. When I click on the applet icon it says "Wired Network: device not supported" (or similar, msg in french is
eth0 Link encap:Ethernet HWaddr 00:1f:e2:12:ea:d8
inet adr:192.168.0.182 Bcast:192.168.0.255 Masque:255.255.255.0
adr inet6: fe80::21f:e2ff:fe12:ead8/64 Scope:Lien
[code]...
Last night while setting up wired & wireless connection in openSuse 11.2 Gnome version via YAST's ifup, I got wireless but lost wired connection (interface eth0). Dmesg shows that eth0 became eth1. I cannot get eth0 back. Is there any way to remedy this situation, eg. get info from the Ubuntu partition in my triple-boot laptop, without having to re-install openSUSE?
View 3 Replies View RelatedI would like to use zypper to update openSUSE 11.2 through the Virtual Terminals (tty1 thro' tty6).
Network Interface is wlan0 (Wireless LAN, home network through a Router) that requires a password using WPA2.
My question is how to start wlan0 through the command-line ?
I have a laptop connected to the the net thru an adsl modem, when I switch off the laptop network interface,(thru system-config-network) the light of the laptop network card plugged in the router stays on ( green) where as in my pc, when i do the same thing , the light of my pc network card goes off in the modem
View 5 Replies View RelatedI have currently had the need to go back to basic socket programming, and implemented a simple udp packet sender. But I realized I needed to be able to select which network interface to send the packets from.
The reason is so that one of the interfaces has vlan tagging, and I need my UDP packets to be accordingly vlan tagged. For example, one of the interfaces is eth1.200.
The following are the output of command "ifconfig -a":
[Code]....
The interface "eth0", which is down, was not displayed, but loopback interface has been displayed. So, how can I make my application display all interfaces, including the interfaces which are down, but excluding the loopback interface?
im working on a perl script to automate the setup on a few machines. Does any one know how to open ports using perl?
ps: The systems are redhat so id be editing the iptables file..
I am not a programmer. But I feel safe enough to edit a file (afteracking it up of course.)I am using Arch with Enlightenment (E17.) I installed fwbuilder. Now when I click on the tutorial button it would not start my browser at all. The terminal gave this error;
Code:
/usr/bin/xdg-open: line 478: firefox: command not found
/usr/bin/xdg-open: line 478: mozilla: command not found
[code]....
how to detect if a file is being opened by any application so that i can block it just before opening it... Actually i am working on android and using iNotify in JNI to detect the OPENING of a file...but the file is getting opened before the iNotify detects it..and therefore its displaying the contents of the file unmodified .. The actual requirement is that if anyone is trying to open the file it should be modified by my program and then the modified file should be opened.
View 10 Replies View RelatedI'm trying to open ttySx from an interrupt.the kernel crashes. is it possible to open/write to serial port from interrupts ? I think it crushes because when I try to open the device there is a mutex lock which cause the kernel to crash , am I right
View 2 Replies View RelatedI am trying to run my code repeatedly in a loop about 50 times for timing measurement. I have C code running on ubuntu 8 on a single processor, Intel x86. My code is something like this
Code:
for (loop =0;loop<=50;loop++)
{
// other operations
pDir = opendir("/proc");
while (pDir == NULL)
[Code]...
After about 28-29 times the loop stops executing. I initially had a return -1 if I got pDir == NULL. That caused my program to exit, and I dont want that. Any clues on why this happens, and how I can circumvent this?
I am a beginner at programming and have been given an assignment by my professor. Its a text file with lines of varying lengths. All I have to do is write a code to open the file and see the output in an excel sheet. Have been asked to use C/C++ or visual basic
View 5 Replies View RelatedI'm thinking about making a web server but, I have an issue:will opening Port 80 affect all computers on a network?
View 1 Replies View RelatedI have just installed ubuntu 10.10 but my problem is i am able to coonect wifi network but sites are not opening so where is problem
View 1 Replies View Relatedafter restarting my Fedora 10 the eth0 interface is not up
after i manually restart the network service everything is OK but after restarting it is the same problem.
this is the interface config file:
/etc/sysconfig/networking/devices/ifcfg-eth0 /etc/sysconfig/networking/devices/ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
HWADDR=00:0c:29:8b:82:6b
ONBOOT=yes
SEARCH="mydomainname"
[Code]....
i know i can put the restart service command in the rc.local file but it not suppose to work this way.
I have dsl broadband shared through a Modem Bridge Mode forwarded to wireless router which is configured for dhcp lease to the clients(1 Desktop, 1 Laptop).
So, in My Debian Testing Desktop, I have following lines in /etc/network/interfaces :
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
[Code]....
I'm having all sorts of problems connecting an access point to my computer, but here is one piece that I hope will get me going, if I can get it solved.My computer has two network interfaces, eth0 and eth1. eth1 connects to the cable modem and thence the world, and works fine. eth0 is supposed to connect to the access point over a private network. Here is the output from route with my IP address blotted out:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
[code]...
If I have set up 2 network interfaces on a box, if I started sending multicast traffic, it will go out through both interfaces? Or is there a way to control through which interface it will go out?
View 1 Replies View Relatedi am using Fedora 14. Once system get hanged during opening a video file so I had to restart the system by pressing restart button. But after restarting there are few problems appearing like system monitor not opening and Thunder bird opening but not showing any folder including inbox.
---------- Post added at 04:54 AM GMT ---------- Previous post was at 04:42 AM GMT ----------
Looks like SElinux has stopped working
what the best free linux graphic design interface was? Possibly one from the ubuntu one software center. I tried boa constructor and it was glitchy and kept crashing. I want something very easy to use and as simple as possible as i am new to programming. I want something that also supports the major programming languages like python C++, etc and was also wondering where i could go to learn codes for python.
View 4 Replies View Related