Home
last modified time | relevance | path

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

/system/core/libnetutils/
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,
Dpacket.c43 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()
Ddhcpclient.c344 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()