search for: siocsifflag

Displaying 20 results from an estimated 22 matches for "siocsifflag".

Did you mean: siocsifflags
2011 Aug 08
1
[socket.h] add (more) missing definitions
...ainst klibc we still need a patch for socket.h, otherwise: | kexec/ifdown.c:46:16: error: 'SIOCGIFCONF' undeclared (first use in this function) | kexec/ifdown.c:46:16: note: each undeclared identifier is reported only once for each function it appears in | kexec/ifdown.c:65:18: error: 'SIOCSIFFLAGS' undeclared (first use in this function) In fact: lib/klibc $ grep -R SIOCGIFCONF . ./include/linux/if.h: * Structure used in SIOCGIFCONF request. ./include/linux/sockios.h:#define SIOCGIFCONF 0x8912 /* get iface list lib/klibc $ grep -R SIOCSIFFLAGS . ./include/linux/sockios.h:#...
2012 Sep 10
9
issue using SRIOV "Unable to start - perhaps the PF driver is not up yet", while PF driver is actually up
...ixgbevf 0000:00:00.0: PF still in reset state, assigning new address while PF on eth2 is there and active, since i can ping other machine. Now, when I try to bring up the VF interface on domU, i get the following error 2476.295582] Unable to start - perhaps the PF Driver isn''t up yet SIOCSIFFLAGS: Network is down [ 2476.296917] Unable to start - perhaps the PF Driver isn''t up yet SIOCSIFFLAGS: Network is down and on dmesg on domU, [ 2476.295582] Unable to start - perhaps the PF Driver isn''t up yet [ 2476.296917] Unable to start - perhaps the PF Driver isn''t up y...
2012 Sep 10
9
issue using SRIOV "Unable to start - perhaps the PF driver is not up yet", while PF driver is actually up
...ixgbevf 0000:00:00.0: PF still in reset state, assigning new address while PF on eth2 is there and active, since i can ping other machine. Now, when I try to bring up the VF interface on domU, i get the following error 2476.295582] Unable to start - perhaps the PF Driver isn''t up yet SIOCSIFFLAGS: Network is down [ 2476.296917] Unable to start - perhaps the PF Driver isn''t up yet SIOCSIFFLAGS: Network is down and on dmesg on domU, [ 2476.295582] Unable to start - perhaps the PF Driver isn''t up yet [ 2476.296917] Unable to start - perhaps the PF Driver isn''t up y...
2007 Mar 09
0
Wireless fails with Netgear MA401 card.
...03:21 localhost kernel: eth1: Error -110 setting MAC address Mar 9 09:03:21 localhost kernel: eth1: Error -110 configuring card Mar 9 09:03:21 localhost kernel: eth1: Error -110 setting MAC address Mar 9 09:03:21 localhost kernel: eth1: Error -110 configuring card Mar 9 09:03:21 localhost ifup: SIOCSIFFLAGS: Connection timed out Mar 9 09:03:21 localhost kernel: eth1: Error -110 setting MAC address Mar 9 09:03:21 localhost kernel: eth1: Error -110 configuring card Mar 9 09:03:21 localhost ifup: SIOCSIFFLAGS: Connection timed out Mar 9 09:03:21 localhost dhclient: DHCPREQUEST on eth1 to 255.255.25...
2009 Mar 10
0
Problem with opensuse PVM
...RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:100 (100.0 b) TX bytes:100 (100.0 b) opensuse:~ # opensuse:~ # opensuse:~ # opensuse:~ # opensuse:~ # ifconfig eth3 up SIOCSIFFLAGS: Function not implemented opensuse:~ # ifconfig eth2 up SIOCSIFFLAGS: Function not implemented opensuse:~ # ifconfig eth4 up SIOCSIFFLAGS: Function not implemented opensuse:~ # dmesg |tail -n 10 lo: Disabled Privacy Extensions eth0: no IPv6 routers present pci frontend enable msi failed for dev 3:...
2009 Oct 25
1
permission script
I just wrote a little script, that will echo a message to the user, if it doesn't have enough permission: $ if ! [ "$(env LC_MESSAGES=C ifconfig wlan0 down | grep -i denied)" == "" ]; then echo "no permission"; fi SIOCSIFFLAGS: Permission denied $ sudo su [sudo] password for USER: # if ! [ "$(env LC_MESSAGES=C ifconfig wlan0 down | grep -i denied)" == "" ]; then echo "no permission"; fi # but it won't works why? -------------- next part -------------- An HTML atta...
2011 Aug 08
0
[PATCH] include: [sys/ioctl.h] needs linux/sockios.h
The defines of SIOCGIFCONF and SIOCSIFFLAGS are well hidden in linux-2.6 under #ifdef __KERNEL__ sections for example in linux/socket.h. Fixes these in kexec-tools against klibc: | kexec/ifdown.c:46:16: error: 'SIOCGIFCONF' undeclared (first use in this function) | kexec/ifdown.c:46:16: note: each undeclared identifier is reported...
2009 Nov 02
0
[PATCHv4 3/6] qemu/net: add raw backend
...; 0) + fprintf(stderr, "bind failed\n"); + + /* set iface to promiscuous mode (packets sent to the VM MAC) */ + if (promisc) { + ret = ioctl(fd, SIOCGIFFLAGS, &req); + if (ret < 0) + perror("SIOCGIFFLAGS failed\n"); + req.ifr_flags |= IFF_PROMISC; + ret = ioctl(fd, SIOCSIFFLAGS, &req); + if (ret < 0) + fprintf(stderr, "SIOCSIFFLAGS to promiscous failed\n"); + } + + ret = fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK); + if (ret < 0) + fprintf(stderr, "O_NONBLOCK set failed\n"); + + return fd; +} + +static void raw_cleanup(VLANClient...
2009 Nov 02
0
[PATCHv4 3/6] qemu/net: add raw backend
...; 0) + fprintf(stderr, "bind failed\n"); + + /* set iface to promiscuous mode (packets sent to the VM MAC) */ + if (promisc) { + ret = ioctl(fd, SIOCGIFFLAGS, &req); + if (ret < 0) + perror("SIOCGIFFLAGS failed\n"); + req.ifr_flags |= IFF_PROMISC; + ret = ioctl(fd, SIOCSIFFLAGS, &req); + if (ret < 0) + fprintf(stderr, "SIOCSIFFLAGS to promiscous failed\n"); + } + + ret = fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK); + if (ret < 0) + fprintf(stderr, "O_NONBLOCK set failed\n"); + + return fd; +} + +static void raw_cleanup(VLANClient...
2012 Apr 12
0
Live migration of instance using KVM hypervisor fails
...o-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 Domain id=20 is tainted: high-privileges Domain id=20 is tainted: shell-scripts char device redirected to /dev/pts/17 2012-04-12 03:57:26.850: shutting down can't delete tap57b16714-9a from eth1: Operation not supported SIOCSIFADDR: Permission denied SIOCSIFFLAGS: Permission denied SIOCSIFFLAGS: Permission denied /etc/qemu-ifdown: could not launch network script Libvirt version on both hosts: $ libvirtd --version libvirtd (libvirt) 0.9.2 $ virsh --version 0.9.2 Here are my libvirtd.conf details: listen_tls = 0 listen_tcp = 1 unix_sock_group = "libvi...
2009 Sep 21
2
[patch] RFC: put server tunnel name in environment
If an ssh server receives a tun/tap tunnel request and sets up the tunnel concerned, as far as I can see there is currently no way for the server to configure the tunnel in a manner dependent upon (e.g) the key used to set up the ssh session. Whilst an id based on the key can be passed to the ssh child process, where the tunnel is dynamically allocated, its tunnel name is lost. This patch
2008 Dec 04
1
Xen 3.3.0 PCI passthrough with pciback.hide
...Ethernet 00:1e:c9:53:53:a3 eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] WireSpeed[1] TSOcap[1] eth1: dma_rwctrl[76180000] dma_mask[64-bit] However when I try to bring up the interface using #ifup eth1 I get the following: get owner for dev 0 get 1 error enable msi for guest 1 status fffffff0 SIOCSIFFLAGS: Function not implemented Sending on LPF/eth1/00:1e:c9:53:53:a3 Sending on Socket/fallback receive_packet failed on eth1: Network is down DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4 send_packet: Network is down Dom-U dmesg shows the following: pci frontend enable msi failed for...
2008 Dec 04
0
error enable msi for guest 4 status fffffff0 (link of nic exposed directly to domU using pciback stays down)
...evice and it is claimed by the bnx2 driver.However the link of the interface as shown by ethtool continues to be down. When i tried to run ifconfig on the interface in DomU, it threw the following error. *#ifconfig eth1 192.168.23.2 netmask 255.255.255.0 pci frontend enable msi failed for dev 0:0 SIOCSIFFLAGS: Function not implemented * The following info was logged on the dmesg of DomU *lo: Disabled Privacy Extensions IPv6 over IPv4 tunneling driver pci frontend enable msi failed for dev 0:0 * Dmesg logs on Dom0 gives the following error... *device vif4.0 entered promiscuous mode eth0: port 2(vif4.0)...
2006 Aug 02
0
no PROMISC mode ..
...That was working on kernels linux <2.1.x. (2.0 etc.) Basically the mechanism was : --- strncpy(ifr.ifr_name, our_device, IFNAMSIZ); ioctl(sock, SIOCGIFFLAGS, &ifr); ifr.ifr_flags |= IFF_PROMISC; ioctl(sock, SIOCSIFFLAGS, &ifr); --- And only one could set the IFF_PROMISC, because if another process decided to set it too, then it was cleared... - Now, with kernels 2.2 and onwards, we have a different implementation of it, there''s a counter of how many promiscuous requests have be...
2008 Aug 14
6
wireless laptop configuration
Hi, I have a wireless network but no wired network. I need to access the net for the necessary installation of the wireless drivers in CentOS 5.1. Could anyone let me know how i can go about it!! My card is Intel PRO/Wireless 3945 -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Aug 10
1
Problems with Network Bridge HVM DomU Debian Squeeze running over Kernel 2.6.32-5-xen-amd64 Debian Xen 4
...I manage a network that has over a thousand computers, and the most of the servers are virtualized over Debian / Xen by me. The specific issue arises when I try to set up a DomU HVM running Debian Squeeze, the VM doesn''''t recognize the network but it runs. It gives an error "SIOCSIFFLAGS" when I run the command "ifup eth0" or "ifconfig eth0 up" If I make the same but with a PCI Backend of a NIC, it recognizes the network without any problems. The problem is the bridge with HVM in Xen 4. Lenny DomU recognizes the network over that configuration, too. The...
2008 Jul 12
4
[PATCH] tun: Fix/rewrite packet filtering logic
...break; #endif - case TUNSETOFFLOAD: - { - int ret; rtnl_lock(); ret = set_offload(tun->dev, arg); rtnl_unlock(); return ret; - } - case SIOCGIFFLAGS: - ifr.ifr_flags = tun->if_flags; - if (copy_to_user( argp, &ifr, sizeof ifr)) - return -EFAULT; - return 0; - - case SIOCSIFFLAGS: - /** Set the character device's interface flags. Currently only - * IFF_PROMISC and IFF_ALLMULTI are used. */ - tun->if_flags = ifr.ifr_flags; - DBG(KERN_INFO "%s: interface flags 0x%lx\n", - tun->dev->name, tun->if_flags); - return 0; + case TUNSETTXFILTER: +...
2008 Jul 12
4
[PATCH] tun: Fix/rewrite packet filtering logic
...break; #endif - case TUNSETOFFLOAD: - { - int ret; rtnl_lock(); ret = set_offload(tun->dev, arg); rtnl_unlock(); return ret; - } - case SIOCGIFFLAGS: - ifr.ifr_flags = tun->if_flags; - if (copy_to_user( argp, &ifr, sizeof ifr)) - return -EFAULT; - return 0; - - case SIOCSIFFLAGS: - /** Set the character device's interface flags. Currently only - * IFF_PROMISC and IFF_ALLMULTI are used. */ - tun->if_flags = ifr.ifr_flags; - DBG(KERN_INFO "%s: interface flags 0x%lx\n", - tun->dev->name, tun->if_flags); - return 0; + case TUNSETTXFILTER: +...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 07/13] lguest64 loader
...ddr; + + memset(&ifr, 0, sizeof(ifr)); + strcpy(ifr.ifr_name, devname); + sin->sin_family = AF_INET; + sin->sin_addr.s_addr = htonl(ipaddr); + if (ioctl(fd, SIOCSIFADDR, &ifr) != 0) + err(1, "Setting %s interface address", devname); + ifr.ifr_flags = IFF_UP; + if (ioctl(fd, SIOCSIFFLAGS, &ifr) != 0) + err(1, "Bringing interface %s up", devname); + + if (ioctl(fd, SIOCGIFHWADDR, &ifr) != 0) + err(1, "getting hw address for %s", devname); + + memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, 6); +} + +/* We send lguest_add signals while input is pending: avoids r...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 07/13] lguest64 loader
...ddr; + + memset(&ifr, 0, sizeof(ifr)); + strcpy(ifr.ifr_name, devname); + sin->sin_family = AF_INET; + sin->sin_addr.s_addr = htonl(ipaddr); + if (ioctl(fd, SIOCSIFADDR, &ifr) != 0) + err(1, "Setting %s interface address", devname); + ifr.ifr_flags = IFF_UP; + if (ioctl(fd, SIOCSIFFLAGS, &ifr) != 0) + err(1, "Bringing interface %s up", devname); + + if (ioctl(fd, SIOCGIFHWADDR, &ifr) != 0) + err(1, "getting hw address for %s", devname); + + memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, 6); +} + +/* We send lguest_add signals while input is pending: avoids r...