--- ansh/inc/utils.h 2011/10/04 22:37:46 1.1.1.1 +++ ansh/inc/utils.h 2011/10/10 09:11:48 1.1.1.1.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: utils.h,v 1.1.1.1 2011/10/04 22:37:46 misho Exp $ + * $Id: utils.h,v 1.1.1.1.2.2 2011/10/10 09:11:48 misho Exp $ * *************************************************************************/ #ifndef __UTILS_H @@ -14,13 +14,15 @@ void Get1stEth(char *, int); int PrepareL2(const char *, int *); int PrepareL3(const struct sockaddr *, int *); -char icmpRecv(int, u_short * __restrict, u_char * __restrict, +char icmpRecv(int, u_short * __restrict, u_int * __restrict, u_char * __restrict, int * __restrict, struct sockaddr *, socklen_t *); -int icmpSend(int, u_short, char, u_char *, int, struct sockaddr *, socklen_t); -char pktRecv(int, u_char * __restrict, int * __restrict, struct ether_header*); -int pktSend(int, u_short, char, u_char *, int, struct ether_addr*); +int icmpSend(int, u_short, char, u_int, u_char *, int, struct sockaddr *, socklen_t); +char pktRecv(int, u_int * __restrict, u_char * __restrict, int * __restrict, struct ether_header*); +int pktSend(int, u_short, char, u_int, u_char *, int, struct ether_addr*); -void *TOfunc(sched_task_t *task); +void *TOfunc(sched_task_t *); + +u_char *cryptBuffer(u_char *, int, u_int); #endif