LwIP
SMEMCPY
is only used within LwIP.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
LwIP
SMEMCPY
SMEMCPY macro
SMEMCPY: override this with care! Some compilers (e.g. gcc) can inline a call to memcpy() if the length is known at compile time and is small.
Syntax
from
opt.h:145
#define
SMEMCPY
(
dst
,
src
,
len
)
memcpy
(
dst
,
src
,
len
)
Arguments
dst
src
len
References
Location
Text
opt.h:145
#define
SMEMCPY
(
dst
,
src
,
len
)
memcpy
(
dst
,
src
,
len
)
etharp.c:465
SMEMCPY
(
&
arp_table
[
i
]
.
ethaddr
,
ethaddr
,
ETH_HWADDR_LEN
)
;
etharp.c:1133
SMEMCPY
(
&
hdr
->
shwaddr
,
hwsrc_addr
,
ETH_HWADDR_LEN
)
;
etharp.c:1134
SMEMCPY
(
&
hdr
->
dhwaddr
,
hwdst_addr
,
ETH_HWADDR_LEN
)
;
etharp.h:71
#define
IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T
(
dest
,
src
)
SMEMCPY
(
dest
,
src
,
sizeof
(
ip4_addr_t
)
)
etharp.h:78
#define
IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T
(
dest
,
src
)
SMEMCPY
(
dest
,
src
,
sizeof
(
ip4_addr_t
)
)
ethernet.c:303
SMEMCPY
(
&
ethhdr
->
dest
,
dst
,
ETH_HWADDR_LEN
)
;
ethernet.c:304
SMEMCPY
(
&
ethhdr
->
src
,
src
,
ETH_HWADDR_LEN
)
;
icmp.c:377
SMEMCPY
(
(
u8_t
*
)
q
->
payload
+
sizeof
(
struct
icmp_echo_hdr
)
,
(
u8_t
*
)
p
->
payload
,
ip4_frag.c:185
SMEMCPY
(
p
->
payload
,
&
ipr
->
iphdr
,
IP_HLEN
)
;
ip4_frag.c:308
SMEMCPY
(
&
(
ipr
->
iphdr
)
,
fraghdr
,
IP_HLEN
)
;
ip4_frag.c:580
SMEMCPY
(
&
ipr
->
iphdr
,
fraghdr
,
IP_HLEN
)
;
ip4_frag.c:628
SMEMCPY
(
fraghdr
,
&
ipr
->
iphdr
,
IP_HLEN
)
;
ip4_frag.c:806
SMEMCPY
(
rambuf
->
payload
,
original_iphdr
,
IP_HLEN
)
;