Searched refs:if_index (Results 1 – 4 of 4) sorted by relevance
/system/connectivity/dhcp_client/ |
D | device_info.cc | 76 int if_index = rtnl_handler_->GetInterfaceIndex(interface_name); in GetDeviceInfo() local 77 if (if_index == -1) { in GetDeviceInfo() 81 *interface_index = if_index; in GetDeviceInfo()
|
/system/core/libnetutils/ |
D | packet.h | 20 int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index); 21 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size,
|
D | packet.c | 43 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index) in open_raw_socket() argument 57 bindaddr.sll_ifindex = if_index; in open_raw_socket() 90 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size, in send_packet() argument 143 destaddr.sll_ifindex = if_index; in send_packet()
|
D | dhcpclient.c | 344 static int send_message(int sock, int if_index, dhcp_msg *msg, int size) in send_message() argument 349 return send_packet(sock, if_index, msg, size, INADDR_ANY, INADDR_BROADCAST, in send_message() 403 int if_index; in dhcp_init_ifc() local 410 if (ifc_get_ifindex(ifname, &if_index)) { in dhcp_init_ifc() 414 s = open_raw_socket(ifname, hwaddr, if_index); in dhcp_init_ifc() 459 r = send_message(s, if_index, msg, size); in dhcp_init_ifc()
|