-
大小: 39KB文件类型: .zip金币: 2下载: 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
相关资源
- USB网卡驱动 USB2.0 TO Fast Ethernet Adapte
- LOM网卡驱动:Intel(R) Ethernet Connecti
- 瑞昱 Semiconductor RTL8168/8111 PCI-E Gigabi
- KST_Ethernet_KRL_22_zh中文版
- ABB机器人主站与CP1H(从站) Ethernet
- 通用工业协议(EtherNet/IP) 例程
- CIP-EIP规范EIP-CIP-V1-1.0
- Serial to Ethernet Connector 5.0.7.376 破解版
- ANSI-VITA 46.6 Gigabit Ethernet Control Plane
- Serial to Ethernet Connector 7.1 Build (7.1.
- IEEE 802.3ae
- 用FPGA实现以太网
- 安川DX200 高速Ethernet说明书日文
- FANUC CNC Screen Display Function_ FOCAS2Ether
- Triple-Speed Ethernet(tse)FPGA软核MAC官方
- ethernet_test.rar
- ethernet_the_definitive_guide 以太网
- OA_Automotive_Ethernet_ECU_TestSpecification_l
- 基于verilog代码实现fpga ethernet接口
- YRC1000 EtherNetIP_通信功能说明书.pdf
- Ethernet/ip协议
- KUKA机器人EthernetKRL安装教程
- 虚拟网卡 VIRTUAL ETHERNET.rar
- stm32_lwip.zip
- 计算机网络课程设计----模拟Ethernet帧
- Automotive_Ethernet_ECU_TestSpecification_v2.0
- 中文版KST_Ethernet_KRL
- EthernetIP Scanner Demo
- EtherNet-IP中文版Edition1.2
- IEEE 802.3-2015
评论
共有 条评论