public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1d07e7
)
net_native: note a future bug risk
author
Alan Cox
<alan@linux.intel.com>
Sat, 20 Feb 2016 20:23:34 +0000
(20:23 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 20 Feb 2016 20:23:34 +0000
(20:23 +0000)
Kernel/dev/net/net_native.c
patch
|
blob
|
history
diff --git
a/Kernel/dev/net/net_native.c
b/Kernel/dev/net/net_native.c
index
b63f113
..
510e452
100644
(file)
--- a/
Kernel/dev/net/net_native.c
+++ b/
Kernel/dev/net/net_native.c
@@
-232,6
+232,8
@@
static uint16_t netn_queuebytes(struct socket *s)
return 0;
udata.u_sysio = false;
+ /* FIXME: if we go over 64K these will need some long casts to force
+ the types on the right side */
udata.u_offset = sn * SOCKBUFOFF + RXBUFOFF + sd->tnext;
/* Wrapped part of the ring buffer */