udhcpc6: code shrink - sending functions do not need ifindex parameter
function old new delta d6_send_raw_packet_from_client_data_ifindex - 427 +427 d6_send_kernel_packet_from_client_data_ifindex - 275 +275 send_d6_renew 182 176 -6 perform_d6_release 246 240 -6 d6_mcast_from_client_data_ifindex 45 39 -6 d6_send_kernel_packet 274 - -274 d6_send_raw_packet 429 - -429 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 0/3 up/down: 702/-721) Total: -19 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -159,18 +159,16 @@ int FAST_FUNC d6_recv_kernel_packet(
|
||||
struct d6_packet *packet, int fd
|
||||
);
|
||||
|
||||
int FAST_FUNC d6_send_raw_packet(
|
||||
int FAST_FUNC d6_send_raw_packet_from_client_data_ifindex(
|
||||
struct d6_packet *d6_pkt, unsigned d6_pkt_size,
|
||||
struct in6_addr *src_ipv6, int source_port,
|
||||
struct in6_addr *dst_ipv6, int dest_port, const uint8_t *dest_arp,
|
||||
int ifindex
|
||||
struct in6_addr *dst_ipv6, int dest_port, const uint8_t *dest_arp
|
||||
);
|
||||
|
||||
int FAST_FUNC d6_send_kernel_packet(
|
||||
int FAST_FUNC d6_send_kernel_packet_from_client_data_ifindex(
|
||||
struct d6_packet *d6_pkt, unsigned d6_pkt_size,
|
||||
struct in6_addr *src_ipv6, int source_port,
|
||||
struct in6_addr *dst_ipv6, int dest_port,
|
||||
int ifindex
|
||||
struct in6_addr *dst_ipv6, int dest_port
|
||||
);
|
||||
|
||||
#if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 2
|
||||
|
Reference in New Issue
Block a user