Loading include/netutils/ifc.h +3 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,9 @@ extern int ifc_down(const char *name); extern int ifc_enable(const char *ifname); extern int ifc_disable(const char *ifname); #define RESET_IPV4_ADDRESSES 0x01 #define RESET_IPV6_ADDRESSES 0x02 #define RESET_ALL_ADDRESSES (RESET_IPV4_ADDRESSES | RESET_IPV6_ADDRESSES) extern int ifc_reset_connections(const char *ifname, const int reset_mask); extern int ifc_get_addr(const char *name, in_addr_t *addr); Loading init/devices.c +19 −11 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ #define SYSFS_PREFIX "/sys" #define FIRMWARE_DIR1 "/etc/firmware" #define FIRMWARE_DIR2 "/vendor/firmware" #define FIRMWARE_DIR3 "/firmware/image" #ifdef HAVE_SELINUX static struct selabel_handle *sehandle; Loading Loading @@ -725,7 +726,7 @@ static int is_booting(void) static void process_firmware_event(struct uevent *uevent) { char *root, *loading, *data, *file1 = NULL, *file2 = NULL; char *root, *loading, *data, *file1 = NULL, *file2 = NULL, *file3 = NULL; int l, loading_fd, data_fd, fw_fd; int booting = is_booting(); Loading @@ -752,6 +753,10 @@ static void process_firmware_event(struct uevent *uevent) if (l == -1) goto data_free_out; l = asprintf(&file3, FIRMWARE_DIR3"/%s", uevent->firmware); if (l == -1) goto data_free_out; loading_fd = open(loading, O_WRONLY); if(loading_fd < 0) goto file_free_out; Loading @@ -764,6 +769,8 @@ try_loading_again: fw_fd = open(file1, O_RDONLY); if(fw_fd < 0) { fw_fd = open(file2, O_RDONLY); if (fw_fd < 0) { fw_fd = open(file3, O_RDONLY); if (fw_fd < 0) { if (booting) { /* If we're not fully booted, we may be missing Loading @@ -778,6 +785,7 @@ try_loading_again: goto data_close_out; } } } if(!load_firmware(fw_fd, loading_fd, data_fd)) INFO("firmware: copy success { '%s', '%s' }\n", root, uevent->firmware); Loading init/property_service.c +1 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,7 @@ struct { { "sys.", AID_SYSTEM, 0 }, { "service.", AID_SYSTEM, 0 }, { "wlan.", AID_SYSTEM, 0 }, { "bluetooth.", AID_SYSTEM, 0 }, { "dhcp.", AID_SYSTEM, 0 }, { "dhcp.", AID_DHCP, 0 }, { "debug.", AID_SYSTEM, 0 }, Loading libnetutils/ifc_utils.c +0 −4 Original line number Diff line number Diff line Loading @@ -600,10 +600,6 @@ int ifc_disable(const char *ifname) return result; } #define RESET_IPV4_ADDRESSES 0x01 #define RESET_IPV6_ADDRESSES 0x02 #define RESET_ALL_ADDRESSES (RESET_IPV4_ADDRESSES | RESET_IPV6_ADDRESSES) int ifc_reset_connections(const char *ifname, const int reset_mask) { #ifdef HAVE_ANDROID_OS Loading libnl_2/Android.mk +13 −6 Original line number Diff line number Diff line ####################################### # * Netlink cache not implemented # * Library is not thread safe ####################################### LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := \ Loading @@ -22,9 +28,10 @@ LOCAL_MODULE := libnl_2 LOCAL_MODULE_TAGS := optional include $(BUILD_STATIC_LIBRARY) ####################################### # Shared library currently unavailiable # * Netlink cache not implemented # * Library is not thread safe ####################################### include $(CLEAR_VARS) LOCAL_SRC_FILES := LOCAL_WHOLE_STATIC_LIBRARIES:= libnl_2 LOCAL_SHARED_LIBRARIES:= liblog LOCAL_MODULE := libnl_2 LOCAL_MODULE_TAGS := optional include $(BUILD_SHARED_LIBRARY) Loading
include/netutils/ifc.h +3 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,9 @@ extern int ifc_down(const char *name); extern int ifc_enable(const char *ifname); extern int ifc_disable(const char *ifname); #define RESET_IPV4_ADDRESSES 0x01 #define RESET_IPV6_ADDRESSES 0x02 #define RESET_ALL_ADDRESSES (RESET_IPV4_ADDRESSES | RESET_IPV6_ADDRESSES) extern int ifc_reset_connections(const char *ifname, const int reset_mask); extern int ifc_get_addr(const char *name, in_addr_t *addr); Loading
init/devices.c +19 −11 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ #define SYSFS_PREFIX "/sys" #define FIRMWARE_DIR1 "/etc/firmware" #define FIRMWARE_DIR2 "/vendor/firmware" #define FIRMWARE_DIR3 "/firmware/image" #ifdef HAVE_SELINUX static struct selabel_handle *sehandle; Loading Loading @@ -725,7 +726,7 @@ static int is_booting(void) static void process_firmware_event(struct uevent *uevent) { char *root, *loading, *data, *file1 = NULL, *file2 = NULL; char *root, *loading, *data, *file1 = NULL, *file2 = NULL, *file3 = NULL; int l, loading_fd, data_fd, fw_fd; int booting = is_booting(); Loading @@ -752,6 +753,10 @@ static void process_firmware_event(struct uevent *uevent) if (l == -1) goto data_free_out; l = asprintf(&file3, FIRMWARE_DIR3"/%s", uevent->firmware); if (l == -1) goto data_free_out; loading_fd = open(loading, O_WRONLY); if(loading_fd < 0) goto file_free_out; Loading @@ -764,6 +769,8 @@ try_loading_again: fw_fd = open(file1, O_RDONLY); if(fw_fd < 0) { fw_fd = open(file2, O_RDONLY); if (fw_fd < 0) { fw_fd = open(file3, O_RDONLY); if (fw_fd < 0) { if (booting) { /* If we're not fully booted, we may be missing Loading @@ -778,6 +785,7 @@ try_loading_again: goto data_close_out; } } } if(!load_firmware(fw_fd, loading_fd, data_fd)) INFO("firmware: copy success { '%s', '%s' }\n", root, uevent->firmware); Loading
init/property_service.c +1 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,7 @@ struct { { "sys.", AID_SYSTEM, 0 }, { "service.", AID_SYSTEM, 0 }, { "wlan.", AID_SYSTEM, 0 }, { "bluetooth.", AID_SYSTEM, 0 }, { "dhcp.", AID_SYSTEM, 0 }, { "dhcp.", AID_DHCP, 0 }, { "debug.", AID_SYSTEM, 0 }, Loading
libnetutils/ifc_utils.c +0 −4 Original line number Diff line number Diff line Loading @@ -600,10 +600,6 @@ int ifc_disable(const char *ifname) return result; } #define RESET_IPV4_ADDRESSES 0x01 #define RESET_IPV6_ADDRESSES 0x02 #define RESET_ALL_ADDRESSES (RESET_IPV4_ADDRESSES | RESET_IPV6_ADDRESSES) int ifc_reset_connections(const char *ifname, const int reset_mask) { #ifdef HAVE_ANDROID_OS Loading
libnl_2/Android.mk +13 −6 Original line number Diff line number Diff line ####################################### # * Netlink cache not implemented # * Library is not thread safe ####################################### LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := \ Loading @@ -22,9 +28,10 @@ LOCAL_MODULE := libnl_2 LOCAL_MODULE_TAGS := optional include $(BUILD_STATIC_LIBRARY) ####################################### # Shared library currently unavailiable # * Netlink cache not implemented # * Library is not thread safe ####################################### include $(CLEAR_VARS) LOCAL_SRC_FILES := LOCAL_WHOLE_STATIC_LIBRARIES:= libnl_2 LOCAL_SHARED_LIBRARIES:= liblog LOCAL_MODULE := libnl_2 LOCAL_MODULE_TAGS := optional include $(BUILD_SHARED_LIBRARY)