示例#1
0
static err_t rza1_etharp_output(struct netif *netif, struct pbuf *q, ip_addr_t *ipaddr) {
    /* Only send packet is link is up */
    if (netif->flags & NETIF_FLAG_LINK_UP) {
        return etharp_output(netif, q, ipaddr);
    }

    return ERR_CONN;
}
static err_t
ethernetif_output(struct netif *netif, struct pbuf *p,
                  struct ip_addr *ipaddr)
{

    /* resolve hardware address, then send (or queue) packet */
    return etharp_output(netif, ipaddr, p);

}
示例#3
0
文件: k64f_emac.c 项目: NXPmicro/mbed
err_t k64f_etharp_output_ipv4(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr)
{
  /* Only send packet is link is up */
  if (netif->flags & NETIF_FLAG_LINK_UP) {
    return etharp_output(netif, q, ipaddr);
  }

  return ERR_CONN;
}
示例#4
0
static err_t
netfront_output(struct netif *netif, struct pbuf *p,
      struct ip_addr *ipaddr)
{
  //printf("netfront_output\n"); //farewellkou
 /* resolve hardware address, then send (or queue) packet */
  return etharp_output(netif, p, ipaddr);

}
示例#5
0
文件: net.c 项目: 0xBADCA7/lk
static err_t
ethernetif_output(struct netif *netif, struct pbuf *p,
                  struct ip_addr *ipaddr)
{
//  dprintf("ethernetif_output: netif %p, pbuf %p, ipaddr %p\n", netif, p, ipaddr);

    /* resolve hardware address, then send (or queue) packet */
    return etharp_output(netif, ipaddr, p);

}
示例#6
0
/* This function is called by the TCP/IP stack when an IP packet should be
 * sent. It uses the ethernet ARP module provided by lwIP to resolve the
 * destination MAC address. The ARP module will later call our low level
 * output function mcf523xfec_output_raw.
 */
err_t
mcf523xfec_output( struct netif * netif, struct pbuf * p, struct ip_addr * ipaddr )
{
    err_t           res;
    mcf523xfec_if_t *fecif = netif->state;

    FEC_DEBUG_TX_TIMING( 1 );
    /* Make sure only one thread is in this function. */
    sys_sem_wait( fecif->tx_sem );
    res = etharp_output( netif, ipaddr, p );
    FEC_DEBUG_TX_TIMING( 0 );
    return res;
}
示例#7
0
static err_t paulosif_output (struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr)
{
    struct pbuf *q;
    struct genericif *genericif;
    genericif = netif->state;

    q = etharp_output (netif, ipaddr, p);

    if (q != NULL) {
	low_level_output (genericif, q);
	pbuf_free (q);
    }
    return ERR_OK;
}
示例#8
0
static err_t
SMapOutput(NetIF* pNetIF,PBuf* pOutput,IPAddr* pIPAddr)
{
	err_t result;
	PBuf* pBuf;

	SaveGP();

	pBuf=etharp_output(pNetIF,pIPAddr,pOutput);

	result=pBuf!=NULL ? SMapLowLevelOutput(pNetIF, pBuf):ERR_OK;

	RestoreGP();

	return result;
}
示例#9
0
err_t ethernetif_output(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr)
{
	return etharp_output(netif, p, ipaddr);
}
示例#10
0
/*-----------------------------------------------------------------------------------*/
static err_t
mcf5272fecif_output(struct netif *netif, struct pbuf *p,
                    struct ip_addr *ipaddr)
{
    return etharp_output(netif, ipaddr, p);
}
示例#11
0
/*##########################################################################
*
* Called by the TCP/IP stack when an IP packet should be sent.
* It calls the function called low_level_output() to actually transmit the
* packet.
*#########################################################################*/
static err_t
nifce_driver_output(struct netif* netif, struct pbuf* p, struct ip_addr* ipaddr)
{
  return(etharp_output(netif, p, ipaddr));
}