Lines Matching refs:header
168 struct pp2_header* header = (struct pp2_header*)buf; in pp2_read_header() local
174 if(memcmp(header, PP2_SIG, PP2_SIG_LEN) != 0 || in pp2_read_header()
175 ((header->ver_cmd & 0xF0)>>4) != PP2_VERSION) { in pp2_read_header()
179 size = PP2_HEADER_SIZE + ntohs(header->len); in pp2_read_header()
184 if((header->ver_cmd & 0xF) != PP2_CMD_LOCAL && in pp2_read_header()
185 (header->ver_cmd & 0xF) != PP2_CMD_PROXY) { in pp2_read_header()
189 if(header->fam_prot != PP2_UNSPEC_UNSPEC && in pp2_read_header()
190 header->fam_prot != PP2_INET_STREAM && in pp2_read_header()
191 header->fam_prot != PP2_INET_DGRAM && in pp2_read_header()
192 header->fam_prot != PP2_INET6_STREAM && in pp2_read_header()
193 header->fam_prot != PP2_INET6_DGRAM && in pp2_read_header()
194 header->fam_prot != PP2_UNIX_STREAM && in pp2_read_header()
195 header->fam_prot != PP2_UNIX_DGRAM) { in pp2_read_header()