Lines Matching defs:sh
67 synchdr_t *sh;
132 n1, (int) sizeof(*sh));
150 if (inbuf < sizeof(*sh)) {
154 sh = (synchdr_t *)buff;
155 len = ntohl(sh->sm_len);
156 magic = ntohl(sh->sm_magic);
166 printf("v:%d p:%d len:%d magic:%x", sh->sm_v,
167 sh->sm_p, len, magic);
169 if (sh->sm_cmd == SMC_CREATE)
171 else if (sh->sm_cmd == SMC_UPDATE)
174 printf(" cmd:Unknown(%d)", sh->sm_cmd);
176 if (sh->sm_table == SMC_NAT)
178 else if (sh->sm_table == SMC_STATE)
181 printf(" table:Unknown(%d)", sh->sm_table);
183 printf(" num:%d\n", (u_32_t)ntohl(sh->sm_num));
186 if (inbuf < sizeof(*sh) + len) {
192 if (sh->sm_cmd == SMC_CREATE) {
195 } else if (sh->sm_cmd == SMC_UPDATE) {
197 if (sh->sm_p == IPPROTO_TCP) {
208 n2 = sizeof(*sh) + len;