Lines Matching refs:sh
66 synchdr_t *sh; local
131 n1, (int) sizeof(*sh));
149 if (inbuf < sizeof(*sh)) {
153 sh = (synchdr_t *)buff;
154 len = ntohl(sh->sm_len);
155 magic = ntohl(sh->sm_magic);
165 printf("v:%d p:%d len:%d magic:%x", sh->sm_v,
166 sh->sm_p, len, magic);
168 if (sh->sm_cmd == SMC_CREATE)
170 else if (sh->sm_cmd == SMC_UPDATE)
173 printf(" cmd:Unknown(%d)", sh->sm_cmd);
175 if (sh->sm_table == SMC_NAT)
177 else if (sh->sm_table == SMC_STATE)
180 printf(" table:Unknown(%d)", sh->sm_table);
182 printf(" num:%d\n", (u_32_t)ntohl(sh->sm_num));
185 if (inbuf < sizeof(*sh) + len) {
191 if (sh->sm_cmd == SMC_CREATE) {
194 } else if (sh->sm_cmd == SMC_UPDATE) {
196 if (sh->sm_p == IPPROTO_TCP) {
207 n2 = sizeof(*sh) + len;