Searched refs:if_index (Results 1 - 3 of 3) sorted by relevance

/system/core/libnetutils/
H A Dpacket.h20 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,
H A Dpacket.c42 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index) argument
56 bindaddr.sll_ifindex = if_index;
89 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size, argument
142 destaddr.sll_ifindex = if_index;
H A Ddhcpclient.c344 static int send_message(int sock, int if_index, dhcp_msg *msg, int size) argument
349 return send_packet(sock, if_index, msg, size, INADDR_ANY, INADDR_BROADCAST,
403 int if_index; local
410 if (ifc_get_ifindex(ifname, &if_index)) {
414 s = open_raw_socket(ifname, hwaddr, if_index);
459 r = send_message(s, if_index, msg, size);

Completed in 35 milliseconds