ethernet

Getting Notified on “Ethernet cable plugged in” events in linux

旧城冷巷雨未停 提交于 2019-12-07 19:39:42
问题 I am writing a Python Application running on linux. I want to be able to register and be notified by the system if a network cable is plugged in/ out . I am already using pyUdev (python bindings for libUdev) in order to get notified for USB plug in events. However, because the network eth0 module (for example) always remains loaded (regardless of the cable being plugged in) , I dont get the information I require. It only works for if up/down events. I have read a lot of posts on Windows WMI

difference private IP and public IP

[亡魂溺海] 提交于 2019-12-07 06:56:31
问题 Can anybody explain me why I got two different IP-addresses? So if I type on terminal ipconfig I get my network information where my Ip-adress is like 192.168.###.### . So I know that this is in private IP-range (private IP). But if I for example google after myipadress I got as result something like this: 84.112.###.### . And this is in my opinion the public IP-adress and after the website information the location of the ip-address (ISP) is about 3.3 km away from my current location... So

Can ndo_start_xmit() be called from atomic contexts?

你离开我真会死。 提交于 2019-12-07 04:48:27
Is ndo_start_xmit() called (or could it be called) from atomic contexts? Please provide documentation references. More specifically, is ndo_start_xmit() forbidden from directly doing any of the following: reading and writing a TCP socket? locking a mutex or semaphore? sleeping? calling kmalloc() without GFP_ATOMIC ? I did some simple tests, and at least the first 3 cases fail at least occasionally. Calls to ndo_start_xmit() driven by network operations involving less queueing seem to fail more often. If I do the above operations indirectly through a work queue, then the failures seem to go

How to send Ethernet-Frames in Java without TCP/IP Stack

我是研究僧i 提交于 2019-12-06 22:27:29
问题 My Java application should control an external device (EtherCAT Bus technology) directly connected to the network interface of my computer(Ubuntu and Windows). No other network devices are connected. The communication has do be done on Standard IEEE 802.3 Ethernet Frames without IP stack. Example for sending data: int etherType = 0x88A4; // the EtherType registered by IEEE byte[] macBroadcast = new byte[] {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; byte[] macSource = new byte[] ... ; // MAC Address

While using DPDK application, rte_eth_dev_count is returning 0 always

主宰稳场 提交于 2019-12-06 11:25:26
I have configured NIC cards as below:- [root@localhost ethtool]# ../../tools/dpdk-devbind.py -s Network devices using DPDK-compatible driver ============================================ 0000:81:00.0 'NetXtreme BCM5722 Gigabit Ethernet PCI Express' drv=igb_uio unused=tg3 Network devices using kernel driver =================================== 0000:02:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=ens513f0 drv=ixgbe unused=igb_uio 0000:02:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=ens513f1 drv=ixgbe unused=igb_uio 0000:04:00.0 'I350 Gigabit Network Connection' if=enp4s0f0

Is there a way to access android.net.EthernetManager in an Android app?

陌路散爱 提交于 2019-12-06 10:41:38
Is there a way to access android.net.EthernetManager in an Android app? Both Class.forName("android.net.ethernet.EthernetManager") and Class.forName("android.net.EthernetManager") generate a ClassNotFoundException. Seems that android.net.EthernetManager is a hidden class, marked as @hide by Javadoc. You can access it by using customized SDK platform which was made here , and you don't need to root the device. Android Hidden API library is a modified jar file which combines android.jar from Android SDK with framework.jar from real device. This jar makes you able to use Android internal/hidden

Getting Notified on “Ethernet cable plugged in” events in linux

社会主义新天地 提交于 2019-12-06 07:52:10
I am writing a Python Application running on linux. I want to be able to register and be notified by the system if a network cable is plugged in/ out . I am already using pyUdev (python bindings for libUdev) in order to get notified for USB plug in events. However, because the network eth0 module (for example) always remains loaded (regardless of the cable being plugged in) , I dont get the information I require. It only works for if up/down events. I have read a lot of posts on Windows WMI providing this functionality but none on linux. Am I looking in the right direction? A python way of

NDIS and miniport driver

六月ゝ 毕业季﹏ 提交于 2019-12-06 07:15:38
I am trying to modify a ethernet driver using WDK tools provided in Visual Studio 2012. The samples provided in the WDK are 'miniport adapter' and 'NDIS Light Weight Filter' among others. I am still at the very beginning of driver writing and hence finding it tough to navigate through the code. I was able to install the miniport adapter after building it in Visual Studio 2012 [Shows up as 'Microsoft Virtual Miniport Adapter' in my network adapters list.] I am able to assign it a IP address and Subnet mask also.[I found out that this does not connect to any physical device on my PC]. I also

P1010 MAC to Switch port direct connection without PHY

倾然丶 夕夏残阳落幕 提交于 2019-12-06 07:02:34
I have a custom board with freescale P1010 processor in which P1010's eTSEC2 ( Enhanced 3-speed Ethernet controller) port is directly connected to Marvell 88E6046 ethernet switch Port 9 in SGMII mode. Linux (3.17) DSA driver is able to probe and detect switch ( Port 9 is 'cpu' whereas port 0 and 1 are designated as 'lan1' and 'lan2'). The problem however is, that there is no PHY for switch to attach to ( 'ifconfig up' fails to attach to ethx). U-boot creates a 'generic PHY' eth0 since it finds there is something ( switch ) attached to processor P1010 but when Linux is up and switch is attached

QNetworkConfigurationManager::configurationChanged signal not getting called for ETHERNET config changes

二次信任 提交于 2019-12-06 06:13:35
QNetworkConfigurationManager::configurationChanged() signal is not getting called by the system when I am inserting a LAN cable with a valid IP(Ethernet interface). It is getting called for WLAN and USB interface but not for ETHERNET config changes Hope to get some pointers on this. 来源: https://stackoverflow.com/questions/14359657/qnetworkconfigurationmanagerconfigurationchanged-signal-not-getting-called-for