-
大小: 39KB文件类型: .zip金币: 1下载: 0 次发布日期: 2021-06-11
- 语言: 其他
- 标签: andorid4.4 ethernet
资源简介
andorid4.4 ethernet-service ethernet-settings以及systemui ethernet通知及资源文件
代码片段和文件信息
/*
* Copyright 2009 The Android-x86 Open Source Project
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Author: Yi Sun
*/
#define LOG_TAG “ethernet“
#include “jni.h“
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include nk.h>
#include nk.h>
#define ETH_PKG_NAME “android/net/ethernet/EthernetNative“
namespace android {
static struct fieldIds {
jclass dhcpInfoClass;
jmethodID constructorId;
jfieldID ipaddress;
jfieldID gateway;
jfieldID netmask;
jfieldID dns1;
jfieldID dns2;
jfieldID serverAddress;
jfieldID leaseDuration;
} dhcpInfoFieldIds;
typedef struct _interface_info_t {
unsigned int i; /* interface index */
char *name; /* name (eth0 eth1 ...) */
struct _interface_info_t *next;
} interface_info_t;
interface_info_t *interfaces = NULL;
interface_info_t *interfaces_old = NULL;
int total_int = 0;
#define NL_SOCK_INV -1
#define RET_STR_SZ 4096
#define NL_POLL_MSG_SZ 8*1024
#define SYSFS_PATH_MAX 256
static const char SYSFS_CLASS_NET[] = “/sys/class/net“;
static int nl_socket_msg = NL_SOCK_INV;
static struct sockaddr_nl addr_msg;
static int nl_socket_poll = NL_SOCK_INV;
static struct sockaddr_nl addr_poll;
static int getinterfacename(int index char *name size_t len);
static void free_int_list();
static void free_int_list_old();
static void backup_int_list() ;
static char * find_removed_int() ;
static int netlink_init_interfaces_list(void);
static interface_info_t *find_info_by_index(unsigned int index) {
interface_info_t *info = interfaces;
while( info) {
if (info->i == index)
return info;
info = info->next;
}
return NULL;
}
static char flags_desc[512];
static char * flag_desc_tbl[32] = {
“UP“
“BC“
“DBG“
“LOOPBACK“
“PPP“
“NT“
“RUNNING“
“NOARP“
“PROMISC“
“ALLMULTI“
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-03-25 09:46 android4.4-add-ethernet\
文件 13813 2014-12-29 16:57 android4.4-add-ethernet\EthernetDataTracker.java
文件 11147 2014-09-10 10:51 android4.4-add-ethernet\EthernetService.java
目录 0 2016-03-25 09:46 android4.4-add-ethernet\Settings\
目录 0 2016-03-25 09:46 android4.4-add-ethernet\Settings\src\
目录 0 2016-03-25 09:46 android4.4-add-ethernet\Settings\src\ethernet\
文件 10663 2014-09-06 15:45 android4.4-add-ethernet\Settings\src\ethernet\EthernetConfigDialog.java
文件 3863 2014-09-06 17:27 android4.4-add-ethernet\Settings\src\ethernet\EthernetEnabler.java
文件 3320 2012-11-08 01:46 android4.4-add-ethernet\Settings\src\ethernet\Ethernetla
文件 5461 2014-09-06 15:38 android4.4-add-ethernet\Settings\src\ethernet\EthernetSettings.java
文件 25752 2014-09-06 14:09 android4.4-add-ethernet\android_net_ethernet.cpp
文件 5141 2012-11-08 01:46 android4.4-add-ethernet\eth_configure.xm
文件 1126 2012-11-08 01:46 android4.4-add-ethernet\ethernet_settings.xm
目录 0 2016-03-25 09:46 android4.4-add-ethernet\fr
目录 0 2016-03-25 09:46 android4.4-add-ethernet\fr
目录 0 2016-03-25 09:46 android4.4-add-ethernet\fr
目录 0 2016-03-25 09:46 android4.4-add-ethernet\fr
目录 0 2016-03-25 09:46 android4.4-add-ethernet\fr
目录 0 2016-03-25 09:46 android4.4-add-ethernet\fr
目录 0 2016-03-25 09:46 android4.4-add-ethernet\fr
文件 60 2012-11-08 01:46 android4.4-add-ethernet\fr
文件 2583 2012-11-08 01:46 android4.4-add-ethernet\fr
文件 3652 2012-11-08 01:46 android4.4-add-ethernet\fr
文件 3624 2012-11-08 01:46 android4.4-add-ethernet\fr
文件 375 2012-11-08 01:46 android4.4-add-ethernet\fr
文件 23497 2015-01-04 11:37 android4.4-add-ethernet\fr
文件 470 2012-11-08 01:46 android4.4-add-ethernet\fr
文件 946 2012-11-08 01:46 android4.4-add-ethernet\ic_settings_ethernet.png
目录 0 2016-03-25 09:46 android4.4-add-ethernet\systemui\
文件 615 2012-11-08 01:46 android4.4-add-ethernet\systemui\ethernet_connected.png
文件 1220 2012-11-08 01:46 android4.4-add-ethernet\systemui\ethernet_connecting.png
............此处省略1个文件信息
- 上一篇:spolight注册码
- 下一篇:人脸识别特征提取算法研究答辩ppt
相关资源
- Arduino通过Ethernet扩展板实现网络远程
- kuka机器人Ethernet的编程客户端软件
- Serial_to_Ethernet_Connector 使用说明
- AppleRTL8139Ethernet.kext.zip
- Ethernet帧的解析
- ADMtek AN983 FastNIC Ethernet Adapter Win7驱动
- 82546GB Gigabit Ethernet 原理图
- KUKA机器人通过EtherNetIP与工业相机通讯
- RNDIS Ethernet Gadget windows7下通用驱动程
- FOCAS2/Ethernet for Linux
-
fr
ameparser - usb 2.0 to fast ethernet adapter
- serial2ethernet.rar
- ethernet_mii_udp_1 Verilog开发的
- USB 2.0 10/100M Eth
- RNDIS /Ethernet Gadget 驱动 win2003 官方版
- RNDIS/ETHERNET GADGET驱动
- Serial to Ethernet Connector 5.0.7.376
- serial_ethernet_connector_v7.1.876
- Serial to Ethernet Connector 7.1 Build (7.1.
- EtherNet-IP中文版_Edition1.2 关于EtherNe
- IEEE Standard for Radio over Ethernet Encapsul
- 黑苹果Atheros AR8151 PCI-E gigabit Ethernet
- IEEE802.3ba
- KUKA机器人EtherNetIP通讯配置教程
- udp-verilog-ethernet-master.rar
- 网卡 瑞昱 RTL8168/8111/8112 Gigabit Ethern
- IntelMausiEthernet.kext v2.3.0 黑苹果Intel系
- Apple USB Ethernet Adapter苹果USB网卡驱动支
-
网卡驱动,针对Broadcom Netli
nk (TM)
评论
共有 条评论