/barrelfish-2018-10-04/lib/lwip/src/barrelfish/ |
H A D | mem_barrelfish.h | 29 struct pbuf *mem_barrelfish_get_pbuf(uint64_t pbuf_id); 30 uint64_t mem_barrelfish_put_pbuf(struct pbuf *pbuf); 31 errval_t mem_barrelfish_replace_pbuf(struct pbuf *p); 32 struct pbuf * get_pbuf_for_packet(void);
|
H A D | mem_barrelfish.c | 28 #include "lwip/pbuf.h" 42 // pbuf chain. 61 struct pbuf *p; 70 struct pbuf * get_pbuf_for_packet(void) 72 struct pbuf *p; 73 // We allocate a pbuf chain of pbufs from the pool. 81 // Some sanity checks on the pbuf 89 /** Add a pbuf to the rx ring. */ 90 static errval_t add_pbuf_to_rx_ring(struct pbuf *p) 96 // We allocate a pbuf chai 245 mem_barrelfish_put_pbuf(struct pbuf *pbuf) argument [all...] |
/barrelfish-2018-10-04/include/lwip/lwip/ |
H A D | pbuf.h | 46 #define PBUF_PKT_SIZE 2048 // NOTE: size of each pbuf struct. 59 PBUF_RAM, /* pbuf data is stored in RAM */ 60 PBUF_ROM, /* pbuf data is stored in ROM */ 61 PBUF_REF, /* pbuf comes from the pbuf pool */ 62 PBUF_POOL /* pbuf payload refers to RAM */ 69 struct pbuf { struct 70 /** next pbuf in singly linked pbuf chain */ 71 struct pbuf *nex [all...] |
H A D | ip_frag.h | 38 #include "lwip/pbuf.h" 56 struct pbuf *p; 65 struct pbuf *ip_reass(struct pbuf *p); 69 err_t ip_frag(struct pbuf *p, struct netif *netif, struct ip_addr *dest);
|
H A D | inet_chksum.h | 37 #include "lwip/pbuf.h" 45 u16_t inet_chksum_pbuf(struct pbuf *p); 46 u16_t inet_chksum_pseudo(struct pbuf *p, 49 u16_t inet_chksum_pseudo_partial(struct pbuf *p,
|
H A D | raw.h | 39 #include "lwip/pbuf.h" 63 * If returning 1, the callback is responsible for freeing the pbuf 66 u8_t(*recv) (void *arg, struct raw_pcb * pcb, struct pbuf * p, 81 struct pbuf * p, 83 err_t raw_sendto(struct raw_pcb *pcb, struct pbuf *p, 85 err_t raw_send(struct raw_pcb *pcb, struct pbuf *p); 88 u8_t raw_input(struct pbuf *p, struct netif *inp);
|
H A D | snmp_asn1.h | 40 #include "lwip/pbuf.h" 77 err_t snmp_asn1_dec_type(struct pbuf *p, u16_t ofs, u8_t * type); 78 err_t snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t * octets_used, 80 err_t snmp_asn1_dec_u32t(struct pbuf *p, u16_t ofs, u16_t len, 82 err_t snmp_asn1_dec_s32t(struct pbuf *p, u16_t ofs, u16_t len, 84 err_t snmp_asn1_dec_oid(struct pbuf *p, u16_t ofs, u16_t len, 86 err_t snmp_asn1_dec_raw(struct pbuf *p, u16_t ofs, u16_t len, u16_t raw_len, 94 err_t snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type); 95 err_t snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length); 96 err_t snmp_asn1_enc_u32t(struct pbuf * [all...] |
/barrelfish-2018-10-04/include/lwip2/lwip/ |
H A D | icmp.h | 41 #include "lwip/pbuf.h" 80 void icmp_input(struct pbuf *p, struct netif *inp); 81 void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t); 82 void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t); 88 #define icmp_port_unreach(isipv6, pbuf) ((isipv6) ? \ 89 icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT) : \ 90 icmp_dest_unreach(pbuf, ICMP_DUR_PORT)) 92 #define icmp_port_unreach(isipv6, pbuf) do{ if(!(isipv6)) { icmp_dest_unreach(pbuf, ICMP_DUR_PORT);}}while(0) 94 #define icmp_port_unreach(isipv6, pbuf) d [all...] |
H A D | icmp6.h | 45 #include "lwip/pbuf.h" 56 void icmp6_input(struct pbuf *p, struct netif *inp); 57 void icmp6_dest_unreach(struct pbuf *p, enum icmp6_dur_code c); 58 void icmp6_packet_too_big(struct pbuf *p, u32_t mtu); 59 void icmp6_time_exceeded(struct pbuf *p, enum icmp6_te_code c); 60 void icmp6_param_problem(struct pbuf *p, enum icmp6_pp_code c, u32_t pointer);
|
H A D | pbuf.h | 3 * pbuf API 48 /** LWIP_SUPPORT_CUSTOM_PBUF==1: Custom pbufs behave much like their pbuf type 58 /* @todo: We need a mechanism to prevent wasting memory in every pbuf 69 * @ingroup pbuf 70 * Enumeration of pbuf layers 74 * Use this if you intend to pass the pbuf to functions like udp_send(). 78 * Use this if you intend to pass the pbuf to functions like raw_send(). 82 * Use this if you intend to pass the pbuf to functions like ethernet_output(). 88 * Use this if you intend to pass the pbuf to functions like netif->linkoutput(). 98 * @ingroup pbuf 142 struct pbuf { struct 195 struct pbuf pbuf; member in struct:pbuf_custom [all...] |
H A D | ip4_frag.h | 43 #include "lwip/pbuf.h" 63 struct pbuf *p; 72 struct pbuf * ip4_reass(struct pbuf *p); 79 /** A custom pbuf that holds a reference to another pbuf, which is freed 80 * when this custom pbuf is freed. This is used to create a custom PBUF_REF 81 * that points into the original pbuf. */ 85 /** pointer to the original pbuf that is referenced */ 86 struct pbuf *origina [all...] |
H A D | ethip6.h | 49 #include "lwip/pbuf.h" 60 err_t ethip6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr);
|
H A D | ip6_frag.h | 45 #include "lwip/pbuf.h" 68 or just point to its original location in the first pbuf? */ 82 struct pbuf *p; 92 struct pbuf *ip6_reass(struct pbuf *p); 100 /** A custom pbuf that holds a reference to another pbuf, which is freed 101 * when this custom pbuf is freed. This is used to create a custom PBUF_REF 102 * that points into the original pbuf. */ 106 /** pointer to the original pbuf tha [all...] |
H A D | inet_chksum.h | 42 #include "lwip/pbuf.h" 75 u16_t inet_chksum_pbuf(struct pbuf *p); 81 u16_t inet_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 83 u16_t inet_chksum_pseudo_partial(struct pbuf *p, u8_t proto, 88 u16_t ip6_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 90 u16_t ip6_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, 95 u16_t ip_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 97 u16_t ip_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len,
|
H A D | ip6.h | 51 #include "lwip/pbuf.h" 62 err_t ip6_input(struct pbuf *p, struct netif *inp); 63 err_t ip6_output(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 65 err_t ip6_output_if(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 67 err_t ip6_output_if_src(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 70 err_t ip6_output_hinted(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 74 err_t ip6_options_add_hbh_ra(struct pbuf * p, u8_t nexth, u8_t value); 81 void ip6_debug_print(struct pbuf *p);
|
H A D | nd6.h | 61 struct pbuf; 65 void nd6_input(struct pbuf *p, struct netif *inp); 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);
|
H A D | ip4.h | 45 #include "lwip/pbuf.h" 71 err_t ip4_input(struct pbuf *p, struct netif *inp); 72 err_t ip4_output(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 74 err_t ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 76 err_t ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 79 err_t ip4_output_hinted(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 83 err_t ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 86 err_t ip4_output_if_opt_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 98 void ip4_debug_print(struct pbuf *p);
|
/barrelfish-2018-10-04/include/net/ |
H A D | netif.h | 73 * @param pbuf packet buffer to be added 77 errval_t net_if_add_rx_buf(struct netif *netif, struct pbuf *pbuf); 83 * @param pbuf packt boffer to be transmitted 87 errval_t net_if_add_tx_buf(struct netif *netif, struct pbuf *pbuf);
|
H A D | netbufs.h | 22 struct pbuf; 66 struct pbuf *net_buf_alloc(struct net_buf_pool *bp); 72 void net_buf_free(struct pbuf *p); 81 struct pbuf *net_buf_get_by_region(struct net_buf_pool *bp,
|
/barrelfish-2018-10-04/usr/echoserver/ |
H A D | udpechoserver.c | 32 static void echo_recv_handler(void *arg, struct udp_pcb *pcb, struct pbuf *pbuf, argument 35 if ((pbuf->tot_len > 2) && (pbuf->tot_len < 200)) { 36 if (strncmp(pbuf->payload, "stat", 4) == 0) { 39 if (strncmp(pbuf->payload, "cardinfo", 8) == 0) { 45 udp_sendto(pcb, pbuf, &destaddr, port); 46 pbuf_free(pbuf); 75 struct pbuf * test_pbuf = pbuf_alloc(PBUF_RAW, 256, PBUF_RAM);
|
/barrelfish-2018-10-04/include/lwip2/netif/ |
H A D | ethernet.h | 46 #include "lwip/pbuf.h" 56 /** Define this to 1 and define LWIP_ARP_FILTER_NETIF_FN(pbuf, netif, type) 66 err_t ethernet_input(struct pbuf *p, struct netif *netif); 67 err_t ethernet_output(struct netif* netif, struct pbuf* p, const struct eth_addr* src, const struct eth_addr* dst, u16_t eth_type);
|
H A D | lowpan6.h | 49 #include "lwip/pbuf.h" 67 err_t lowpan4_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr); 69 err_t lowpan6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr); 70 err_t lowpan6_input(struct pbuf * p, struct netif *netif); 77 err_t tcpip_6lowpan_input(struct pbuf *p, struct netif *inp);
|
/barrelfish-2018-10-04/include/lwip2/lwip/apps/ |
H A D | mdns_priv.h | 41 #include "lwip/pbuf.h" 60 u16_t mdns_readname(struct pbuf *p, u16_t offset, struct mdns_domain *domain); 62 u16_t mdns_compress_domain(struct pbuf *pbuf, u16_t *offset, struct mdns_domain *domain);
|
/barrelfish-2018-10-04/lib/lwip2/src/apps/snmp/ |
H A D | snmp_pbuf_stream.c | 3 * SNMP pbuf stream wrapper implementation (internal API, do not use in client code). 47 snmp_pbuf_stream_init(struct snmp_pbuf_stream* pbuf_stream, struct pbuf* p, u16_t offset, u16_t length) 51 pbuf_stream->pbuf = p; 63 if (pbuf_copy_partial(pbuf_stream->pbuf, data, 1, pbuf_stream->offset) == 0) { 86 if (pbuf_take_at(pbuf_stream->pbuf, buf, buf_len, pbuf_stream->offset) != ERR_OK) { 115 struct pbuf* pbuf = pbuf_skip(pbuf_stream->pbuf, pbuf_stream->offset, &target_offset); local 117 if ((pbuf == NULL) || (pbuf [all...] |
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/asn1/ |
H A D | bio_ndef.c | 100 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 101 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg); 102 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 103 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg); 159 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) argument 173 *pbuf = p; 179 *plen = *ndef_aux->boundary - *pbuf; 184 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg) argument 197 *pbuf = NULL; 202 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, in argument 212 ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg) argument [all...] |