david
bf4bf03db8
Refine bounds check code.
2004-11-07 04:08:37 +00:00
david
090b8be8f9
Bounds check syscall arguments where appropriate
2004-10-27 19:29:56 +00:00
manu
e7d6d3e79b
garbage data following darwin_if_msghdr was in fact a struct sockaddr_dl
...
Fixing this makes ifconfig nearly happy.
2004-07-24 01:00:29 +00:00
manu
59c4edd145
typo that caused ifaddr to report no addresses.
2004-07-23 21:34:01 +00:00
manu
ebac5544ba
Don't try to pre-compute the ifaddr data, it just leads to mistakes when
...
the code that fills the structure is modified and the the size computation
code.
Instead compute while filling the data.
2004-07-23 21:03:33 +00:00
manu
d5cb507ae3
If struct sockaddr's sa_family must be transalted, then struct sockaddr
...
itself needs to be translated. It means that we must translate it in
every system call using it: recvfrom, sendto, connect, accept, bind,
getpeername, getsockname.
2004-07-21 23:43:25 +00:00
manu
00c1d07082
Simplify the socket translation code.
...
Have the same size in the darwin/native and native/darwin AF translators
2004-07-21 20:57:30 +00:00
manu
941b113c0e
Add the sysctl that provides interface enumeration (used by getifaddrs()
...
library call). Programs such as ifconfig or XFree86 4.4 XDarwin use it.
The emulation is not complete, as ifconfig is not able to display inet6
addresses correctly.
2004-07-21 01:37:57 +00:00