Home
last modified time | relevance | path

Searched refs:opt_len (Results 1 – 25 of 69) sorted by relevance

123

/external/tcpdump/
Dprint-mptcp.c170 const u_char *opt _U_, u_int opt_len _U_, u_char flags _U_) in dummy_print()
177 const u_char *opt, u_int opt_len, u_char flags) in mp_capable_print() argument
181 if (!(opt_len == 12 && (flags & TH_SYN)) && in mp_capable_print()
182 !(opt_len == 20 && (flags & (TH_SYN | TH_ACK)) == TH_ACK)) in mp_capable_print()
193 if (opt_len == 20) /* ACK */ in mp_capable_print()
201 const u_char *opt, u_int opt_len, u_char flags) in mp_join_print() argument
205 if (!(opt_len == 12 && (flags & TH_SYN)) && in mp_join_print()
206 !(opt_len == 16 && (flags & (TH_SYN | TH_ACK)) == (TH_SYN | TH_ACK)) && in mp_join_print()
207 !(opt_len == 24 && (flags & TH_ACK))) in mp_join_print()
210 if (opt_len != 24) { in mp_join_print()
[all …]
Dprint-pgm.c157 uint8_t opt_type, opt_len; in pgm_print() local
441 opt_len = *bp++; in pgm_print()
442 if (opt_len != 4) { in pgm_print()
443 ND_PRINT((ndo, "[Bad OPT_LENGTH option, length %u != 4]", opt_len)); in pgm_print()
465 opt_len = *bp++; in pgm_print()
466 if (opt_len < PGM_MIN_OPT_LEN) { in pgm_print()
467 ND_PRINT((ndo, "[Bad option, length %u < %u]", opt_len, in pgm_print()
471 if (opts_len < opt_len) { in pgm_print()
475 if (!ND_TTEST2(*bp, opt_len - 2)) { in pgm_print()
483 if (opt_len != PGM_OPT_LENGTH_LEN) { in pgm_print()
[all …]
Dprint-geneve.c110 uint8_t opt_len; in geneve_opts_print() local
117 opt_len = 4 + ((*(bp + 3) & OPT_LEN_MASK) * 4); in geneve_opts_print()
121 opt_type & OPT_TYPE_CRITICAL ? "(C)" : "", opt_len)); in geneve_opts_print()
123 if (opt_len > len) { in geneve_opts_print()
128 if (ndo->ndo_vflag > 1 && opt_len > 4) { in geneve_opts_print()
134 for (i = 4; i < opt_len; i += 4) { in geneve_opts_print()
140 bp += opt_len; in geneve_opts_print()
141 len -= opt_len; in geneve_opts_print()
/external/rust/crates/rayon/src/
Drange_inclusive.rs112 fn opt_len(&self) -> Option<usize> {
113 convert!(self.opt_len())
197 fn opt_len(&self) -> Option<usize> { in opt_len() method
239 assert_eq!(Some(101), (0..=100u32).into_par_iter().opt_len()); in test_u32_opt_len()
242 (0..=u32::MAX - 1).into_par_iter().opt_len() in test_u32_opt_len()
246 (0..=u32::MAX).into_par_iter().opt_len() in test_u32_opt_len()
253 assert_eq!(Some(101), (0..=100u64).into_par_iter().opt_len()); in test_u64_opt_len()
256 (0..=usize::MAX as u64 - 1).into_par_iter().opt_len() in test_u64_opt_len()
258 assert_eq!(None, (0..=usize::MAX as u64).into_par_iter().opt_len()); in test_u64_opt_len()
259 assert_eq!(None, (0..=u64::MAX).into_par_iter().opt_len()); in test_u64_opt_len()
[all …]
Drange.rs91 fn opt_len(&self) -> Option<usize> {
165 if let Some(len) = self.opt_len() {
176 fn opt_len(&self) -> Option<usize> {
259 fn opt_len(&self) -> Option<usize> { in opt_len() method
326 assert_eq!(Some(100), (0..100u64).into_par_iter().opt_len()); in test_u64_opt_len()
329 (0..usize::MAX as u64).into_par_iter().opt_len() in test_u64_opt_len()
336 .opt_len() in test_u64_opt_len()
338 assert_eq!(None, (0..u64::MAX).into_par_iter().opt_len()); in test_u64_opt_len()
345 assert_eq!(Some(100), (0..100u128).into_par_iter().opt_len()); in test_u128_opt_len()
348 (0..usize::MAX as u128).into_par_iter().opt_len() in test_u128_opt_len()
[all …]
Dpar_either.rs23 fn opt_len(&self) -> Option<usize> { in opt_len() function
24 self.as_ref().either(L::opt_len, R::opt_len) in opt_len()
Ddelegate.rs33 fn opt_len(&self) -> Option<usize> {
34 self.inner.opt_len()
/external/ppp/pppd/
Dcbcp.c310 u_char type, opt_len, delay, addr_type; local
320 GETCHAR(opt_len, pckt);
321 if (opt_len < 2 || opt_len > len)
324 if (opt_len > 2)
336 if (opt_len > 4) {
338 memcpy(address, pckt, opt_len - 4);
339 address[opt_len - 4] = 0;
352 len -= opt_len;
452 int opt_len; local
457 GETCHAR(opt_len, pckt);
[all …]
/external/ppp/pppd/include/net/
Dppp-comp.h62 void *(*comp_alloc) __P((u_char *options, int opt_len));
66 int (*comp_init) __P((void *state, u_char *options, int opt_len,
77 void *(*decomp_alloc) __P((u_char *options, int opt_len));
81 int (*decomp_init) __P((void *state, u_char *options, int opt_len,
/external/usrsctp/programs/
Dekr_loop_offload.c297 socklen_t opt_len; local
421 opt_len = (socklen_t)sizeof(int);
423 if (usrsctp_getsockopt(s_c, SOL_SOCKET, SO_SNDBUF, &cur_buf_size, &opt_len) < 0) {
433 opt_len = (socklen_t)sizeof(int);
435 if (usrsctp_getsockopt(s_c, SOL_SOCKET, SO_SNDBUF, &cur_buf_size, &opt_len) < 0) {
444 opt_len = (socklen_t)sizeof(int);
446 if (usrsctp_getsockopt(s_l, SOL_SOCKET, SO_RCVBUF, &cur_buf_size, &opt_len) < 0) {
456 opt_len = (socklen_t)sizeof(int);
458 if (usrsctp_getsockopt(s_l, SOL_SOCKET, SO_RCVBUF, &cur_buf_size, &opt_len) < 0) {
Dekr_loop.c279 socklen_t opt_len; local
404 opt_len = (socklen_t)sizeof(int);
406 if (usrsctp_getsockopt(s_c, SOL_SOCKET, SO_SNDBUF, &cur_buf_size, &opt_len) < 0) {
416 opt_len = (socklen_t)sizeof(int);
418 if (usrsctp_getsockopt(s_c, SOL_SOCKET, SO_SNDBUF, &cur_buf_size, &opt_len) < 0) {
438 opt_len = (socklen_t)sizeof(int);
440 if (usrsctp_getsockopt(s_l, SOL_SOCKET, SO_RCVBUF, &cur_buf_size, &opt_len) < 0) {
450 opt_len = (socklen_t)sizeof(int);
452 if (usrsctp_getsockopt(s_l, SOL_SOCKET, SO_RCVBUF, &cur_buf_size, &opt_len) < 0) {
Dekr_loop_upcall.c312 socklen_t opt_len; local
438 opt_len = (socklen_t)sizeof(int);
440 if (usrsctp_getsockopt(s_c, SOL_SOCKET, SO_SNDBUF, &cur_buf_size, &opt_len) < 0) {
450 opt_len = (socklen_t)sizeof(int);
452 if (usrsctp_getsockopt(s_c, SOL_SOCKET, SO_SNDBUF, &cur_buf_size, &opt_len) < 0) {
462 opt_len = (socklen_t)sizeof(int);
464 if (usrsctp_getsockopt(s_l, SOL_SOCKET, SO_RCVBUF, &cur_buf_size, &opt_len) < 0) {
474 opt_len = (socklen_t)sizeof(int);
476 if (usrsctp_getsockopt(s_l, SOL_SOCKET, SO_RCVBUF, &cur_buf_size, &opt_len) < 0) {
/external/rust/crates/libz-sys/src/zlib-ng/
Dtrees.c119 s->opt_len = s->static_len = 0L; in init_block()
227 s->opt_len += (unsigned long)f * (unsigned int)(bits + xbits); in gen_bitlen()
264 s->opt_len += (unsigned long)(bits * tree[m].Freq); in gen_bitlen()
265 s->opt_len -= (unsigned long)(tree[m].Len * tree[m].Freq); in gen_bitlen()
357 s->opt_len--; in build_tree()
548 s->opt_len += 3*((unsigned long)max_blindex+1) + 5+5+4; in build_bl_tree()
549 Tracev((stderr, "\ndyn trees: dyn %lu, stat %lu", s->opt_len, s->static_len)); in build_bl_tree()
648 Tracev((stderr, "\nlit data: dyn %lu, stat %lu", s->opt_len, s->static_len));
651 Tracev((stderr, "\ndist data: dyn %lu, stat %lu", s->opt_len, s->static_len));
662 opt_lenb = (s->opt_len+3+7) >> 3;
[all …]
/external/rust/crates/rayon/src/iter/
Dchain.rs51 let (left, right, reducer) = if let Some(len) = a.opt_len() { in drive_unindexed()
62 fn opt_len(&self) -> Option<usize> { in opt_len() function
63 self.a.opt_len()?.checked_add(self.b.opt_len()?) in opt_len()
Dcopied.rs43 fn opt_len(&self) -> Option<usize> { in opt_len() function
44 self.base.opt_len() in opt_len()
Dlen.rs40 fn opt_len(&self) -> Option<usize> { in opt_len() function
174 fn opt_len(&self) -> Option<usize> { in opt_len() function
Dcloned.rs43 fn opt_len(&self) -> Option<usize> { in opt_len() function
44 self.base.opt_len() in opt_len()
Dunzip.rs229 fn opt_len(&self) -> Option<usize> { in opt_len() function
231 self.base.opt_len() in opt_len()
276 fn opt_len(&self) -> Option<usize> { in opt_len() function
278 self.base.opt_len() in opt_len()
/external/rust/crates/libz-sys/src/zlib/
Dtrees.c418 s->opt_len = s->static_len = 0L;
523 s->opt_len += (ulg)f * (unsigned)(bits + xbits);
556 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq;
650 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
822 s->opt_len += 3*((ulg)max_blindex+1) + 5+5+4;
824 s->opt_len, s->static_len));
929 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
933 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
945 opt_lenb = (s->opt_len+3+7)>>3;
949 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
[all …]
/external/angle/third_party/zlib/
Dtrees.c418 s->opt_len = s->static_len = 0L;
523 s->opt_len += (ulg)f * (unsigned)(bits + xbits);
556 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq;
650 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
822 s->opt_len += 3*((ulg)max_blindex+1) + 5+5+4;
824 s->opt_len, s->static_len));
929 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
933 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
945 opt_lenb = (s->opt_len+3+7)>>3;
949 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
[all …]
/external/zlib/
Dtrees.c418 s->opt_len = s->static_len = 0L;
523 s->opt_len += (ulg)f * (unsigned)(bits + xbits);
556 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq;
650 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
822 s->opt_len += 3*((ulg)max_blindex+1) + 5+5+4;
824 s->opt_len, s->static_len));
929 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
933 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
945 opt_lenb = (s->opt_len+3+7)>>3;
949 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
[all …]
/external/libwebsockets/win32port/zlib/
Dtrees.c426 s->opt_len = s->static_len = 0L;
531 s->opt_len += (ulg)f * (bits + xbits);
564 s->opt_len += ((long)bits - (long)tree[m].Len)
658 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
830 s->opt_len += 3*(max_blindex+1) + 5+5+4;
832 s->opt_len, s->static_len));
943 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
947 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
959 opt_lenb = (s->opt_len+3+7)>>3;
963 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
[all …]
/external/python/cpython2/Modules/zlib/
Dtrees.c418 s->opt_len = s->static_len = 0L;
523 s->opt_len += (ulg)f * (unsigned)(bits + xbits);
556 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq;
650 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
822 s->opt_len += 3*((ulg)max_blindex+1) + 5+5+4;
824 s->opt_len, s->static_len));
929 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
933 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
945 opt_lenb = (s->opt_len+3+7)>>3;
949 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
[all …]
/external/ltp/utils/sctp/lib/
Dconnectx.c134 socklen_t opt_len = sizeof(param); in sctp_connectx3() local
147 &param, &opt_len); in sctp_connectx3()
/external/rust/crates/rayon/src/slice/
Dmod.rs522 fn opt_len(&self) -> Option<usize> { in opt_len() method
588 fn opt_len(&self) -> Option<usize> { in opt_len() method
678 fn opt_len(&self) -> Option<usize> { in opt_len() method
758 fn opt_len(&self) -> Option<usize> { in opt_len() method
833 fn opt_len(&self) -> Option<usize> { in opt_len() method
896 fn opt_len(&self) -> Option<usize> { in opt_len() method
1003 fn opt_len(&self) -> Option<usize> { in opt_len() method

123