Diff for /libaitio/inc/aitio.h between versions 1.41 and 1.42

version 1.41, 2015/01/19 23:32:30 version 1.42, 2016/08/18 09:06:31
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2014Copyright 2004 - 2016
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 53  SUCH DAMAGE. Line 53  SUCH DAMAGE.
 #include <syslog.h>  #include <syslog.h>
 #include <openssl/evp.h>  #include <openssl/evp.h>
 #include <openssl/aes.h>  #include <openssl/aes.h>
 #include <sys/tty.h>  
 #include <sys/ioctl_compat.h>  
 #include <sys/socket.h>  #include <sys/socket.h>
 #include <sys/un.h>  #include <sys/un.h>
 #include <sys/uio.h>  #include <sys/uio.h>
   #ifndef __linux__
   #include <sys/tty.h>
   #include <sys/ioctl_compat.h>
 #include <net/if_dl.h>  #include <net/if_dl.h>
 #include <net/bpf.h>  #include <net/bpf.h>
   #endif
 #include <netinet/in.h>  #include <netinet/in.h>
 #include <elwix.h>  #include <elwix.h>
 #include <aitsched.h>  #include <aitsched.h>
Line 631  FILE *io_fd2buf(int fd, const char *mode); Line 633  FILE *io_fd2buf(int fd, const char *mode);
  * return: -1 error or open file handle   * return: -1 error or open file handle
  */   */
 int io_dumbFile(const char *csFile, int mode, off_t size);  int io_dumbFile(const char *csFile, int mode, off_t size);
   #define io_emptyFile io_dumbFile
   
   
 /*  /*
Line 639  int io_dumbFile(const char *csFile, int mode, off_t si Line 642  int io_dumbFile(const char *csFile, int mode, off_t si
  * @csIface = interface name   * @csIface = interface name
  * @flags = open flags   * @flags = open flags
  * @whdr = with complete headers   * @whdr = with complete headers
 * @wdlt = with data link type * @wdlt = with data link type, on Linux is protocol number
  * @buflen = buffer length   * @buflen = buffer length
  * @zcbuf = zero copy buffer, if BPF supports it and isn't NULL   * @zcbuf = zero copy buffer, if BPF supports it and isn't NULL
  * return: -1 error or >-1 bpf handle   * return: -1 error or >-1 bpf handle
Line 655  int io_etherOpen(const char *csIface, int flags, unsig Line 658  int io_etherOpen(const char *csIface, int flags, unsig
  */   */
 void io_etherClose(int eth, void **zcbuf);  void io_etherClose(int eth, void **zcbuf);
   
   #ifndef __linux__
 /*  /*
  * io_etherFilter() - BPF filter routine   * io_etherFilter() - BPF filter routine
  *   *
Line 666  void io_etherClose(int eth, void **zcbuf); Line 670  void io_etherClose(int eth, void **zcbuf);
  * return: -1 error or 0 ok   * return: -1 error or 0 ok
  */   */
 int io_etherFilter(int eth, int io, struct bpf_insn * __restrict insn, size_t insnlen);  int io_etherFilter(int eth, int io, struct bpf_insn * __restrict insn, size_t insnlen);
   #endif
   
 /*  /*
  * io_etherSend() - Send packet to bpf   * io_etherSend() - Send packet to bpf

Removed from v.1.41  
changed lines
  Added in v.1.42


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