Searched refs:in_addr (Results 1 - 21 of 21) sorted by relevance

/system/core/nexus/
H A DIDhcpEventHandlers.h27 struct in_addr *addr, struct in_addr *net,
28 struct in_addr *brd,
29 struct in_addr *gw, struct in_addr *dns1,
30 struct in_addr *dns2) = 0;
H A DInterfaceConfig.h40 struct in_addr mIp;
41 struct in_addr mNetmask;
42 struct in_addr mGateway;
43 struct in_addr mBroadcast;
44 struct in_addr mDns[2];
53 const struct in_addr &getIp() const { return mIp; }
54 const struct in_addr &getNetmask() const { return mNetmask; }
55 const struct in_addr &getGateway() const { return mGateway; }
56 const struct in_addr &getBroadcast() const { return mBroadcast; }
57 const struct in_addr
[all...]
H A DInterfaceConfig.cpp42 void InterfaceConfig::setIp(struct in_addr *addr) {
43 memcpy(&mIp, addr, sizeof(struct in_addr));
46 void InterfaceConfig::setNetmask(struct in_addr *addr) {
47 memcpy(&mNetmask, addr, sizeof(struct in_addr));
50 void InterfaceConfig::setGateway(struct in_addr *addr) {
51 memcpy(&mGateway, addr, sizeof(struct in_addr));
54 void InterfaceConfig::setBroadcast(struct in_addr *addr) {
55 memcpy(&mBroadcast, addr, sizeof(struct in_addr));
58 void InterfaceConfig::setDns(int idx, struct in_addr *addr) {
59 memcpy(&mDns[idx], addr, sizeof(struct in_addr));
[all...]
H A DProperty.h42 virtual int set(int idx, struct in_addr *value) = 0;
46 virtual int get(int idx, struct in_addr *buffer) = 0;
61 int set(int idx, struct in_addr *value);
65 int get(int idx, struct in_addr *buffer);
85 int set(int idx, struct in_addr *value);
89 int get(int idx, struct in_addr *buffer);
107 virtual int set(int idx, struct in_addr *value) = 0;
111 virtual int get(int idx, struct in_addr *buffer) = 0;
115 struct in_addr *mBuffer;
117 IPV4AddressPropertyHelper(const char *name, bool ro, struct in_addr *bu
[all...]
H A DNetworkManager.h90 struct in_addr *addr, struct in_addr *net,
91 struct in_addr *brd,
92 struct in_addr *gw, struct in_addr *dns1,
93 struct in_addr *dns2);
H A DProperty.cpp45 int StringProperty::set(int idx, struct in_addr *value) {
55 int StringProperty::get(int idx, struct in_addr *buffer) {
97 int IntegerProperty::set(int idx, struct in_addr *value) {
107 int IntegerProperty::get(int idx, struct in_addr *buffer) {
165 struct in_addr *buffer) :
170 int IPV4AddressPropertyHelper::set(int idx, struct in_addr *value) {
176 memcpy(mBuffer, value, sizeof(struct in_addr));
180 int IPV4AddressPropertyHelper::get(int idx, struct in_addr *buffer) {
186 memcpy(buffer, mBuffer, sizeof(struct in_addr));
H A DNetworkManager.cpp175 void NetworkManager::onDhcpLeaseUpdated(Controller *c, struct in_addr *addr,
176 struct in_addr *net,
177 struct in_addr *brd,
178 struct in_addr *gw,
179 struct in_addr *dns1,
180 struct in_addr *dns2) {
H A DVpnController.h58 virtual int set(int idx, struct in_addr *value) = 0;
59 virtual int get(int idx, struct in_addr *buffer) = 0;
75 struct in_addr mGateway;
H A DDhcpListener.cpp65 struct in_addr ipaddr, netmask, gateway, broadcast, dns1, dns2;
H A DPropertyManager.cpp139 struct in_addr tmp;
174 struct in_addr tmp;
/system/netd/
H A DPppController.h34 int attachPppd(const char *tty, struct in_addr local,
35 struct in_addr remote, struct in_addr dns1,
36 struct in_addr dns2);
H A DTetherController.h25 typedef android::List<struct in_addr> NetAddressCollection;
40 int startTethering(int num_addrs, struct in_addr* addrs);
H A DResolverController.h30 int setInterfaceAddress(const char* iface, struct in_addr* addr);
H A DPppController.cpp53 int PppController::attachPppd(const char *tty, struct in_addr local,
54 struct in_addr remote, struct in_addr dns1,
55 struct in_addr dns2) {
H A DResolverController.cpp47 int ResolverController::setInterfaceAddress(const char* iface, struct in_addr* addr) {
H A DTetherController.cpp99 int TetherController::startTethering(int num_addrs, struct in_addr* addrs) {
203 struct in_addr a;
H A DCommandListener.cpp262 struct in_addr addr;
315 struct in_addr addr;
540 in_addr *addrs = (in_addr *)malloc(sizeof(in_addr) * num_addrs);
648 struct in_addr l, r, dns1, dns2;
650 memset(&dns1, sizeof(struct in_addr), 0);
651 memset(&dns2, sizeof(struct in_addr), 0);
784 struct in_addr addr;
/system/core/netcfg/
H A Dnetcfg.c39 struct in_addr in_addr; local
41 in_addr.s_addr = addr;
42 return inet_ntoa(in_addr);
/system/core/libnetutils/
H A Ddhcp_utils.c130 struct in_addr in_addr; local
132 in_addr.s_addr = addr;
133 return inet_ntoa(in_addr);
H A Difc_utils.c90 struct in_addr in_addr; local
92 in_addr.s_addr = addr;
93 return inet_ntoa(in_addr);
505 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length,
506 struct in_addr gw)
552 struct in_addr in_dst, in_gw;
565 struct in_addr in_dst, in_gw;
660 struct in_addr addr;
749 struct in_addr add
[all...]
H A Ddhcpclient.c90 struct in_addr in_addr; local
92 in_addr.s_addr = addr;
93 return inet_ntoa(in_addr);

Completed in 79 milliseconds