Lines Matching defs:zep
113 struct zep_hdr *zep;
129 zep = (struct zep_hdr *)p->payload;
130 if (zep->prot_id[0] != 'E') {
133 if (zep->prot_id[1] != 'X') {
136 if (zep->prot_version != 2) {
140 if (zep->type != 1) {
143 if (zep->crc_mode != 1) {
146 if (zep->len != p->tot_len - sizeof(struct zep_hdr)) {
172 struct zep_hdr *zep;
190 zep = (struct zep_hdr *)q->payload;
191 memset(zep, 0, sizeof(struct zep_hdr));
192 zep->prot_id[0] = 'E';
193 zep->prot_id[1] = 'X';
194 zep->prot_version = 2;
195 zep->type = 1; /* Data */
196 zep->channel_id = 0; /* whatever */
197 zep->device_id = lwip_htons(1); /* whatever */
198 zep->crc_mode = 1;
199 zep->unknown_1 = 0xff;
200 zep->seq_num = lwip_htonl(state->seqno);
202 zep->len = (u8_t)p->tot_len;