Date: Wed, 31 Jan 2007 21:17:25 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 113794 for review Message-ID: <200701312117.l0VLHPv0031881@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113794 Change 113794 by piso@piso_newluxor on 2007/01/31 21:17:15 In kernel libalias will grok mbuf instead of char * data. Affected files ... .. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias.c#46 edit .. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias.h#11 edit Differences ... ==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias.c#46 (text+ko) ==== @@ -1290,7 +1290,11 @@ int maxpacketsize); int +#ifdef _KERNEL +LibAliasIn(struct libalias *la, struct mbuf *ptr, int maxpacketsize) +#else LibAliasIn(struct libalias *la, char *ptr, int maxpacketsize) +#endif { int res; @@ -1409,7 +1413,11 @@ #define UNREG_ADDR_C_UPPER 0xc0a8ffff int +#ifdef _KERNEL +LibAliasOut(struct libalias *la, struct mbuf *ptr, int maxpacketsize) +#else LibAliasOut(struct libalias *la, char *ptr, int maxpacketsize) +#endif { int res; @@ -1420,7 +1428,11 @@ } int +#ifdef _KERNEL +LibAliasOutTry(struct libalias *la, struct mbuf *ptr, int maxpacketsize, int create) +#else LibAliasOutTry(struct libalias *la, char *ptr, int maxpacketsize, int create) +#endif { int res; ==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias.h#11 (text+ko) ==== @@ -145,9 +145,15 @@ void LibAliasUninit(struct libalias *); /* Packet Handling functions. */ +#ifdef _KERNEL +int LibAliasIn (struct libalias *, struct mbuf *_ptr, int _maxpacketsize); +int LibAliasOut(struct libalias *, struct mbuf *_ptr, int _maxpacketsize); +int LibAliasOutTry(struct libalias *, struct mbuf *_ptr, int _maxpacketsize, int _create); +#else int LibAliasIn (struct libalias *, char *_ptr, int _maxpacketsize); int LibAliasOut(struct libalias *, char *_ptr, int _maxpacketsize); int LibAliasOutTry(struct libalias *, char *_ptr, int _maxpacketsize, int _create); +#endif int LibAliasUnaliasOut(struct libalias *, char *_ptr, int _maxpacketsize); /* Port and address redirection functions. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701312117.l0VLHPv0031881>