projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM64: zynqmp: Add serdes address space dp driver
[oweals/u-boot.git]
/
arch
/
sandbox
/
cpu
/
eth-raw-os.c
diff --git
a/arch/sandbox/cpu/eth-raw-os.c
b/arch/sandbox/cpu/eth-raw-os.c
index 528865f5d3fb9df30cb5cd91b0de52866e178684..ab64f6e2109fd062f07a0b926d3e9984fd47bec2 100644
(file)
--- a/
arch/sandbox/cpu/eth-raw-os.c
+++ b/
arch/sandbox/cpu/eth-raw-os.c
@@
-198,7
+198,8
@@
int sandbox_eth_raw_os_send(void *packet, int length,
addr.sin_family = AF_INET;
addr.sin_port = udph->source;
addr.sin_addr.s_addr = iph->saddr;
addr.sin_family = AF_INET;
addr.sin_port = udph->source;
addr.sin_addr.s_addr = iph->saddr;
- retval = bind(priv->local_bind_sd, &addr, sizeof(addr));
+ retval = bind(priv->local_bind_sd, (struct sockaddr *)&addr,
+ sizeof(addr));
if (retval < 0)
printf("Failed to bind: %d %s\n", errno,
strerror(errno));
if (retval < 0)
printf("Failed to bind: %d %s\n", errno,
strerror(errno));