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

1234

/external/syslinux/core/lwip/src/include/lwip/
H A Dpbuf.h58 PBUF_RAM, /* pbuf data is stored in RAM */
59 PBUF_ROM, /* pbuf data is stored in ROM */
60 PBUF_REF, /* pbuf comes from the pbuf pool */
61 PBUF_POOL /* pbuf payload refers to RAM */
67 /** indicates this is a custom pbuf: pbuf_free and pbuf_header handle such a
68 a pbuf differently */
70 /** indicates this pbuf is UDP multicast to be looped back */
73 struct pbuf { struct
74 /** next pbuf i
113 struct pbuf pbuf; member in struct:pbuf_custom
[all...]
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, u16_t *length);
79 err_t snmp_asn1_dec_u32t(struct pbuf *p, u16_t ofs, u16_t len, u32_t *value);
80 err_t snmp_asn1_dec_s32t(struct pbuf *p, u16_t ofs, u16_t len, s32_t *value);
81 err_t snmp_asn1_dec_oid(struct pbuf *p, u16_t ofs, u16_t len, struct snmp_obj_id *oid);
82 err_t snmp_asn1_dec_raw(struct pbuf *p, u16_t ofs, u16_t len, u16_t raw_len, u8_t *raw);
88 err_t snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type);
89 err_t snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length);
90 err_t snmp_asn1_enc_u32t(struct pbuf *
[all...]
H A Draw.h39 #include "lwip/pbuf.h"
57 * If returning 1, the callback is responsible for freeing the pbuf
60 typedef u8_t (*raw_recv_fn)(void *arg, struct raw_pcb *pcb, struct pbuf *p,
85 err_t raw_sendto (struct raw_pcb *pcb, struct pbuf *p, ip_addr_t *ipaddr);
86 err_t raw_send (struct raw_pcb *pcb, struct pbuf *p);
89 u8_t raw_input (struct pbuf *p, struct netif *inp);
H A Dudp.h39 #include "lwip/pbuf.h"
75 * The callback is responsible for freeing the pbuf
78 * ATTENTION: Be aware that 'addr' points into the pbuf 'p' so freeing this pbuf
87 typedef void (*udp_recv_fn)(void *arg, struct udp_pcb *pcb, struct pbuf *p,
132 err_t udp_sendto_if (struct udp_pcb *pcb, struct pbuf *p,
135 err_t udp_sendto (struct udp_pcb *pcb, struct pbuf *p,
137 err_t udp_send (struct udp_pcb *pcb, struct pbuf *p);
140 err_t udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf *p,
144 err_t udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *
[all...]
H A Dnetif.h44 #include "lwip/pbuf.h"
106 * @param p The received packet, copied into a pbuf
109 typedef err_t (*netif_input_fn)(struct pbuf *p, struct netif *inp);
118 typedef err_t (*netif_output_fn)(struct netif *netif, struct pbuf *p,
126 typedef err_t (*netif_linkoutput_fn)(struct netif *netif, struct pbuf *p);
154 * the pbuf as-is on the link medium. */
220 struct pbuf *loop_first;
221 struct pbuf *loop_last;
304 err_t netif_loop_output(struct netif *netif, struct pbuf *p, ip_addr_t *dest_ip);
H A Dtcpip.h41 #include "lwip/pbuf.h"
89 err_t tcpip_input(struct pbuf *p, struct netif *inp);
102 err_t pbuf_free_callback(struct pbuf *p);
136 struct pbuf *p;
/external/syslinux/core/lwip/src/include/ipv4/lwip/
H A Dip_frag.h38 #include "lwip/pbuf.h"
56 struct pbuf *p;
65 struct pbuf * ip_reass(struct pbuf *p);
70 /** A custom pbuf that holds a reference to another pbuf, which is freed
71 * when this custom pbuf is freed. This is used to create a custom PBUF_REF
72 * that points into the original pbuf. */
76 /** pointer to the original pbuf that is referenced */
77 struct pbuf *origina
[all...]
H A Dinet_chksum.h37 #include "lwip/pbuf.h"
74 u16_t inet_chksum_pbuf(struct pbuf *p);
75 u16_t inet_chksum_pseudo(struct pbuf *p,
78 u16_t inet_chksum_pseudo_partial(struct pbuf *p,
H A Dicmp.h36 #include "lwip/pbuf.h"
101 void icmp_input(struct pbuf *p, struct netif *inp);
102 void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t);
103 void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t);
H A Dip.h38 #include "lwip/pbuf.h"
60 in the pbuf. This is used when TCP retransmits. */
173 err_t ip_input(struct pbuf *p, struct netif *inp);
174 err_t ip_output(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
176 err_t ip_output_if(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
180 err_t ip_output_hinted(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
184 err_t ip_output_if_opt(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
202 void ip_debug_print(struct pbuf *p);
/external/mesa3d/src/glx/apple/
H A Dapple_glx_pbuffer.c74 struct apple_glx_pbuffer *pbuf = &d->types.pbuffer; local
79 cglerr = apple_cgl.set_pbuffer(ac->context_obj, pbuf->buffer_obj, 0, 0, 0);
87 apple_glapi_oglfw_viewport_scissor(0, 0, pbuf->width, pbuf->height);
99 struct apple_glx_pbuffer *pbuf = &d->types.pbuffer; local
106 apple_cgl.destroy_pbuffer(pbuf->buffer_obj);
107 XFreePixmap(dpy, pbuf->xid);
112 apple_glx_pbuffer_destroy(Display * dpy, GLXPbuffer pbuf) argument
114 return !apple_glx_drawable_destroy_by_type(dpy, pbuf,
125 struct apple_glx_pbuffer *pbuf local
265 struct apple_glx_pbuffer *pbuf; local
[all...]
/external/syslinux/core/lwip/src/core/
H A Dpbuf.c5 * Packets are built from the pbuf data structure. It supports dynamic
11 * list. This is called a "pbuf chain".
16 * So, a packet queue consists of one or more pbuf chains, each of
20 * The differences between a pbuf chain and a packet queue are very
23 * The last pbuf of a packet has a ->tot_len field that equals the
25 * pbuf of a packet has a ->next field other than NULL, more packets
28 * Therefore, looping through a pbuf of a single packet, has an
70 #include "lwip/pbuf.h"
82 #define SIZEOF_STRUCT_PBUF LWIP_MEM_ALIGN_SIZE(sizeof(struct pbuf))
154 * Allocates a pbuf o
[all...]
/external/ltp/testcases/kernel/syscalls/open/
H A Dopen09.c47 char pbuf[BUFSIZ]; local
61 ret = read(fildes, pbuf, 1);
73 ret = write(fildes, pbuf, 1);
/external/syslinux/core/lwip/src/netif/ppp/
H A Dvj.h151 extern u_int vj_compress_tcp (struct vjcompress *comp, struct pbuf *pb);
153 extern int vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp);
154 extern int vj_uncompress_tcp (struct pbuf **nb, struct vjcompress *comp);
/external/ipsec-tools/src/racoon/
H A Disakmp_newg.c89 vchar_t *pbuf = NULL;
92 if ((pbuf = isakmp_parse(msg)) == NULL)
95 for (pa = (struct isakmp_parse_t *)pbuf->v;
106 vfree(pbuf);
117 vfree(pbuf);
131 vfree(pbuf);
135 vfree(pbuf);
H A Dremoteconf.c498 char buf[1024], *pbuf; local
499 pbuf = buf;
500 pbuf += sprintf (pbuf, "\tpeers_identifier %s",
503 pbuf += sprintf (pbuf, " \"%s\"", id->id->v);
513 char buf[1024], *pbuf; local
515 pbuf = buf;
516 pbuf += sprintf(pbuf, "remot
[all...]
/external/syslinux/core/lwip/src/netif/
H A Dethernetif.c52 #include "lwip/pbuf.h"
109 * contained in the pbuf that is passed to the function. This pbuf
124 low_level_output(struct netif *netif, struct pbuf *p)
127 struct pbuf *q;
136 /* Send the data from the pbuf to the interface, one pbuf at a
137 time. The size of the data in each pbuf is kept in the ->len
154 * Should allocate a pbuf and transfer the bytes of the incoming
155 * packet from the interface into the pbuf
[all...]
H A Dslipif.c51 #include "lwip/pbuf.h"
74 /* q is the whole pbuf chain for a packet, p is the current pbuf in the chain */
75 struct pbuf *p, *q;
81 * Send a pbuf doing the necessary SLIP encapsulation
86 * @param p the pbuf chaing packet to send
91 slipif_output(struct netif *netif, struct pbuf *p, ip_addr_t *ipaddr)
94 struct pbuf *q;
106 /* Send pbuf out on the serial I/O device. */
162 static struct pbuf *
[all...]
/external/ltp/testcases/kernel/syscalls/fork/
H A Dfork08.c53 static char pbuf[10]; variable
165 sprintf(pbuf, "%d", getpid());
166 strcat(fnamebuf, pbuf);
/external/ltp/testcases/kernel/syscalls/write/
H A Dwrite05.c78 char pbuf[BUFSIZ]; local
95 if (write(-1, pbuf, 1) != -1) {
138 if (write(pipefildes[1], pbuf, 1) != -1) {
/external/syslinux/core/lwip/src/include/netif/
H A Dppp_oe.h180 void pppoe_disc_input(struct netif *netif, struct pbuf *p);
181 void pppoe_data_input(struct netif *netif, struct pbuf *p);
183 err_t pppoe_xmit(struct pppoe_softc *sc, struct pbuf *pb);
H A Detharp.h42 #include "lwip/pbuf.h"
161 /** Define this to 1 and define LWIP_ARP_FILTER_NETIF_FN(pbuf, netif, type)
177 struct pbuf *p;
185 err_t etharp_output(struct netif *netif, struct pbuf *q, ip_addr_t *ipaddr);
186 err_t etharp_query(struct netif *netif, ip_addr_t *ipaddr, struct pbuf *q);
209 err_t ethernet_input(struct pbuf *p, struct netif *netif);
/external/ipsec-tools/src/libipsec/
H A Dpolicy_parse.y100 static u_int8_t *pbuf = NULL; /* sadb_x_policy buffer */
101 static int tlen = 0; /* total length of pbuf */
102 static int offset = 0; /* offset of pbuf */
476 if (pbuf) {
477 free(pbuf);
480 pbuf = malloc(sizeof(struct sadb_x_policy));
481 if (pbuf == NULL) {
487 memset(pbuf, 0, tlen);
488 p = (struct sadb_x_policy *)pbuf;
525 n = realloc(pbuf, tle
[all...]
/external/syslinux/core/fs/pxe/
H A Dcore.c139 void *pbuf; local
148 pbuf = netbuf_alloc(nbuf, len);
149 if (!pbuf) {
150 ddprintf("pbuf allocation error\n");
154 memcpy(pbuf, data, len);
181 void *pbuf; local
190 pbuf = netbuf_alloc(nbuf, len);
191 if (!pbuf) {
192 ddprintf("pbuf allocation error\n");
196 memcpy(pbuf, dat
[all...]
/external/syslinux/core/lwip/src/core/ipv4/
H A Dicmp.c55 /** Small optimization: set to 0 if incoming PBUF_POOL pbuf always can be
65 static void icmp_send_response(struct pbuf *p, u8_t type, u8_t code);
77 icmp_input(struct pbuf *p, struct netif *inp)
149 struct pbuf *r;
158 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed\n"));
161 LWIP_ASSERT("check that first pbuf can hold struct the ICMP header",
165 LWIP_ASSERT("icmp_input: copying to new pbuf failed\n", 0);
257 icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t)
271 icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t)
287 icmp_send_response(struct pbuf *
[all...]

Completed in 391 milliseconds

1234