*/voiddo_netifapi_netif_add( struct netifapi_msg_msg *msg){if(!netif_add( msg->netif, msg->msg.add.ipaddr, msg->msg.add.netmask, msg->msg.add.gw, msg->msg.add.state, msg->msg.add.init, msg->msg.add.input)) { msg->err = ERR_IF; }else{ msg->err = ERR_OK; } TCPIP...
dmaengine_prep_slave_sg(priv->tx_chan[requested_engine], tx->sg, tx->sg_len, DMA_MEM_TO_DEV,0);if(dma_txd ==NULL) {/* dmaengine_prep_slave_sg failed, retry */if(netif_msg_tx_err(priv)) netdev_err(netdev,"txq[%d] tx[%d]: cannot get dma descriptor\n", txq->id, tx_...
esp_netif = msg->esp_netif, .if_index = -1, .ip_index = index}; ip_event_got_ip6_t evt = {.esp_netif = msg->esp_netif, .ip_index = index}; evt.ip6_info.ip = addr->addr; ESP_RETURN_ON_ERROR(esp_event_post(IP_EVENT, IP_EVENT_GOT_IP6, &evt, sizeof(evt), 0), ...
typedef err_t (*init_fn_t)(struct netif*); typedef void (*input_fn_t)(void *netif, void *buffer, size_t len, void *eb); struct esp_netif_netstack_lwip_vanilla_config { init_fn_t init_fn; input_fn_t input_fn; }; struct esp_netif_netstack_lwip_ppp_config { input_fn_t input...
First time through I can start up and publish data ok but shutting down mqtt I get error msg: I (18680) MQTT: MQTT_PUBLIISHED I (18690) MQTT_CLIENT: Client asked to disconnect W (18690) MQTT_CLIENT: Client asked to stop, but was not started ...
msg.eth_id = port->id;if(npe_send_recv_message(port->npe, &msg,"ETH_SET_FIREWALL_MODE"))return-EIO;if((err = request_queues(port)) !=0)returnerr;if((err = init_queues(port)) !=0) { destroy_queues(port); release_queues(port);returnerr; ...
atomic_inc(&priv->reset_pending);if(unlikely(netif_msg_hw(priv))) cpmac_dump_regs(dev); } cpmac_write(priv->regs, CPMAC_MAC_INT_CLEAR,0xff); } 开发者ID:LouZiffer,项目名称:m900_kernel_cupcake-SDX,代码行数:34,代码来源:cpmac.c ...
} test_vfs_eth_tap_msg_t; static const char *TAG = "l2tap_example"; /** Opens and configures L2 TAP file descriptor */ static int init_l2tap_fd(int flags, uint16_t eth_type_filter) { int fd = open("/dev/net/tap", flags); if (fd < 0) { ESP_LOGE(TAG, "Unable to open...
uip_netif_init(void) { /* INITIALIZE INTERFACE (default values for now) */ uip_netif_physical_if.link_mtu = UIP_LINK_MTU; uip_netif_physical_if.cur_hop_limit = UIP_TTL; uip_netif_physical_if.base_reachable_time = UIP_ND6_REACHABLE_TIME; ...
GNRC_SIXLOWPAN_ND_MSG_MC_RTR_SOL, iface); } 开发者ID:daniel-k,项目名称:RIOT,代码行数:9,代码来源:gnrc_sixlowpan_nd.c 示例10: gnrc_ipv6_netif_init_by_dev ▲点赞 1▼ voidgnrc_ipv6_netif_init_by_dev(void){kernel_pid_tifs[GNRC_NETIF_NUMOF];size_tifnum = gnrc_netif_get(ifs);...