File:  [ELWIX - Embedded LightWeight unIX -] / ansh / inc / utils.h
Revision 1.1.1.1.2.4: download - view: text, annotated - select for diffs - revision graph
Thu Oct 13 14:29:30 2011 UTC (12 years, 8 months ago) by misho
Branches: ansh1_0
Diff to: branchpoint 1.1.1.1: preferred, unified
new features::
- reordering instructions in clients
- add sequence number in ansh protocol
- detect lost packets

    1: /*************************************************************************
    2:  * (C) 2011 AITNET - Sofia/Bulgaria - <office@aitnet.org>
    3:  *  by Michael Pounov <misho@elwix.org>
    4:  *
    5:  * $Author: misho $
    6:  * $Id: utils.h,v 1.1.1.1.2.4 2011/10/13 14:29:30 misho Exp $
    7:  *
    8:  *************************************************************************/
    9: #ifndef __UTILS_H
   10: #define __UTILS_H
   11: 
   12: 
   13: void Get1stEth(char *, int);
   14: int PrepareL2(const char *, int *);
   15: int PrepareL3(const struct sockaddr *, int *);
   16: 
   17: char icmpRecv(int, u_int * __restrict, u_short * __restrict, u_int * __restrict, u_char * __restrict, 
   18: 		int * __restrict, struct sockaddr *, socklen_t *);
   19: int icmpSend(int, u_int, u_short, char, u_int, u_char *, int, struct sockaddr *, socklen_t);
   20: char pktRecv(int, u_int * __restrict, u_int * __restrict, u_char * __restrict, int * __restrict, struct ether_header*);
   21: int pktSend(int, u_int, char, u_int, u_char *, int, struct ether_addr*);
   22: 
   23: void *TOfunc(sched_task_t *);
   24: 
   25: u_char *cryptBuffer(u_char *, int, u_int);
   26: 
   27: 
   28: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>