Home
last modified time | relevance | path

Searched refs:ext_len (Results 1 – 3 of 3) sorted by relevance

/net/rds/
Dmessage.c110 unsigned int ext_len = sizeof(u8) + len; in rds_message_add_extension() local
120 if (ext_len >= RDS_HEADER_EXT_SPACE) in rds_message_add_extension()
149 unsigned int offset, ext_type, ext_len; in rds_message_next_extension() local
162 ext_len = rds_exthdr_size[ext_type]; in rds_message_next_extension()
163 if (offset + ext_len > RDS_HEADER_EXT_SPACE) in rds_message_next_extension()
166 *pos = offset + ext_len; in rds_message_next_extension()
167 if (ext_len < *buflen) in rds_message_next_extension()
168 *buflen = ext_len; in rds_message_next_extension()
/net/ipv4/
Dipconfig.c953 int len, ext_len; in ic_bootp_recv() local
995 ext_len = len - (sizeof(*b) - in ic_bootp_recv()
999 if (ext_len < 0) in ic_bootp_recv()
1038 if (ext_len >= 4 && in ic_bootp_recv()
/net/key/
Daf_key.c68 static int parse_sockaddr_pair(struct sockaddr *sa, int ext_len,
493 int ext_len; in parse_exthdrs() local
495 ext_len = ehdr->sadb_ext_len; in parse_exthdrs()
496 ext_len *= sizeof(uint64_t); in parse_exthdrs()
498 if (ext_len < sizeof(uint64_t) || in parse_exthdrs()
499 ext_len > len || in parse_exthdrs()
505 if (ext_len < min) in parse_exthdrs()
522 p += ext_len; in parse_exthdrs()
523 len -= ext_len; in parse_exthdrs()
2413 static int parse_sockaddr_pair(struct sockaddr *sa, int ext_len, in parse_sockaddr_pair() argument
[all …]