along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: device.c,v 1.1.2.2 2002/09/09 21:25:18 guus Exp $
+ $Id: device.c,v 1.1.2.3 2002/09/09 22:33:21 guus Exp $
*/
#include "config.h"
cp close(device_fd);
}
-int read_packet(vpn_packet_t * packet)
+int read_packet(vpn_packet_t *packet)
{
int lenin;
cp if((lenin = read(device_fd, packet->data, MTU)) <= 0) {
return 0;
cp}
-int write_packet(vpn_packet_t * packet)
+int write_packet(vpn_packet_t *packet)
{
cp if(debug_lvl >= DEBUG_TRAFFIC)
syslog(LOG_DEBUG, _("Writing packet of %d bytes to %s"),