Lines Matching refs:sh
66 synchdr_t *sh; local
149 n1, (int) sizeof(*sh));
167 if (inbuf < sizeof(*sh)) {
171 sh = (synchdr_t *)buff;
172 len = ntohl(sh->sm_len);
173 magic = ntohl(sh->sm_magic);
183 printf("v:%d p:%d len:%d magic:%x", sh->sm_v,
184 sh->sm_p, len, magic);
186 if (sh->sm_cmd == SMC_CREATE)
188 else if (sh->sm_cmd == SMC_UPDATE)
191 printf(" cmd:Unknown(%d)", sh->sm_cmd);
193 if (sh->sm_table == SMC_NAT)
195 else if (sh->sm_table == SMC_STATE)
198 printf(" table:Unknown(%d)", sh->sm_table);
200 printf(" num:%d\n", (u_32_t)ntohl(sh->sm_num));
203 if (inbuf < sizeof(*sh) + len) {
209 if (sh->sm_cmd == SMC_CREATE) {
212 } else if (sh->sm_cmd == SMC_UPDATE) {
214 if (sh->sm_p == IPPROTO_TCP) {
225 n2 = sizeof(*sh) + len;