/barrelfish-2018-10-04/include/net/ |
H A D | netif.h | 20 struct netif; 32 * @brief initializes a netif structure for LWIP with a device queue 34 * @param netif the netif to be initialized 39 errval_t net_if_init_devq(struct netif *netif, struct devq *devq); 43 * @brief adds the netif to the LWIP 45 * @param netif the netif ot be added 50 errval_t net_if_add(struct netif *neti [all...] |
/barrelfish-2018-10-04/lib/lwip/src/netif/ |
H A D | loopif.c | 42 #include "netif/loopif.h" 48 * @param netif the lwip network interface structure for this loopif 52 err_t loopif_init(struct netif * netif) argument 54 /* initialize the snmp variables and counters inside the struct netif 57 NETIF_INIT_SNMP(netif, snmp_ifType_softwareLoopback, 0); 59 netif->name[0] = 'l'; 60 netif->name[1] = 'o'; 61 netif->output = netif_loop_output;
|
H A D | ethernetif.c | 56 #include "netif/etharp.h" 57 #include "netif/ppp_oe.h" 66 * as it is already kept in the struct netif. 75 static void ethernetif_input(struct netif *netif); 81 * @param netif the already initialized lwip network interface structure 84 static void low_level_init(struct netif *netif) 86 struct ethernetif *ethernetif = netif->state; 89 netif [all...] |
/barrelfish-2018-10-04/include/lwip/netif/ |
H A D | slipif.h | 37 #include "lwip/netif.h" 43 err_t slipif_init(struct netif *netif);
|
H A D | bfeth.h | 13 #include <lwip/netif.h> 15 void bfeth_input(struct netif *netif, uint64_t pbuf_id, uint64_t paddr, 17 err_t bfeth_init(struct netif *netif);
|
H A D | loopif.h | 36 #include "lwip/netif.h" 47 err_t loopif_init(struct netif *netif);
|
/barrelfish-2018-10-04/include/lwip2/netif/ |
H A D | slipif.h | 4 * SLIP netif API 44 #include "lwip/netif.h" 74 err_t slipif_init(struct netif * netif); 75 void slipif_poll(struct netif *netif); 77 void slipif_process_rxqueue(struct netif *netif); 78 void slipif_received_byte(struct netif *netif, u8_ [all...] |
/barrelfish-2018-10-04/lib/lwip2/doc/ |
H A D | NO_SYS_SampleCode.c | 20 static err_t netif_output(struct netif *netif, struct pbuf *p) argument 25 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); 28 MIB2_STATS_NETIF_INC(netif, ifoutucastpkts); 30 MIB2_STATS_NETIF_INC(netif, ifoutnucastpkts); 41 static void netif_status_callback(struct netif *netif) argument 43 printf("netif status changed %s\n", ip4addr_ntoa(netif_ip4_addr(netif))); 46 static err_t netif_init(struct netif *neti argument 63 struct netif netif; local [all...] |
/barrelfish-2018-10-04/include/lwip/lwip/ |
H A D | netif.h | 63 /** TODO: define the use (where, when, whom) of netif flags */ 70 /** if set, the netif has broadcast capability */ 72 /** if set, the netif is one end of a point-to-point connection */ 79 /** if set, the netif is an device using ARP */ 81 /** if set, the netif has IGMP capability */ 88 struct netif { struct 90 struct netif *next; 99 err_t(*input) (struct pbuf * p, struct netif * inp); 103 err_t(*output) (struct netif * netif, struc [all...] |
H A D | netifapi.h | 36 #include "lwip/netif.h" 49 struct netif *netif; member in struct:netifapi_msg_msg 56 err_t(*init) (struct netif * netif); 57 err_t(*input) (struct pbuf * p, struct netif * netif); 60 void (*voidfunc) (struct netif * netif); 61 err_t(*errtfunc) (struct netif * neti [all...] |
/barrelfish-2018-10-04/include/lwip2/lwip/ |
H A D | autoip.h | 48 #include "lwip/netif.h" 60 /** AutoIP state information per netif */ 78 void autoip_set_struct(struct netif *netif, struct autoip *autoip); 79 /** Remove a struct autoip previously set to the netif using autoip_set_struct() */ 80 #define autoip_remove_struct(netif) do { (netif)->autoip = NULL; } while (0) 81 err_t autoip_start(struct netif *netif); 82 err_t autoip_stop(struct netif *neti [all...] |
H A D | nd6.h | 62 struct netif; 65 void nd6_input(struct pbuf *p, struct netif *inp); 67 struct netif *nd6_find_route(const ip6_addr_t *ip6addr); 68 err_t nd6_get_next_hop_addr_or_queue(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr, const u8_t **hwaddrp); 69 u16_t nd6_get_destination_mtu(const ip6_addr_t *ip6addr, struct netif *netif); 73 void nd6_cleanup_netif(struct netif *netif); 75 void nd6_adjust_mld_membership(struct netif *neti [all...] |
H A D | netif.h | 3 * netif API (to be used from TCPIP thread) 68 * @ingroup netif 75 * It must be set by the startup code before this netif can be used 79 /** If set, the netif has broadcast capability. 80 * Set by the netif driver in its init function. */ 84 * Either set by the netif driver in its init function (if the link 88 /** If set, the netif is an ethernet device using ARP. 89 * Set by the netif driver in its init function. 92 /** If set, the netif is an ethernet device. It might not use 96 /** If set, the netif ha 225 struct netif { struct [all...] |
H A D | dhcp.h | 45 #include "lwip/netif.h" 109 void dhcp_set_struct(struct netif *netif, struct dhcp *dhcp); 110 /** Remove a struct dhcp previously set to the netif using dhcp_set_struct() */ 111 #define dhcp_remove_struct(netif) do { (netif)->dhcp = NULL; } while(0) 112 void dhcp_cleanup(struct netif *netif); 113 err_t dhcp_start(struct netif *netif); [all...] |
H A D | mld6.h | 51 #include "lwip/netif.h" 75 err_t mld6_stop(struct netif *netif); 76 void mld6_report_groups(struct netif *netif); 78 struct mld_group *mld6_lookfor_group(struct netif *ifp, const ip6_addr_t *addr); 79 void mld6_input(struct pbuf *p, struct netif *inp); 81 err_t mld6_joingroup_netif(struct netif *netif, const ip6_addr_t *groupaddr); 83 err_t mld6_leavegroup_netif(struct netif *neti [all...] |
H A D | ethip6.h | 52 #include "lwip/netif.h" 60 err_t ethip6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr);
|
H A D | etharp.h | 5 * To be used in most low-level netif implementations 51 #include "lwip/netif.h" 78 s8_t etharp_find_addr(struct netif *netif, const ip4_addr_t *ipaddr, 80 u8_t etharp_get_entry(u8_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_addr **eth_ret); 81 err_t etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr); 82 err_t etharp_query(struct netif *netif, cons [all...] |
/barrelfish-2018-10-04/lib/lwip/src/core/ |
H A D | netif.c | 43 #include "lwip/netif.h" 47 #include "netif/etharp.h" 67 struct netif *netif_list; 68 struct netif *netif_default; 73 * @param netif a pre-allocated netif structure 74 * @param ipaddr IP address for the new netif 75 * @param netmask network mask for the new netif 76 * @param gw default gateway IP address for the new netif 77 * @param state opaque data passed to the new netif 84 netif_add(struct netif *netif, struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw, void *state, err_t(*init) (struct netif * netif), err_t(*input) (struct pbuf * p, struct netif * netif)) argument 169 netif_set_addr(struct netif *netif, struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw) argument 182 netif_remove(struct netif *netif) argument 229 struct netif *netif; local 260 netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr) argument 323 netif_set_gw(struct netif *netif, struct ip_addr *gw) argument 342 netif_set_netmask(struct netif *netif, struct ip_addr *netmask) argument 361 netif_set_default(struct netif *netif) argument 385 netif_set_up(struct netif *netif) argument 415 netif_set_down(struct netif *netif) argument 431 netif_is_up(struct netif *netif) argument 440 netif_set_status_callback(struct netif *netif, void (*status_callback) (struct netif * netif)) argument 452 netif_set_link_up(struct netif *netif) argument 476 netif_set_link_down(struct netif *netif) argument 485 netif_is_link_up(struct netif *netif) argument 493 netif_set_link_callback(struct netif *netif, void (*link_callback) (struct netif * netif)) argument 518 netif_loop_output(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr) argument 586 netif_poll(struct netif *netif) argument 646 struct netif *netif = netif_list; local [all...] |
/barrelfish-2018-10-04/lib/lwip/src/core/ipv4/ |
H A D | autoip.c | 72 #include "lwip/netif.h" 74 #include "netif/etharp.h" 87 /** Pseudo random macro based on netif informations. 90 #define LWIP_AUTOIP_RAND(netif) ( (((u32_t)((netif->hwaddr[5]) & 0xff) << 24) | \ 91 ((u32_t)((netif->hwaddr[3]) & 0xff) << 16) | \ 92 ((u32_t)((netif->hwaddr[2]) & 0xff) << 8) | \ 93 ((u32_t)((netif->hwaddr[4]) & 0xff))) + \ 94 (netif->autoip?netif 130 autoip_handle_arp_conflict(struct netif *netif) argument 166 autoip_create_addr(struct netif *netif, struct ip_addr *IPAddr) argument 199 autoip_arp_announce(struct netif *netif) argument 212 autoip_bind(struct netif *netif) argument 240 autoip_start(struct netif * netif) argument 313 autoip_stop(struct netif * netif) argument 325 struct netif *netif = netif_list; local 404 autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr) argument [all...] |
H A D | ip_addr.c | 42 #include "lwip/netif.h" 55 * @param netif the network interface against which the address is checked 58 u8_t ip_addr_isbroadcast(struct ip_addr *addr, struct netif *netif) argument 67 else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) 72 else if (addr2test == netif->ip_addr.addr) 75 else if (ip_addr_netcmp(addr, &(netif->ip_addr), &(netif->netmask)) 77 && ((addr2test & ~netif->netmask.addr) == 78 (IP_ADDR_BROADCAST_VALUE & ~netif [all...] |
/barrelfish-2018-10-04/lib/lwip2/src/core/ |
H A D | netif.c | 5 * @defgroup netif Network interface (NETIF) 9 * @ingroup netif 12 * @ingroup netif 15 * Store data (void*) on a netif for application usage. 17 * @ingroup netif 59 #include "lwip/netif.h" 75 #include "netif/ethernet.h" 105 struct netif *netif_list; 106 struct netif *netif_default; 116 static void netif_issue_reports(struct netif* neti 141 netif_loopif_init(struct netif *netif) argument 242 netif_add(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, void *state, netif_init_fn init, netif_input_fn input) argument 353 netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw) argument 378 netif_remove(struct netif *netif) argument 475 struct netif *netif; local 508 netif_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr) argument 558 netif_set_gw(struct netif *netif, const ip4_addr_t *gw) argument 581 netif_set_netmask(struct netif *netif, const ip4_addr_t *netmask) argument 605 netif_set_default(struct netif *netif) argument 625 netif_set_up(struct netif *netif) argument 643 netif_issue_reports(struct netif* netif, u8_t report_type) argument 683 netif_set_down(struct netif *netif) argument 709 netif_set_status_callback(struct netif *netif, netif_status_callback_fn status_callback) argument 723 netif_set_remove_callback(struct netif *netif, netif_status_callback_fn remove_callback) argument 736 netif_set_link_up(struct netif *netif) argument 775 netif_set_link_callback(struct netif *netif, netif_status_callback_fn link_callback) argument 799 netif_loop_output(struct netif *netif, struct pbuf *p) argument 882 netif_loop_output_ipv4(struct netif *netif, struct pbuf *p, const ip4_addr_t* addr) argument 891 netif_loop_output_ipv6(struct netif *netif, struct pbuf *p, const ip6_addr_t* addr) argument 907 netif_poll(struct netif *netif) argument 975 struct netif *netif = netif_list; local 1016 netif_ip6_addr_set(struct netif *netif, s8_t addr_idx, const ip6_addr_t *addr6) argument 1034 netif_ip6_addr_set_parts(struct netif *netif, s8_t addr_idx, u32_t i0, u32_t i1, u32_t i2, u32_t i3) argument 1088 netif_ip6_addr_set_state(struct netif* netif, s8_t addr_idx, u8_t state) argument 1150 netif_get_ip6_addr_match(struct netif *netif, const ip6_addr_t *ip6addr) argument 1171 netif_create_ip6_linklocal_address(struct netif *netif, u8_t from_mac_48bit) argument 1225 netif_add_ip6_address(struct netif *netif, const ip6_addr_t *ip6addr, s8_t *chosen_idx) argument 1259 netif_null_output_ip6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipaddr) argument [all...] |
/barrelfish-2018-10-04/lib/lwip2/src/core/ipv4/ |
H A D | autoip.c | 66 #include "lwip/netif.h" 73 /** Pseudo random macro based on netif informations. 76 #define LWIP_AUTOIP_RAND(netif) ( (((u32_t)((netif->hwaddr[5]) & 0xff) << 24) | \ 77 ((u32_t)((netif->hwaddr[3]) & 0xff) << 16) | \ 78 ((u32_t)((netif->hwaddr[2]) & 0xff) << 8) | \ 79 ((u32_t)((netif->hwaddr[4]) & 0xff))) + \ 80 (netif_autoip_data(netif)? netif_autoip_data(netif)->tried_llipaddr : 0)) 88 #define LWIP_AUTOIP_CREATE_SEED_ADDR(netif) \ 106 autoip_set_struct(struct netif *netif, struct autoip *autoip) argument 124 autoip_restart(struct netif *netif) argument 135 autoip_handle_arp_conflict(struct netif *netif) argument 168 autoip_create_addr(struct netif *netif, ip4_addr_t *ipaddr) argument 203 autoip_arp_probe(struct netif *netif) argument 216 autoip_arp_announce(struct netif *netif) argument 227 autoip_bind(struct netif *netif) argument 254 autoip_start(struct netif *netif) argument 298 autoip_start_probing(struct netif *netif) argument 332 autoip_network_changed(struct netif *netif) argument 348 autoip_stop(struct netif *netif) argument 367 struct netif *netif = netif_list; local 453 autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr) argument 511 autoip_supplied_address(const struct netif *netif) argument 521 autoip_accept_packet(struct netif *netif, const ip4_addr_t *addr) argument [all...] |
/barrelfish-2018-10-04/include/lwip2/lwip/apps/ |
H A D | mdns.h | 41 #include "lwip/netif.h" 60 err_t mdns_resp_add_netif(struct netif *netif, const char *hostname, u32_t dns_ttl); 61 err_t mdns_resp_remove_netif(struct netif *netif); 63 err_t mdns_resp_add_service(struct netif *netif, const char *name, const char *service, enum mdns_sd_proto proto, u16_t port, u32_t dns_ttl, service_get_txt_fn_t txt_fn, void *txt_userdata); 65 void mdns_resp_netif_settings_changed(struct netif *netif);
|
/barrelfish-2018-10-04/lib/lwip2/src/netif/ |
H A D | ethernetif.c | 57 #include "netif/ppp/pppoe.h" 66 * as it is already kept in the struct netif. 75 static void ethernetif_input(struct netif *netif); 81 * @param netif the already initialized lwip network interface structure 85 low_level_init(struct netif *netif) 87 struct ethernetif *ethernetif = netif->state; 90 netif->hwaddr_len = ETHARP_HWADDR_LEN; 93 netif [all...] |
/barrelfish-2018-10-04/lib/lwip2/src/barrelfish/ |
H A D | netif_barrelfish.c | 25 #include "netif/etharp.h" 73 static err_t bfnetif_output(struct netif *netif, struct pbuf *p) argument 78 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); 81 MIB2_STATS_NETIF_INC(netif, ifoutucastpkts); 83 MIB2_STATS_NETIF_INC(netif, ifoutnucastpkts); 86 struct bfnetif_state *st = netif->state; 102 static void bfnetif_status_cb(struct netif *netif) argument 104 printf("netif statu 118 bfnetif_poll(struct netif *netif) argument 165 bfnetif_init(struct netif *netif) argument 202 struct netif netif; local [all...] |