/vbox/src/VBox/Devices/Network/lwip/src/core/ipv4/ |
H A D | ip_addr.c | 35 #include "lwip/netif.h" 47 * @param netif the network interface against which the address is checked 52 u8_t ip_addr_isbroadcast(struct ip_addr *addr, struct netif *netif) argument 62 else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) 67 else if (addr2test == netif->ip_addr.addr) 70 else if (ip_addr_netcmp(addr, &(netif->ip_addr), &(netif->netmask)) 72 && ((addr2test & ~netif->netmask.addr) == 73 (IP_ADDR_BROADCAST_VALUE & ~netif [all...] |
H A D | ip.c | 47 #include "lwip/netif.h" 82 struct netif * 85 struct netif *netif; local 88 for(netif = netif_list; netif != NULL; netif = netif->next) { 90 if (ip_addr_netcmp(dest, &(netif->ip_addr), &(netif 109 struct netif *netif; local 177 struct netif *netif; local 384 ip_output_if(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif) argument 455 struct netif *netif; local [all...] |
H A D | ip_frag.c | 45 #include "lwip/netif.h" 304 * Fragment an IP datagram if too large for the netif. 310 ip_frag(struct pbuf *p, struct netif *netif, struct ip_addr *dest) argument 317 u16_t mtu = netif->mtu; 374 netif->output(netif, header, dest);
|
/vbox/src/VBox/Devices/Network/lwip/src/netif/ |
H A D | loopif.c | 36 #include "netif/loopif.h" 40 #include "netif/tcpdump.h" 49 struct netif *netif = (struct netif *)( ((void **)arg)[ 0 ] ); local 53 netif -> input( r, netif ); 57 loopif_output(struct netif *netif, struct pbuf *p, argument 82 arg[0] = netif; 101 loopif_init(struct netif *netif) argument [all...] |
H A D | ethernetif.c | 47 #include "netif/etharp.h" 61 static void ethernetif_input(struct netif *netif); 62 static err_t ethernetif_output(struct netif *netif, struct pbuf *p, 66 low_level_init(struct netif *netif) argument 68 struct ethernetif *ethernetif = netif->state; 71 netif->hwaddr_len = 6; 74 netif 97 low_level_output(struct netif *netif, struct pbuf *p) argument 137 low_level_input(struct netif *netif) argument 198 ethernetif_output(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr) argument 218 ethernetif_input(struct netif *netif) argument 282 ethernetif_init(struct netif *netif) argument [all...] |
H A D | slipif.c | 29 * This file is built upon the file: src/arch/rtxc/netif/sioslip.c 35 * This is an arch independent SLIP netif. The specific serial hooks must be 39 #include "netif/slipif.h" 60 slipif_output(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr) argument 67 sio_send(SLIP_END, netif->state); 74 sio_send(SLIP_ESC, netif->state); 75 sio_send(SLIP_ESC_END, netif->state); 78 sio_send(SLIP_ESC, netif->state); 79 sio_send(SLIP_ESC_ESC, netif 99 slipif_input(struct netif *netif) argument 181 struct netif *netif = (struct netif *)nf; local 196 slipif_init(struct netif *netif) argument [all...] |
/vbox/src/VBox/Devices/Network/lwip/src/core/ipv6/ |
H A D | ip6.c | 48 #include "lwip/netif.h" 74 struct netif * 77 struct netif *netif; local 79 for(netif = netif_list; netif != NULL; netif = netif->next) { 80 if (ip_addr_netcmp(dest, &(netif->ip_addr), &(netif 98 struct netif *netif; local 159 struct netif *netif; local 261 ip_output_if(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, u8_t ttl, u8_t proto, struct netif *netif) argument 325 struct netif *netif; local [all...] |
/vbox/src/VBox/Devices/Network/lwip-new/src/api/ |
H A D | netifapi.c | 47 if (!netif_add( msg->netif, 67 netif_set_addr( msg->netif, 83 msg->err = msg->msg.common.errtfunc(msg->netif); 86 msg->msg.common.voidfunc(msg->netif); 98 netifapi_netif_add(struct netif *netif, argument 108 msg.msg.netif = netif; 126 netifapi_netif_set_addr(struct netif *netif, argument 148 netifapi_netif_common(struct netif *netif, netifapi_void_fn voidfunc, netifapi_errt_fn errtfunc) argument [all...] |
/vbox/src/VBox/Devices/Network/lwip-new/src/core/ipv6/ |
H A D | ethip6.c | 52 #include "lwip/netif.h" 93 * Send an IPv6 packet on the network using netif->linkoutput 96 * @params netif the lwIP network interface on which to send the packet 103 ethip6_send(struct netif *netif, struct pbuf *p, struct eth_addr *src, struct eth_addr *dst) argument 107 LWIP_ASSERT("netif->hwaddr_len must be 6 for ethip6!", 108 (netif->hwaddr_len == 6)); 114 return netif->linkoutput(netif, p); 127 * @param netif Th 136 ethip6_output(struct netif *netif, struct pbuf *q, ip6_addr_t *ip6addr) argument [all...] |
H A D | icmp6.c | 51 #include "lwip/netif.h" 82 * @param inp the netif on which this packet was received 85 icmp6_input(struct pbuf *p, struct netif *inp) 220 icmp6_proxy_input(struct pbuf *p, struct netif *inp) 339 struct netif *netif; local 361 /* Get the destination address and netif for this ICMP message. */ 373 netif = ip6_route(reply_src, reply_dest); 374 if (netif == NULL) { 382 netif [all...] |
H A D | ip6.c | 49 #include "lwip/netif.h" 76 * a netif following a sequence of heuristics: 77 * 1) if there is only 1 netif, return it 78 * 2) if the destination is a link-local address, try to match the src address to a netif. 83 * 5) tries to match the source address to the netif 84 * 6) returns the default netif, if configured 88 * @return the netif on which to send to reach dest 90 struct netif * 93 struct netif *netif; local 167 struct netif *netif; local 211 ip6_select_source_address(struct netif *netif, ip6_addr_t * dest) argument 297 struct netif *netif; local 418 struct netif *netif; local 889 ip6_output_if(struct pbuf *p, ip6_addr_t *src, ip6_addr_t *dest, u8_t hl, u8_t tc, u8_t nexth, struct netif *netif) argument 995 struct netif *netif; local 1055 struct netif *netif; local [all...] |
H A D | mld6.c | 56 #include "lwip/netif.h" 79 static struct mld_group * mld6_new_group(struct netif *ifp, ip6_addr_t *addr); 88 * @param netif network interface on which stop MLD processing 91 mld6_stop(struct netif *netif) argument 101 if (group->netif == netif) { 111 if (netif->mld_mac_filter != NULL) { 112 netif->mld_mac_filter(netif, 132 mld6_report_groups(struct netif *netif) argument 330 struct netif *netif; local 356 mld6_netif_joingroup(struct netif *netif, ip6_addr_t *groupaddr) argument 398 struct netif *netif; local 424 mld6_netif_leavegroup(struct netif *netif, ip6_addr_t *groupaddr) argument [all...] |
/vbox/src/VBox/Devices/Network/lwip-new/src/include/ipv4/lwip/ |
H A D | igmp.h | 40 #include "lwip/netif.h" 55 /* MAC Filter Actions, these are passed to a netif's 76 struct netif *netif; member in struct:igmp_group 91 err_t igmp_start(struct netif *netif); 92 err_t igmp_stop(struct netif *netif); 93 void igmp_report_groups(struct netif *netif); [all...] |
/vbox/src/VBox/Devices/Network/lwip-new/src/include/ipv6/lwip/ |
H A D | mld6.h | 51 #include "lwip/netif.h" 62 struct netif *netif; member in struct:mld_group 96 /* MAC Filter Actions, these are passed to a netif's 103 err_t mld6_stop(struct netif *netif); 104 void mld6_report_groups(struct netif *netif); 106 struct mld_group *mld6_lookfor_group(struct netif *ifp, ip6_addr_t *addr); 107 void mld6_input(struct pbuf *p, struct netif *in [all...] |
/vbox/src/VBox/Devices/Network/lwip/src/include/lwip/ |
H A D | tcpip.h | 43 err_t tcpip_input(struct pbuf *p, struct netif *inp); 65 struct netif *netif; member in struct:tcpip_msg::__anon14887::__anon14888
|
H A D | netif.h | 51 /** TODO: define the use (where, when, whom) of netif flags */ 58 /** if set, the netif has broadcast capability */ 60 /** if set, the netif is one end of a point-to-point connection */ 72 struct netif { struct 74 struct netif *next; 83 err_t (* input)(struct pbuf *p, struct netif *inp); 87 err_t (* output)(struct netif *netif, struct pbuf *p, 92 err_t (* linkoutput)(struct netif *netif, struc [all...] |
/vbox/src/VBox/Devices/Network/lwip/src/core/ |
H A D | netif.c | 43 #include "lwip/netif.h" 47 struct netif *netif_list = NULL; 48 struct netif *netif_default = NULL; 53 * @param netif a pre-allocated netif structure 54 * @param ipaddr IP address for the new netif 55 * @param netmask network mask for the new netif 56 * @param gw default gateway IP address for the new netif 57 * @param state opaque data passed to the new netif 62 * @return netif, o 65 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 111 netif_set_addr(struct netif *netif,struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw) argument 119 netif_remove(struct netif * netif) argument 153 struct netif *netif; local 175 netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr) argument 235 netif_set_gw(struct netif *netif, struct ip_addr *gw) argument 247 netif_set_netmask(struct netif *netif, struct ip_addr *netmask) argument 262 netif_set_default(struct netif *netif) argument 288 netif_set_up(struct netif *netif) argument 299 netif_is_up(struct netif *netif) argument 312 netif_set_down(struct netif *netif) argument [all...] |
H A D | raw.c | 49 #include "lwip/netif.h" 77 * @param netif network interface on which the datagram was received. 86 raw_input(struct pbuf *p, struct netif *inp) 201 struct netif *netif; local 226 if ((netif = ip_route(ipaddr)) == NULL) { 240 src_ip = &(netif->ip_addr); 246 err = ip_output_if (q, src_ip, ipaddr, pcb->ttl, pcb->tos, pcb->protocol, netif);
|
H A D | tcp_out.c | 50 #include "lwip/netif.h" 522 struct netif *netif; local 542 netif = ip_route(&(pcb->remote_ip)); 543 if (netif == NULL) { 546 ip_addr_set(&(pcb->local_ip), &(netif->ip_addr));
|
/vbox/src/VBox/NetworkServices/NAT/ |
H A D | pxremap.c | 36 #include "lwip/netif.h" 37 #include "netif/etharp.h" /* proxy arp hook */ 50 proxy_ip4_is_mapped_loopback(struct netif *netif, const ip_addr_t *dst, ip_addr_t *lo) argument 62 if (!ip_addr_netcmp(dst, &netif->ip_addr, &netif->netmask)) { 66 /* XXX: TODO: check netif is a proxying netif! */ 68 off = ntohl(ip4_addr_get_u32(dst) & ~ip4_addr_get_u32(&netif->netmask)); 88 pxremap_proxy_arp(struct netif *neti argument 100 pxremap_ip4_divert(struct netif *netif, ip_addr_t *dst) argument 116 struct netif *netif; local 146 struct netif *netif; local 188 proxy_ip6_is_mapped_loopback(struct netif *netif, ip6_addr_t *dst) argument 219 pxremap_proxy_na(struct netif *netif, ip6_addr_t *dst) argument 230 pxremap_ip6_divert(struct netif *netif, ip6_addr_t *dst) argument 246 struct netif *netif; local 291 struct netif *netif; local [all...] |
/vbox/src/VBox/Devices/Network/lwip-new/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 133 autoip_set_struct(struct netif *netif, struct autoip *autoip) argument 150 autoip_restart(struct netif *netif) argument 160 autoip_handle_arp_conflict(struct netif *netif) argument 196 autoip_create_addr(struct netif *netif, ip_addr_t *ipaddr) argument 229 autoip_arp_probe(struct netif *netif) argument 242 autoip_arp_announce(struct netif *netif) argument 255 autoip_bind(struct netif *netif) argument 285 autoip_start(struct netif *netif) argument 333 autoip_start_probing(struct netif *netif) argument 367 autoip_network_changed(struct netif *netif) argument 381 autoip_stop(struct netif *netif) argument 394 struct netif *netif = netif_list; local 478 autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr) argument [all...] |
H A D | ip4_addr.c | 41 #include "lwip/netif.h" 51 * @param netif the network interface against which the address is checked 55 ip4_addr_isbroadcast(u32_t addr, const struct netif *netif) argument 65 } else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) { 70 } else if (addr == ip4_addr_get_u32(&netif->ip_addr)) { 73 } else if (ip_addr_netcmp(&ipaddr, &(netif->ip_addr), &(netif->netmask)) 75 && ((addr & ~ip4_addr_get_u32(&netif->netmask)) == 76 (IPADDR_BROADCAST & ~ip4_addr_get_u32(&netif [all...] |
/vbox/src/VBox/Devices/Network/lwip-new/src/core/ |
H A D | raw.c | 48 #include "lwip/netif.h" 78 raw_input(struct pbuf *p, struct netif *inp) 233 struct netif *netif; local 271 netif = ipX_route(PCB_ISIPV6(pcb), &pcb->local_ip, dst_ip); 272 if (netif == NULL) { 289 if (!ip_get_option(pcb, SOF_BROADCAST) && ip_addr_isbroadcast(ipaddr, netif)) { 302 src_ip = ipX_netif_get_local_ipX(PCB_ISIPV6(pcb), netif, dst_ip); 316 NETIF_SET_HWADDRHINT(netif, &pcb->addr_hint); 317 err = ipX_output_if(PCB_ISIPV6(pcb), q, ipX_2_ip(src_ip), ipX_2_ip(dst_ip), pcb->ttl, pcb->tos, pcb->protocol, netif); [all...] |
/vbox/src/VBox/Devices/Network/lwip-new/src/include/lwip/ |
H A D | netifapi.h | 36 #include "lwip/netif.h" 44 typedef void (*netifapi_void_fn)(struct netif *netif); 45 typedef err_t (*netifapi_errt_fn)(struct netif *netif); 52 struct netif *netif; member in struct:netifapi_msg_msg 76 err_t netifapi_netif_add ( struct netif *netif, 84 err_t netifapi_netif_set_addr ( struct netif *neti [all...] |
H A D | tcpip.h | 45 #include "lwip/netif.h" 104 err_t tcpip_input(struct pbuf *p, struct netif *inp); 164 struct netif *netif; member in struct:tcpip_msg::__anon14920::__anon14921
|