Good day I could not get help for the following error on *WRT54G*:
*root@OpenWrt:~# /etc/init.d/openflow start* eth0.1 Configuring OpenFlow switch for out-of-band control Jan 01 00:02:15|00001|netdev|ERR|ioctl(SIOCGIFTXQLEN) on eth0.1 device failed: Operation not supported *ofdatapath: failed to add port eth0.1 (Operation not supported)* *IMPORTANT POINTS* (i)* *I tried writing an independent program of ioctl *SIOCGIFTXQLEN *on Linux and observed tht "Operation not supported" is observed when it is run as normal user. As a root the program runs fine. (ii) But i am not too sure why *ofdatapath *is throwing the error.I am running *ofdatapath *in root login on WRT54G. (iii) Is there a way that i can run my test ioctl program on WRT54G so that i can debug ? *Sample ioctl program:* int main() { struct ifreq ifr; char *ifname = "eth0"; int skfd = socket(PF_PACKET, SOCK_RAW, 0); if( skfd < 0 ) perror("socket"); int tx_queue_len = 0; strcpy(ifr.ifr_name, ifname); if (ioctl(skfd, SIOCGIFTXQLEN, &ifr) < 0) { tx_queue_len = -1; /* unknown value */ perror("ioctl"); } else tx_queue_len = ifr.ifr_qlen; printf("Q length = %d \n",tx_queue_len); }
_______________________________________________ openflow-discuss mailing list openflow-discuss@lists.stanford.edu https://mailman.stanford.edu/mailman/listinfo/openflow-discuss