Searched defs:optlen (Results 1 - 25 of 26) sorted by relevance

12

/vbox/src/VBox/Devices/Network/slirp/
H A Dtcp_output.c100 unsigned optlen, hdrlen; local
310 * max_linkhdr + sizeof (struct tcpiphdr) + optlen <= MHLEN
312 optlen = 0;
325 optlen = 4;
332 *((u_int32_t *) (opt + optlen)) = RT_H2N_U32( TCPOPT_NOP << 24
336 optlen += 4;
353 u_int32_t *lp = (u_int32_t *)(opt + optlen);
359 optlen += TCPOLEN_TSTAMP_APPA;
362 hdrlen += optlen;
368 if (len > tp->t_maxseg - optlen)
[all...]
H A Dtcp_subr.c474 socklen_t optlen; local
523 optlen = sizeof(int);
524 status = getsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&opt, &optlen);
540 optlen = sizeof(int);
541 status = getsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&opt, &optlen);
H A Dtcp_input.c295 int optlen = 0; local
428 optlen = off - sizeof (struct tcphdr);
439 if (( optlen == TCPOLEN_TSTAMP_APPA
440 || ( optlen > TCPOLEN_TSTAMP_APPA
596 tcp_dooptions(pData, tp, (u_char *)optp, optlen, ti);
851 tcp_dooptions(pData, tp, (u_char *)optp, optlen, ti);
1808 int opt, optlen; local
1812 for (; cnt > 0; cnt -= optlen, cp += optlen)
1818 optlen
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/core/
H A Dgetopt.c104 size_t optlen; local
108 optlen = strlen ( longopt->name );
109 if ( strncmp ( opttext, longopt->name, optlen ) != 0 )
113 if ( opttext[optlen] == '=' ) {
114 argument = &opttext[ optlen + 1 ];
115 } else if ( opttext[optlen] ) {
/vbox/src/VBox/Devices/Network/lwip/src/core/
H A Dtcp_out.c113 * @arg optlen
118 u8_t *optdata, u8_t optlen)
129 LWIP_ASSERT("tcp_enqueue: len == 0 || optlen == 0 (programmer violates API)",
130 len == 0 || optlen == 0);
202 if ((seg->p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) {
279 TCPH_HDRLEN_SET(seg->tcphdr, (5 + optlen / 4));
283 memcpy(seg->dataptr, optdata, optlen);
116 tcp_enqueue(struct tcp_pcb *pcb, void *arg, u16_t len, u8_t flags, u8_t copy, u8_t *optdata, u8_t optlen) argument
/vbox/src/VBox/NetworkServices/NAT/
H A Dproxy_dhcp6ds.c49 static u8_t dhcp6ds_serverid[/* opt */ 2 + /* optlen */ 2 + DUID_LL_LEN];
52 static u8_t dhcp6ds_dns[/* opt */ 2 + /* optlen */ 2 + /* IPv6 addr */ 16];
203 u16_t opt, optlen; local
216 copied = pbuf_copy_partial(p, &optlen, sizeof(optlen), 0);
217 if (copied != sizeof(optlen)) {
222 pbuf_header(p, -(s16_t)sizeof(optlen));
223 optlen = ntohs(optlen);
226 if (optlen >
[all...]
H A Dproxy_rtadvd.c219 int optlen; local
235 optlen = (unsigned int)optlen8 << 3;
236 if (p->len < optlen) {
249 pbuf_header(p, -optlen);
H A Dproxy.c376 socklen_t optlen = sizeof(sndbuf); local
378 status = getsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&sndbuf, &optlen);
383 (char *)&sndbuf, optlen);
H A Dpxudp.c742 socklen_t optlen = (socklen_t)sizeof(sockerr); local
746 SO_ERROR, (char *)&sockerr, &optlen);
H A Dpxdns.c781 socklen_t optlen = (socklen_t)sizeof(sockerr); local
785 SO_ERROR, (char *)&sockerr, &optlen);
H A Dpxping.c1099 socklen_t optlen = (socklen_t)sizeof(sockerr); local
1103 SO_ERROR, (char *)&sockerr, &optlen);
H A Dpxtcp.c1131 socklen_t optlen = (socklen_t)sizeof(pxtcp->sockerr); local
1136 (char *)&pxtcp->sockerr, &optlen);
1680 socklen_t optlen = (socklen_t)sizeof(sockerr); local
1683 (char *)&sockerr, &optlen);
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/os2/
H A Dos2poll.c351 int optlen = sizeof(optval); local
360 SO_TYPE, (char *) &optval, &optlen) == -1)
H A Dos2sock.c689 char* optval, PRInt32* optlen)
693 rv = getsockopt(fd->secret->md.osfd, level, optname, optval, (int *)optlen);
703 const char* optval, PRInt32 optlen)
707 rv = setsockopt(fd->secret->md.osfd, level, optname, optval, optlen);
688 _PR_MD_GETSOCKOPT(PRFileDesc *fd, PRInt32 level, PRInt32 optname, char* optval, PRInt32* optlen) argument
702 _PR_MD_SETSOCKOPT(PRFileDesc *fd, PRInt32 level, PRInt32 optname, const char* optval, PRInt32 optlen) argument
/vbox/src/VBox/Devices/Network/lwip-new/src/core/ipv4/
H A Dip4.c754 * @ param optlen length of ip_options
758 u16_t optlen)
778 if (optlen != 0) {
783 optlen_aligned = ((optlen + 3) & ~3);
792 MEMCPY(p->payload, ip_options, optlen);
793 if (optlen < optlen_aligned) {
795 memset(((char*)p->payload) + optlen, 0, optlen_aligned - optlen);
756 ip_output_if_opt(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, u16_t optlen) argument
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dw32poll.c325 int optlen = sizeof(optval); local
334 SO_TYPE, (char *) &optval, &optlen) == -1)
H A Dw95sock.c426 _PR_MD_GETSOCKOPT(PRFileDesc *fd, PRInt32 level, PRInt32 optname, char* optval, PRInt32* optlen) argument
430 rv = getsockopt((SOCKET)fd->secret->md.osfd, level, optname, optval, optlen);
440 _PR_MD_SETSOCKOPT(PRFileDesc *fd, PRInt32 level, PRInt32 optname, const char* optval, PRInt32 optlen) argument
444 rv = setsockopt((SOCKET)fd->secret->md.osfd, level, optname, optval, optlen);
H A Dw16sock.c537 _PR_MD_GETSOCKOPT(PRFileDesc *fd, PRInt32 level, PRInt32 optname, char* optval, PRInt32* optlen) argument
541 rv = getsockopt((SOCKET)fd->secret->md.osfd, level, optname, optval, (int*)optlen);
551 _PR_MD_SETSOCKOPT(PRFileDesc *fd, PRInt32 level, PRInt32 optname, const char* optval, PRInt32 optlen) argument
555 rv = setsockopt((SOCKET)fd->secret->md.osfd, level, optname, optval, optlen);
H A Dntio.c2056 _PR_MD_GETSOCKOPT(PRFileDesc *fd, PRInt32 level, PRInt32 optname, char* optval, PRInt32* optlen) argument
2060 rv = getsockopt((SOCKET)fd->secret->md.osfd, level, optname, optval, optlen);
2070 _PR_MD_SETSOCKOPT(PRFileDesc *fd, PRInt32 level, PRInt32 optname, const char* optval, PRInt32 optlen) argument
2074 rv = setsockopt((SOCKET)fd->secret->md.osfd, level, optname, optval, optlen);
/vbox/src/VBox/Devices/Network/lwip-new/src/core/
H A Dtcp_out.c91 * @param optlen length of header-options
97 tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen, argument
101 struct pbuf *p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM);
104 (p->len >= TCP_HLEN + optlen));
110 TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), TCP_ACK);
165 u8_t optlen = LWIP_TCP_OPT_LENGTH(optflags); local
175 seg->len = p->tot_len - optlen;
199 TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), flags);
363 u8_t optlen = 0; local
397 optlen
730 u8_t optlen = 0; local
849 u8_t optlen = 0; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/beos/
H A Dbnet.c797 PRInt32 optname, char* optval, PRInt32* optlen)
802 optval, (_PRSockLen_t *)optlen);
813 PRInt32 optname, const char* optval, PRInt32 optlen)
817 rv = setsockopt(fd->secret->md.osfd, level, optname, optval, optlen);
922 // _PRSockLen_t optlen = sizeof(err);
923 // if (getsockopt(osfd, SOL_SOCKET, SO_ERROR, (char *) &err, &optlen) == -1) {
796 _MD_getsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, char* optval, PRInt32* optlen) argument
812 _MD_setsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, const char* optval, PRInt32 optlen) argument
/vbox/src/VBox/Devices/Network/lwip/src/api/
H A Dsockets.c974 int lwip_getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen) argument
984 if( NULL == optval || NULL == optlen ) {
1013 if( *optlen < (socklen_t)sizeof(int) ) {
1032 if( *optlen < (socklen_t)sizeof(int) ) {
1045 if( *optlen < (socklen_t)sizeof(int) ) {
1164 int lwip_setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen) argument
1201 if( optlen < (socklen_t)sizeof(int) ) {
1219 if( optlen < (socklen_t)sizeof(int) ) {
1231 if( optlen < (socklen_t)sizeof(int) ) {
/vbox/src/VBox/Devices/Network/lwip-new/src/api/
H A Dsockets.c180 socklen_t *optlen; member in struct:lwip_setgetsockopt_data
1525 lwip_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) argument
1535 if ((NULL == optval) || (NULL == optlen)) {
1573 if (*optlen < sizeof(int)) {
1579 if (*optlen < sizeof(int)) {
1606 if (*optlen < sizeof(int)) {
1612 if (*optlen < sizeof(u8_t)) {
1617 if (*optlen < sizeof(struct in_addr)) {
1622 if (*optlen < sizeof(u8_t)) {
1641 if (*optlen < sizeo
1971 lwip_setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen) argument
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/mac/
H A Dmacsockotpt.c784 PRStatus _MD_getsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, char* optval, PRInt32* optlen) argument
849 *optlen = sizeof(t_linger);
857 *optlen = sizeof(PRIntn);
861 *optlen = sizeof(PRUint8);
865 *optlen = sizeof(PRUintn);
869 *optlen = sizeof(PRUint8);
877 *optlen = sizeof(struct ip_mreq);
883 *optlen = sizeof(PRUint32);
890 *optlen = sizeof(PRIntn);
893 *optlen
909 _MD_setsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, const char* optval, PRInt32 optlen) argument
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/
H A Dunix.c1295 PRInt32 optname, char* optval, PRInt32* optlen)
1299 rv = getsockopt(fd->secret->md.osfd, level, optname, optval, (_PRSockLen_t *)optlen);
1308 PRInt32 optname, const char* optval, PRInt32 optlen)
1312 rv = setsockopt(fd->secret->md.osfd, level, optname, optval, optlen);
3264 _PRSockLen_t optlen = sizeof(err); local
3267 (char *) &err, &optlen) == -1) {
3291 _PRSockLen_t optlen = sizeof(err);
3292 if (getsockopt(osfd, SOL_SOCKET, SO_ERROR, (char *) &err, &optlen) == -1) {
1294 _MD_getsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, char* optval, PRInt32* optlen) argument
1307 _MD_setsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, const char* optval, PRInt32 optlen) argument

Completed in 136 milliseconds

12