aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/d6_common.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-12-15 21:55:15 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-12-15 21:55:15 +0100
commitf3d6711c971cde8ed3890a47020c5083a383e606 (patch)
tree6faa66f95c505bd3411825a0e623ae7162c7ceda /networking/udhcp/d6_common.h
parentb817699e6c5c8efe4fce45e910d66133c9d8c482 (diff)
downloadbusybox-w32-f3d6711c971cde8ed3890a47020c5083a383e606.tar.gz
busybox-w32-f3d6711c971cde8ed3890a47020c5083a383e606.tar.bz2
busybox-w32-f3d6711c971cde8ed3890a47020c5083a383e606.zip
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>
Diffstat (limited to 'networking/udhcp/d6_common.h')
-rw-r--r--networking/udhcp/d6_common.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/networking/udhcp/d6_common.h b/networking/udhcp/d6_common.h
index 688f5d6c7..9dfde7709 100644
--- a/networking/udhcp/d6_common.h
+++ b/networking/udhcp/d6_common.h
@@ -159,18 +159,16 @@ int FAST_FUNC d6_recv_kernel_packet(
159 struct d6_packet *packet, int fd 159 struct d6_packet *packet, int fd
160); 160);
161 161
162int FAST_FUNC d6_send_raw_packet( 162int FAST_FUNC d6_send_raw_packet_from_client_data_ifindex(
163 struct d6_packet *d6_pkt, unsigned d6_pkt_size, 163 struct d6_packet *d6_pkt, unsigned d6_pkt_size,
164 struct in6_addr *src_ipv6, int source_port, 164 struct in6_addr *src_ipv6, int source_port,
165 struct in6_addr *dst_ipv6, int dest_port, const uint8_t *dest_arp, 165 struct in6_addr *dst_ipv6, int dest_port, const uint8_t *dest_arp
166 int ifindex
167); 166);
168 167
169int FAST_FUNC d6_send_kernel_packet( 168int FAST_FUNC d6_send_kernel_packet_from_client_data_ifindex(
170 struct d6_packet *d6_pkt, unsigned d6_pkt_size, 169 struct d6_packet *d6_pkt, unsigned d6_pkt_size,
171 struct in6_addr *src_ipv6, int source_port, 170 struct in6_addr *src_ipv6, int source_port,
172 struct in6_addr *dst_ipv6, int dest_port, 171 struct in6_addr *dst_ipv6, int dest_port
173 int ifindex
174); 172);
175 173
176#if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 2 174#if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 2