Searched refs:pbuf (Results 1 - 25 of 208) sorted by relevance

123456789

/barrelfish-2018-10-04/lib/lwip/src/barrelfish/
H A Dmem_barrelfish.h29 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 Dmem_barrelfish.c28 #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 Dpbuf.h46 #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 Dip_frag.h38 #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 Dinet_chksum.h37 #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 Draw.h39 #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 Dsnmp_asn1.h40 #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 Dicmp.h41 #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 Dicmp6.h45 #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 Dpbuf.h3 * 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 Dip4_frag.h43 #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 Dethip6.h49 #include "lwip/pbuf.h"
60 err_t ethip6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr);
H A Dip6_frag.h45 #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 Dinet_chksum.h42 #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 Dip6.h51 #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 Dnd6.h61 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 Dip4.h45 #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 Dnetif.h73 * @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 Dnetbufs.h22 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 Dudpechoserver.c32 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 Dethernet.h46 #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 Dlowpan6.h49 #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 Dmdns_priv.h41 #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 Dsnmp_pbuf_stream.c3 * 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 Dbio_ndef.c100 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...]

Completed in 118 milliseconds

123456789