diff options
author | Jake Hamby | 2011-04-11 21:46:41 -0500 |
---|---|---|
committer | Jake Hamby | 2011-04-11 21:46:41 -0500 |
commit | 6f49d5f266dffee103a3af07a7f6266f405d2924 (patch) | |
tree | 0fe1fb58fbf46f563a2f46074cf10916248166df /libnetutils/ifc_utils.c | |
parent | 203f9513fd720c091c0bb4289f1c4211aaf1cedc (diff) | |
download | platform-system-core-6f49d5f266dffee103a3af07a7f6266f405d2924.tar.gz platform-system-core-6f49d5f266dffee103a3af07a7f6266f405d2924.tar.xz platform-system-core-6f49d5f266dffee103a3af07a7f6266f405d2924.zip |
Add missing function required to load Crespo RIL library.
ifc_set_mask() function was removed in a previous change. This function
is called by the Crespo RIL, so we can't remove it yet.
Bug: 4268537
Change-Id: I634580ee8d2a1aff069178837cc121c89c5e73f9
Diffstat (limited to 'libnetutils/ifc_utils.c')
-rw-r--r-- | libnetutils/ifc_utils.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libnetutils/ifc_utils.c b/libnetutils/ifc_utils.c index 946c39de9..92b96816f 100644 --- a/libnetutils/ifc_utils.c +++ b/libnetutils/ifc_utils.c | |||
@@ -206,6 +206,16 @@ int ifc_set_hwaddr(const char *name, const void *ptr) | |||
206 | return ioctl(ifc_ctl_sock, SIOCSIFHWADDR, &ifr); | 206 | return ioctl(ifc_ctl_sock, SIOCSIFHWADDR, &ifr); |
207 | } | 207 | } |
208 | 208 | ||
209 | int ifc_set_mask(const char *name, in_addr_t mask) | ||
210 | { | ||
211 | struct ifreq ifr; | ||
212 | |||
213 | ifc_init_ifr(name, &ifr); | ||
214 | init_sockaddr_in(&ifr.ifr_addr, mask); | ||
215 | |||
216 | return ioctl(ifc_ctl_sock, SIOCSIFNETMASK, &ifr); | ||
217 | } | ||
218 | |||
209 | int ifc_set_prefixLength(const char *name, int prefixLength) | 219 | int ifc_set_prefixLength(const char *name, int prefixLength) |
210 | { | 220 | { |
211 | struct ifreq ifr; | 221 | struct ifreq ifr; |