Robert Drehmel
0adb6d7a49
Remove the hto(be|le)[slq] and (be|le)toh[slq] macros defined in
...
_KERNEL scope from "src/sys/sys/mchain.h".
Replace each occurrence of the above in _KERNEL scope with the
appropriate macro from the set of hto(be|le)(16|32|64) and
(be|le)toh(16|32|64) from "src/sys/sys/endian.h".
Tested by: tjr
Requested by: comment marked with XXX
2002-12-16 16:20:06 +00:00
John Baldwin
12f65109c8
Don't dereference the 'x' pointer if it is NULL, instead skip the
...
assignment. The netsmb code likes to call these functions with a NULL
x argument a lot.
Reported by: Vallo Kallaste <kalts@estpak.ee>
2002-10-22 18:44:59 +00:00
Mike Barcroft
2b7f24d210
Change iov_base's type from char *' to the standard
void *'. All
...
uses of iov_base which assume its type is `char *' (in order to do
pointer arithmetic) have been updated to cast iov_base to `char *'.
2002-10-11 14:58:34 +00:00
Poul-Henning Kamp
3f2e06c5e1
Move m_fixhdr() from "mbchain" to "mbuf" where it belongs.
2002-09-18 13:41:37 +00:00
Mark Murray
8deedb62c1
Convert GNU-styled variadic macros to ISO(9x) style.
2002-07-15 13:15:31 +00:00
Mike Barcroft
a30d4b3270
Move the new byte order function prototypes from <sys/param.h> to
...
<sys/endian.h>. This puts us in line with NetBSD and OpenBSD.
2002-04-26 22:48:23 +00:00
Boris Popov
cebcee2e9e
Add support for iovcnt greater than 1. This should resolve problems
...
with some applications.
Obtained from: Darwin project
MFC after: 2 weeks
2002-02-21 16:23:38 +00:00
David E. O'Brien
a48740b6c5
Update to C99, s/__FUNCTION__/__func__/.
2001-12-10 05:51:45 +00:00
Bosko Milekic
096e2dd9d8
Remove superfluous m_pkthdr.rcv_if = NULL assignment following
...
m_gethdr() mbuf allocation, which already does this for us.
2001-02-25 06:33:50 +00:00
Boris Popov
d8589bd5cb
Introduce API for sequential reads/writes (build/dissect) of mbuf chains.
...
Reviewed by: Ian Dowse <iedowse@maths.tcd.ie>,
Bosko Milekic <bmilekic@technokratis.com>,
Julian Elischer <julian@elischer.org> and arch@/net@
Obtained from: smbfs
2001-02-24 15:44:30 +00:00