Home
last modified time | relevance | path

Searched refs:netif (Results 26 – 50 of 58) sorted by relevance

123

/lib/liblwip/test/unit/etharp/
Dtest_etharp.c14 static struct netif test_netif;
34 default_netif_linkoutput(struct netif *netif, struct pbuf *p) in default_netif_linkoutput() argument
36 fail_unless(netif == &test_netif); in default_netif_linkoutput()
43 default_netif_init(struct netif *netif) in default_netif_init() argument
45 fail_unless(netif != NULL); in default_netif_init()
46 netif->linkoutput = default_netif_linkoutput; in default_netif_init()
47 netif->output = etharp_output; in default_netif_init()
48 netif->mtu = 1500; in default_netif_init()
49 netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP; in default_netif_init()
50 netif->hwaddr_len = ETHARP_HWADDR_LEN; in default_netif_init()
/lib/liblwip/src/core/ipv4/
Dip_addr.c55 ip4_addr_isbroadcast(u32_t addr, const struct netif *netif) in ip4_addr_isbroadcast() argument
65 } else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) { in ip4_addr_isbroadcast()
70 } else if (addr == ip4_addr_get_u32(&netif->ip_addr)) { in ip4_addr_isbroadcast()
73 } else if (ip_addr_netcmp(&ipaddr, &(netif->ip_addr), &(netif->netmask)) in ip4_addr_isbroadcast()
75 && ((addr & ~ip4_addr_get_u32(&netif->netmask)) == in ip4_addr_isbroadcast()
76 (IPADDR_BROADCAST & ~ip4_addr_get_u32(&netif->netmask)))) { in ip4_addr_isbroadcast()
Dip_frag.c667 ip_frag(struct pbuf *p, struct netif *netif, ip_addr_t *dest) in ip_frag() argument
681 u16_t mtu = netif->mtu; in ip_frag()
829 netif->output(netif, header, dest); in ip_frag()
842 netif->output(netif, rambuf, dest); in ip_frag()
/lib/liblwip/test/unit/tcp/
Dtest_tcp.c83 struct netif netif; in START_TEST() local
87 memset(&netif, 0, sizeof(netif)); in START_TEST()
106 test_tcp_input(p, &netif); in START_TEST()
125 struct netif netif; in START_TEST() local
145 test_tcp_init_netif(&netif, &txcounters, &local_ip, &netmask); in START_TEST()
167 test_tcp_input(p, &netif); in START_TEST()
181 test_tcp_input(p, &netif); in START_TEST()
196 test_tcp_input(p, &netif); in START_TEST()
205 test_tcp_input(p, &netif); in START_TEST()
258 test_tcp_input(p, &netif); in START_TEST()
[all …]
Dtcp_helper.h46 void test_tcp_input(struct pbuf *p, struct netif *inp);
48 void test_tcp_init_netif(struct netif *netif, struct test_tcp_txcounters *txcounters,
/lib/liblwip/src/core/snmp/
Dmib2.c1029 void snmp_add_ifinoctets(struct netif *ni, u32_t value) in snmp_add_ifinoctets()
1034 void snmp_inc_ifinucastpkts(struct netif *ni) in snmp_inc_ifinucastpkts()
1039 void snmp_inc_ifinnucastpkts(struct netif *ni) in snmp_inc_ifinnucastpkts()
1044 void snmp_inc_ifindiscards(struct netif *ni) in snmp_inc_ifindiscards()
1049 void snmp_add_ifoutoctets(struct netif *ni, u32_t value) in snmp_add_ifoutoctets()
1054 void snmp_inc_ifoutucastpkts(struct netif *ni) in snmp_inc_ifoutucastpkts()
1059 void snmp_inc_ifoutnucastpkts(struct netif *ni) in snmp_inc_ifoutnucastpkts()
1064 void snmp_inc_ifoutdiscards(struct netif *ni) in snmp_inc_ifoutdiscards()
1089 void snmp_insert_arpidx_tree(struct netif *ni, ip_addr_t *ip) in snmp_insert_arpidx_tree()
1161 void snmp_delete_arpidx_tree(struct netif *ni, ip_addr_t *ip) in snmp_delete_arpidx_tree()
[all …]
Dmib_structs.c95 snmp_ifindextonetif(s32_t ifindex, struct netif **netif) in snmp_ifindextonetif() argument
97 struct netif *nif = netif_list; in snmp_ifindextonetif()
107 *netif = nif; in snmp_ifindextonetif()
116 snmp_netiftoifindex(struct netif *netif, s32_t *ifidx) in snmp_netiftoifindex() argument
118 struct netif *nif = netif_list; in snmp_netiftoifindex()
122 while ((nif != NULL) && (nif != netif)) in snmp_netiftoifindex()
/lib/liblwip/src/core/
Dudp.c151 udp_input(struct pbuf *p, struct netif *inp)
504 struct netif *netif; local
510 netif = ip_route((ip_addr_ismulticast(dst_ip))?(&(pcb->multicast_ip)):(dst_ip));
512 netif = ip_route(dst_ip);
516 if (netif == NULL) {
523 return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum);
525 return udp_sendto_if(pcb, p, dst_ip, dst_port, netif);
550 ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif) argument
553 return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, 0, 0);
559 u16_t dst_port, struct netif *netif, u8_t have_chksum, argument
[all …]
/lib/liblwip/src/include/ipv4/lwip/
Dip.h166 extern struct netif *current_netif;
175 struct netif *ip_route(ip_addr_t *dest);
176 err_t ip_input(struct pbuf *p, struct netif *inp);
181 struct netif *netif);
188 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
Dip_addr.h84 struct netif;
202 #define ip_addr_isbroadcast(ipaddr, netif) ip4_addr_isbroadcast((ipaddr)->addr, (netif)) argument
203 u8_t ip4_addr_isbroadcast(u32_t addr, const struct netif *netif);
Dip_frag.h81 err_t ip_frag(struct pbuf *p, struct netif *netif, ip_addr_t *dest);
Dicmp.h101 void icmp_input(struct pbuf *p, struct netif *inp);
/lib/liblwip/src/include/ipv6/lwip/
Dip.h105 struct netif *ip_route(struct ip_addr *dest);
107 void ip_input(struct pbuf *p, struct netif *inp);
115 struct netif *netif);
Dicmp.h66 void icmp_input(struct pbuf *p, struct netif *inp);
/lib/liblwip/src/include/lwip/
Dudp.h134 struct netif *netif);
142 struct netif *netif, u8_t have_chksum,
155 void udp_input (struct pbuf *p, struct netif *inp);
Dtcpip.h92 err_t tcpip_input(struct pbuf *p, struct netif *inp);
145 struct netif *netif; member
Dsnmp_structs.h245 void snmp_ifindextonetif(s32_t ifindex, struct netif **netif);
246 void snmp_netiftoifindex(struct netif *netif, s32_t *ifidx);
Draw.h89 u8_t raw_input (struct pbuf *p, struct netif *inp);
/lib/liblwip/src/netif/ppp/
Dppp_oe.c117 static void pppoe_dispatch_disc_pkt(struct netif *, struct pbuf *);
134 static err_t pppoe_send_padt(struct netif *, u_int, const u8_t *);
137 static struct pppoe_softc * pppoe_find_softc_by_session(u_int, struct netif *);
138 static struct pppoe_softc * pppoe_find_softc_by_hunique(u8_t *, size_t, struct netif *);
144 pppoe_create(struct netif *ethif, int pd, void (*linkStatusCB)(int pd, int up), struct pppoe_softc … in pppoe_create()
172 pppoe_destroy(struct netif *ifp) in pppoe_destroy()
215 pppoe_find_softc_by_session(u_int session, struct netif *rcvif) in pppoe_find_softc_by_session()
239 pppoe_find_softc_by_hunique(u8_t *token, size_t len, struct netif *rcvif) in pppoe_find_softc_by_hunique()
285 pppoe_dispatch_disc_pkt(struct netif *netif, struct pbuf *pb) in pppoe_dispatch_disc_pkt() argument
369 sc = pppoe_find_softc_by_hunique((u8_t*)pb->payload + off + sizeof(pt), len, netif); in pppoe_dispatch_disc_pkt()
[all …]
Dppp.h150 int pppOverEthernetOpen(struct netif *ethif, const char *service_name, const char *concentrator_nam…
/lib/liblwip/src/api/
Dtcpip.c102 if (msg->msg.inp.netif->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) { in tcpip_thread()
103 ethernet_input(msg->msg.inp.p, msg->msg.inp.netif); in tcpip_thread()
107 ip_input(msg->msg.inp.p, msg->msg.inp.netif); in tcpip_thread()
161 tcpip_input(struct pbuf *p, struct netif *inp) in tcpip_input()
190 msg->msg.inp.netif = inp; in tcpip_input()
/lib/liblwip/doc/
Drawapi.txt371 We assume a configuration using a single Ethernet netif and the
417 - netif_add(struct netif *netif, ip_addr_t *ipaddr,
419 void *state, err_t (* init)(struct netif *netif),
420 err_t (* input)(struct pbuf *p, struct netif *netif))
423 netif and pass a pointer to this structure as the first argument.
428 your ethernet netif interface. The following code illustrates it's use.
430 err_t netif_if_init(struct netif *netif)
434 for(i = 0; i < ETHARP_HWADDR_LEN; i++) netif->hwaddr[i] = some_eth_addr[i];
440 function ethernet_input() declared in "netif/etharp.h". Other drivers
443 - netif_set_default(struct netif *netif)
[all …]
/lib/liblwip/
DSConscript32 "src/core/netif.c",
42 "src/netif/etharp.c",
DCHANGELOG56 * opt.h, netif.h/.c: added netif remove callback (bug #32397)
66 the input netif (set IP_FORWARD_ALLOW_TX_ON_RX_NETIF==1).
160 * netif.c, etharp.h/.c: fixed bug #34684: Clear the arp table cache when
161 netif is brought down
180 consider netif->mtu, causes slow network
274 * netif.c: fixed bug #34121 netif_add/netif_set_ipaddr fail on NULL ipaddr
323 * dhcp.c/.h: Added a function to deallocate the struct dhcp from a netif
332 link-layer-addressed UDP traffic to be received while a netif is down (just
405 netif->output in one piece): Always copy to try to create single pbufs
463 * netif.c/.h, removed loopif.c/.h: task #10153 (Integrate loopif into
[all …]
/lib/liblwip/src/
DFILES9 netif/ - Generic network interface device drivers are kept here,

123