diff options
author | Elliott Hughes | 2015-02-02 16:37:07 -0600 |
---|---|---|
committer | Elliott Hughes | 2015-02-03 13:08:07 -0600 |
commit | f8e83054cb8a8b13ee84a4aeeaa0a2fd8debca81 (patch) | |
tree | 6f3b04a2c9c8c96c4b2834dd934041d25c5215a9 /libnetutils/ifc_utils.c | |
parent | 520ca3e13a134386762c3fc754a8bc2e51af3c2f (diff) | |
download | platform-system-core-f8e83054cb8a8b13ee84a4aeeaa0a2fd8debca81.tar.gz platform-system-core-f8e83054cb8a8b13ee84a4aeeaa0a2fd8debca81.tar.xz platform-system-core-f8e83054cb8a8b13ee84a4aeeaa0a2fd8debca81.zip |
Remove netcfg's unused options.
Only "netcfg" for a list of interfaces and "netcfg <interface> dhcp" still
seem to be used.
Change-Id: Iaf499c06b09ffe5e0925339b9cd6e502f3234a86
Diffstat (limited to 'libnetutils/ifc_utils.c')
-rw-r--r-- | libnetutils/ifc_utils.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libnetutils/ifc_utils.c b/libnetutils/ifc_utils.c index bfe712193..ab6c6540a 100644 --- a/libnetutils/ifc_utils.c +++ b/libnetutils/ifc_utils.c | |||
@@ -639,26 +639,6 @@ int ifc_reset_connections(const char *ifname, const int reset_mask) | |||
639 | #endif | 639 | #endif |
640 | } | 640 | } |
641 | 641 | ||
642 | /* | ||
643 | * Removes the default route for the named interface. | ||
644 | */ | ||
645 | int ifc_remove_default_route(const char *ifname) | ||
646 | { | ||
647 | struct rtentry rt; | ||
648 | int result; | ||
649 | |||
650 | ifc_init(); | ||
651 | memset(&rt, 0, sizeof(rt)); | ||
652 | rt.rt_dev = (void *)ifname; | ||
653 | rt.rt_flags = RTF_UP|RTF_GATEWAY; | ||
654 | init_sockaddr_in(&rt.rt_dst, 0); | ||
655 | if ((result = ioctl(ifc_ctl_sock, SIOCDELRT, &rt)) < 0) { | ||
656 | ALOGD("failed to remove default route for %s: %s", ifname, strerror(errno)); | ||
657 | } | ||
658 | ifc_close(); | ||
659 | return result; | ||
660 | } | ||
661 | |||
662 | int | 642 | int |
663 | ifc_configure(const char *ifname, | 643 | ifc_configure(const char *ifname, |
664 | in_addr_t address, | 644 | in_addr_t address, |