Lines Matching defs:sh
67 synchdr_t *sh;
150 n1, (int) sizeof(*sh));
168 if (inbuf < sizeof(*sh)) {
172 sh = (synchdr_t *)buff;
173 len = ntohl(sh->sm_len);
174 magic = ntohl(sh->sm_magic);
184 printf("v:%d p:%d len:%d magic:%x", sh->sm_v,
185 sh->sm_p, len, magic);
187 if (sh->sm_cmd == SMC_CREATE)
189 else if (sh->sm_cmd == SMC_UPDATE)
192 printf(" cmd:Unknown(%d)", sh->sm_cmd);
194 if (sh->sm_table == SMC_NAT)
196 else if (sh->sm_table == SMC_STATE)
199 printf(" table:Unknown(%d)", sh->sm_table);
201 printf(" num:%d\n", (u_32_t)ntohl(sh->sm_num));
204 if (inbuf < sizeof(*sh) + len) {
210 if (sh->sm_cmd == SMC_CREATE) {
213 } else if (sh->sm_cmd == SMC_UPDATE) {
215 if (sh->sm_p == IPPROTO_TCP) {
226 n2 = sizeof(*sh) + len;