OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [peripheral/] [eth.c] - Diff between revs 460 and 508

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 460 Rev 508
Line 999... Line 999...
  ifr.ifr_flags = IFF_TAP | IFF_NO_PI;
  ifr.ifr_flags = IFF_TAP | IFF_NO_PI;
  strncpy (ifr.ifr_name, eth->tap_dev, IFNAMSIZ);
  strncpy (ifr.ifr_name, eth->tap_dev, IFNAMSIZ);
 
 
  if (ioctl (eth->rtx_fd, TUNSETIFF, (void *) &ifr) < 0)
  if (ioctl (eth->rtx_fd, TUNSETIFF, (void *) &ifr) < 0)
    {
    {
      fprintf (stderr, "Warning: Failed to set TAP device: %s\n",
      fprintf (stderr, "Warning: Failed to set TAP device %s: %s\n",
               strerror (errno));
               eth->tap_dev, strerror (errno));
      close (eth->rtx_fd);
      close (eth->rtx_fd);
      eth->rtx_fd = -1;
      eth->rtx_fd = -1;
      return;
      return;
    }
    }
#if ETH_DEBUG
#if ETH_DEBUG

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.