Home
last modified time | relevance | path

Searched refs:netif (Results 51 - 75 of 128) sorted by relevance

123456

/third_party/lwip/src/core/
H A Dnet_group.c32 #include "lwip/netif.h"
34 static struct netif root_loop_netif = {0};
49 static void do_set_netif_net_group(struct netif *netif, struct net_group *group) in do_set_netif_net_group() argument
51 (void)netif; in do_set_netif_net_group()
55 static struct net_group *do_get_net_group_from_netif(struct netif *netif) in do_get_net_group_from_netif() argument
57 (void)netif; in do_get_net_group_from_netif()
/third_party/lwip/test/unit/tcp/
H A Dtest_tcp.c43 static struct netif *old_netif_list;
44 static struct netif *old_netif_default;
104 struct netif netif; in START_TEST() local
114 test_tcp_init_netif(&netif, &txcounters, &test_local_ip, &test_netmask); in START_TEST()
120 err = tcp_bind(pcb, &netif.ip_addr, 1234); in START_TEST()
135 test_tcp_input(p, &netif); in START_TEST()
149 test_tcp_input(p, &netif); in START_TEST()
166 struct netif netif; in START_TEST() local
212 struct netif netif; START_TEST() local
304 struct netif netif; START_TEST() local
338 struct netif netif; START_TEST() local
388 struct netif netif; START_TEST() local
447 struct netif netif; START_TEST() local
629 struct netif netif; START_TEST() local
717 struct netif netif; START_TEST() local
793 struct netif netif; test_tcp_tx_full_window_lost() local
948 struct netif netif; START_TEST() local
1067 struct netif netif; START_TEST() local
1189 struct netif netif; test_tcp_rto_timeout_impl() local
1286 struct netif netif; test_tcp_rto_timeout_syn_sent_impl() local
1382 struct netif netif; test_tcp_zwp_timeout_impl() local
1511 struct netif netif; START_TEST() local
[all...]
H A Dtcp_helper.c254 void test_tcp_input(struct pbuf *p, struct netif *inp) in test_tcp_input()
274 static err_t test_tcp_netif_output(struct netif *netif, struct pbuf *p, in test_tcp_netif_output() argument
277 struct test_tcp_txcounters *txcounters = (struct test_tcp_txcounters*)netif->state; in test_tcp_netif_output()
299 void test_tcp_init_netif(struct netif *netif, struct test_tcp_txcounters *txcounters, in test_tcp_init_netif() argument
302 struct netif *n; in test_tcp_init_netif()
303 memset(netif, 0, sizeof(struct netif)); in test_tcp_init_netif()
306 netif in test_tcp_init_netif()
[all...]
/third_party/lwip/src/api/
H A Dnetifapi.c67 if (!netif_add( msg->netif, get_curr_process_net_group(), in netifapi_do_netif_add()
69 if (!netif_add( msg->netif, in netifapi_do_netif_add()
96 netif_set_addr( msg->netif,
151 return msg->msg.common.errtfunc(msg->netif);
153 msg->msg.common.voidfunc(msg->netif);
229 netifapi_netif_add(struct netif *netif,
251 NETIFAPI_VAR_REF(msg).netif = netif;
274 netifapi_netif_set_addr(struct netif *neti
[all...]
/third_party/lwip/src/include/lwip/
H A Dudp.h46 #include "lwip/netif.h"
128 void udp_bind_netif (struct udp_pcb *pcb, const struct netif* netif);
136 struct netif *netif);
139 struct netif *netif, const ip_addr_t *src_ip);
147 struct netif *netif, u8_t have_chksum,
155 const ip_addr_t *dst_ip, u16_t dst_port, struct netif *neti
[all...]
H A Dnet_group.h36 struct netif;
42 struct netif *netif_default;
44 struct netif *netif_list;
45 struct netif *loop_netif;
50 void (*set_netif_net_group)(struct netif *, struct net_group *);
51 struct net_group *(*get_net_group_from_netif)(struct netif *);
H A Dnetifapi.h3 * netif API (to be used from non-TCPIP threads)
40 #include "lwip/netif.h"
65 err_t netifapi_netif_add(struct netif *netif,
72 err_t netifapi_netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr,
76 err_t netifapi_netif_common(struct netif *netif, netifapi_void_fn voidfunc,
/third_party/lwip/src/include/netif/
H A Dbridgeif.h3 * lwIP netif implementing an IEEE 802.1D MAC Bridge
40 #include "netif/bridgeif_opts.h"
49 struct netif;
71 /** MAC address of the bridge (cannot use the netif's addresses) */
74 influences memory allocated for netif->state of the bridge netif). */
94 err_t bridgeif_init(struct netif *netif);
95 err_t bridgeif_add_port(struct netif *bridgeif, struct netif *porti
[all...]
H A Dethernet.h4 * To be used in most low-level netif implementations
47 #include "lwip/netif.h"
56 /** Define this to 1 and define LWIP_ARP_FILTER_NETIF_FN(pbuf, netif, type)
57 * to a filter function that returns the correct netif when using multiple
58 * netifs on one hardware interface where the netif's low-level receive
59 * routine cannot decide for the correct netif (e.g. when mapping multiple
66 err_t ethernet_input(struct pbuf *p, struct netif *netif);
67 err_t ethernet_output(struct netif* netif, struc
[all...]
H A Dzepif.h4 * A netif implementing the ZigBee Eencapsulation Protocol (ZEP).
44 #include "netif/lowpan6.h"
48 #include "lwip/netif.h"
57 * of this netif. If NULL is passed, default behaviour is chosen */
67 /** If != NULL, the udp pcb is bound to this netif */
68 const struct netif *zep_netif;
73 err_t zepif_init(struct netif *netif);
/third_party/lwip/src/include/netif/ppp/
H A Dpppoe.h70 #include "netif/ppp/ppp_opts.h"
145 struct netif *sc_ethif; /* ethernet interface we are using */
169 ppp_pcb *pppoe_create(struct netif *pppif,
170 struct netif *ethif,
178 void pppoe_disc_input(struct netif *netif, struct pbuf *p);
179 void pppoe_data_input(struct netif *netif, struct pbuf *p);
H A Dpppol2tp.h34 #include "netif/ppp/ppp_opts.h"
172 struct netif *netif; /* Output interface, used as a default route */ member
199 ppp_pcb *pppol2tp_create(struct netif *pppif,
200 struct netif *netif, const ip_addr_t *ipaddr, u16_t port,
/third_party/lwip/src/core/ipv4/
H A Dip4_addr.c44 #include "lwip/netif.h"
54 * @param netif the network interface against which the address is checked
58 ip4_addr_isbroadcast_u32(u32_t addr, const struct netif *netif) in ip4_addr_isbroadcast_u32() argument
68 } else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) { in ip4_addr_isbroadcast_u32()
73 } else if (addr == ip4_addr_get_u32(netif_ip4_addr(netif))) { in ip4_addr_isbroadcast_u32()
76 } else if (ip4_addr_netcmp(&ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) in ip4_addr_isbroadcast_u32()
78 && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) == in ip4_addr_isbroadcast_u32()
79 (IPADDR_BROADCAST & ~ip4_addr_get_u32(netif_ip4_netmask(netif))))) { in ip4_addr_isbroadcast_u32()
[all...]
H A Dicmp.c77 * @param inp the netif on which this packet was received
80 icmp_input(struct pbuf *p, struct netif *inp) in icmp_input()
347 struct netif *netif; in icmp_send_response() local
392 netif = ip4_route_src(&iphdr_dst, &iphdr_src, get_root_net_group()); in icmp_send_response()
394 netif = ip4_route_src(&iphdr_dst, &iphdr_src); in icmp_send_response()
399 netif = ip4_route(&iphdr_src, get_root_net_group()); in icmp_send_response()
401 netif = ip4_route(&iphdr_src); in icmp_send_response()
404 if (netif != NULL) { in icmp_send_response()
408 IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICM in icmp_send_response()
[all...]
/third_party/lwip/test/unit/udp/
H A Dtest_udp.c17 static struct netif test_netif1, test_netif2;
38 default_netif_output(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr) in default_netif_output() argument
40 fail_unless((netif == &test_netif1) || (netif == &test_netif2)); in default_netif_output()
48 default_netif_linkoutput(struct netif *netif, struct pbuf *p) in default_netif_linkoutput() argument
50 fail_unless((netif == &test_netif1) || (netif == &test_netif2)); in default_netif_linkoutput()
57 default_netif_init(struct netif *neti argument
[all...]
/third_party/lwip/test/unit/ip6/
H A Dtest_ip6.c16 static struct netif test_netif6;
20 default_netif_linkoutput(struct netif *netif, struct pbuf *p) in default_netif_linkoutput() argument
22 fail_unless(netif == &test_netif6); in default_netif_linkoutput()
29 default_netif_init(struct netif *netif) in default_netif_init() argument
31 fail_unless(netif != NULL); in default_netif_init()
32 netif->linkoutput = default_netif_linkoutput; in default_netif_init()
33 netif->output_ip6 = ethip6_output; in default_netif_init()
34 netif in default_netif_init()
[all...]
/third_party/lwip/src/netif/ppp/
H A Dpppos.c34 #include "netif/ppp/ppp_opts.h"
44 #include "lwip/netif.h"
50 #include "netif/ppp/ppp_impl.h"
51 #include "netif/ppp/pppos.h"
52 #include "netif/ppp/vj.h"
174 ppp_pcb *pppos_create(struct netif *pppif, pppos_output_cb_fn output_cb, in pppos_create()
215 PPPDEBUG(LOG_WARNING, ("pppos_write[%d]: alloc fail\n", ppp->netif->num)); in pppos_write()
218 MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); in pppos_write()
243 PPPDEBUG(LOG_INFO, ("pppos_write[%d]: len=%d\n", ppp->netif->num, p->len)); in pppos_write()
245 PPPDEBUG(LOG_WARNING, ("pppos_write[%d]: output failed len=%d\n", ppp->netif in pppos_write()
[all...]
H A Dmppe.c26 #include "netif/ppp/ppp_opts.h"
33 #include "netif/ppp/ppp_impl.h"
34 #include "netif/ppp/ccp.h"
35 #include "netif/ppp/mppe.h"
36 #include "netif/ppp/pppdebug.h"
37 #include "netif/ppp/pppcrypt.h"
127 pcb->netif->num)); in mppe_init()
144 debugstr, pcb->netif->num, (state->keylen == 16) ? 128 : 40, in mppe_init()
153 debugstr, pcb->netif->num, mkey, skey)); in mppe_init()
224 PPPDEBUG(LOG_DEBUG, ("mppe_compress[%d]: ccount %d\n", pcb->netif in mppe_compress()
[all...]
H A Dpppoe.c71 #include "netif/ppp/ppp_opts.h"
84 #include "netif/ethernet.h"
85 #include "netif/ppp/ppp_impl.h"
86 #include "netif/ppp/lcp.h"
87 #include "netif/ppp/ipcp.h"
88 #include "netif/ppp/pppoe.h"
142 static err_t pppoe_send_padt(struct netif *, u_int, const u8_t *);
146 static struct pppoe_softc* pppoe_find_softc_by_session(u_int session, struct netif *rcvif);
147 static struct pppoe_softc* pppoe_find_softc_by_hunique(u8_t *token, size_t len, struct netif *rcvif);
171 ppp_pcb *pppoe_create(struct netif *pppi
370 pppoe_disc_input(struct netif *netif, struct pbuf *pb) pppoe_disc_input() argument
649 pppoe_data_input(struct netif *netif, struct pbuf *pb) pppoe_data_input() argument
[all...]
/third_party/lwip/test/unit/etharp/
H A Dtest_etharp.c5 #include "netif/ethernet.h"
16 static struct netif test_netif;
36 default_netif_linkoutput(struct netif *netif, struct pbuf *p) in default_netif_linkoutput() argument
38 fail_unless(netif == &test_netif); in default_netif_linkoutput()
45 default_netif_init(struct netif *netif) in default_netif_init() argument
47 fail_unless(netif != NULL); in default_netif_init()
48 netif->linkoutput = default_netif_linkoutput; in default_netif_init()
49 netif in default_netif_init()
[all...]
/third_party/lwip/src/include/lwip/priv/
H A Dapi_msg.h239 typedef void (*netifapi_void_fn)(struct netif *netif);
240 typedef err_t (*netifapi_errt_fn)(struct netif *netif);
244 struct netif *netif; member
H A Dnd6_priv.h53 #include "lwip/netif.h"
73 struct netif *netif; member
102 struct netif *netif; member
/third_party/lwip/test/unit/dhcp/
H A Dtest_dhcp.c3 #include "lwip/netif.h"
7 #include "netif/ethernet.h"
9 static struct netif net_test;
143 static void send_pkt(struct netif *netif, const u8_t *data, size_t len) in send_pkt() argument
164 netif->input(p, netif); in send_pkt()
167 static err_t lwip_tx_func(struct netif *netif, struct pbuf *p);
169 static err_t testif_init(struct netif *neti argument
241 lwip_tx_func(struct netif *netif, struct pbuf *p) lwip_tx_func() argument
[all...]
/third_party/FreeBSD/sys/dev/usb/net/
H A Dusb_eth_drv.c42 static void eth_drv_send(struct netif *usb_netif, struct pbuf *p);
46 eth_drv_config(struct netif *ni, u32_t cflags, u8_t setBit) in eth_drv_config()
63 struct netif *usb_netif = &sc->ac_if; in eth_drv_init()
95 PRINT_ERR("%s, %d, netif set default failed, ret:%d\n", __FUNCTION__, __LINE__, ret); in eth_drv_init()
101 PRINT_ERR("%s, %d, netif set up failed, ret:%d\n", __FUNCTION__, __LINE__, ret); in eth_drv_init()
131 struct netif *usb_netif = &sc->ac_if; in eth_drv_recv()
164 eth_drv_send(struct netif *usb_netif, struct pbuf *p) in eth_drv_send()
/third_party/NuttX/drivers/usbdev/gadget/
H A Df_ether.c52 const struct netif *g_ether_usb0;
159 uint8_t eth_set_hwaddr(struct netif *usb_netif, uint8_t *addr, uint8_t len) in eth_set_hwaddr()
209 static void eth_tx(struct netif *usb_netif, struct pbuf *p) in eth_tx()
227 struct netif *usb_netif = &sc->ac_if; in eth_rx()
257 static void eth_drv_config(struct netif *usb_netif, uint32_t cflags, uint8_t set_bit) in eth_drv_config()
270 struct netif *usb_netif = &sc->ac_if; in netdev_register()
299 usb_err("%s %d, add netif failed, ret:%d\n", __FUNCTION__, __LINE__, ret); in netdev_register()
310 struct netif *usb_netif = &sc->ac_if; in netdev_unregister()
314 usb_err("%s %d, remove netif failed!\n", __FUNCTION__, __LINE__); in netdev_unregister()

Completed in 11 milliseconds

123456