gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:printf from t2ex/bsd_source/t2ex/network/net/src_bsd/netinet/tcp_debug.c (0.00 seconds)
t2ex
bsd_source/t2ex/network/net/src_bsd/netinet/tcp_debug.c - 7.9KB - 223 lines
165:         if (tp)
166:                 printf("%p %s:", tp, tcpstates[ostate]);
167:         else
168:                 printf("???????? ");
169:         printf("%s ", tanames[act]);
170:         switch (act) {
187: if (len) 188: printf("[%x..%x)", seq, seq+len); 189: else 190: printf("%x", seq); 191: printf("@%x, urp=%x", ack, th->th_urp); 192: flags = th->th_flags;
196: #define pf(f) { if (th->th_flags&__CONCAT(TH_,f)) { \ 197: printf("%s%s", cp, "f"); cp = ","; } } 198: pf(SYN); pf(ACK); pf(FIN); pf(RST); pf(PUSH); pf(URG); 199: #endif 200: printf(">"); 201: }
204: case TA_USER: 205: printf("%s", prurequests[req&0xff]); 206: if ((req & 0xff) == PRU_SLOWTIMO) 207: printf("<%s>", tcptimers[req>>8]); 208: break;
210: if (tp) 211: printf(" -> %s", tcpstates[tp->t_state]); 212: /* print out internal state of tp !?! */ 213: printf("\n"); 214: if (tp == 0) 215: return; 216: printf("\trcv_(nxt,wnd,up) (%x,%lx,%x) snd_(una,nxt,max) (%x,%x,%x)\n", 217: tp->rcv_nxt, tp->rcv_wnd, tp->rcv_up, tp->snd_una, tp->snd_nxt, 218: tp->snd_max); 219: printf("\tsnd_(wl1,wl2,wnd) (%x,%x,%lx)\n", 220: tp->snd_wl1, tp->snd_wl2, tp->snd_wnd);