Lines Matching refs:len
191 static inline u_int dccp_csum_coverage(const struct dccp_hdr* dh, u_int len)
196 return len;
198 return (cov > len)? len : cov;
202 const struct dccp_hdr *dh, u_int len)
204 return nextproto4_cksum(ndo, ip, (const uint8_t *)(void *)dh, len,
205 dccp_csum_coverage(dh, len), IPPROTO_DCCP);
209 static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len)
211 return nextproto6_cksum(ip6, (const uint8_t *)(void *)dh, len,
212 dccp_csum_coverage(dh, len), IPPROTO_DCCP);
268 * @len - lenght of ip packet
271 u_int len)
300 if (len < sizeof(struct dccp_hdr)) {
302 len - (u_int)sizeof(struct dccp_hdr)));
308 if (len < fixed_hdrlen) {
310 len - fixed_hdrlen));
335 ND_PRINT((ndo, " %d", len - hlen));
336 if (hlen > len) {
338 hlen, len));
349 if (ndo->ndo_vflag && ND_TTEST2(bp[0], len)) {
355 sum = dccp_cksum(ndo, ip, dh, len);
358 sum = dccp6_cksum(ip6, dh, len);
376 if (len < fixed_hdrlen) {
379 len - fixed_hdrlen));
392 if (len < fixed_hdrlen) {
395 len - fixed_hdrlen));
409 if (len < fixed_hdrlen) {
412 len - fixed_hdrlen));
420 if (len < fixed_hdrlen) {
423 len - fixed_hdrlen));
431 if (len < fixed_hdrlen) {
434 len - fixed_hdrlen));
441 if (len < fixed_hdrlen) {
444 len - fixed_hdrlen));
453 if (len < fixed_hdrlen) {
456 len - fixed_hdrlen));
467 if (len < fixed_hdrlen) {
470 len - fixed_hdrlen));
477 if (len < fixed_hdrlen) {
480 len - fixed_hdrlen));