| version 1.1 | | version 1.2 |
|---|
| | |
| #ifdef UDPDEBUG | | #ifdef UDPDEBUG |
| printf("ip_receive_cfg: %i %i ",buf[0],buf[1]); | | printf("ip_receive_cfg: %i %i ",buf[0],buf[1]); |
| dumprid(buf+2); | | dumprid(buf+2); |
| printf(" v%i tryid%u\n",ntohs(*(unsigned short*)(buf+8)),ntohl(*(u_int32_t*)(buf+10))); | | printf(" v%i tryid%u\n",ntohs(*(unsigned short*)(buf+8)),(unsigned int)ntohl(*(u_int32_t*)(buf+10))); |
| #endif | | #endif |
| | | |
| }break; | | }break; |
| | |
| #ifdef UDPDEBUG | | #ifdef UDPDEBUG |
| printf("ip_receive_cfg: %i %i ",buf[0],buf[1]); | | printf("ip_receive_cfg: %i %i ",buf[0],buf[1]); |
| dumprid(buf+2); | | dumprid(buf+2); |
| printf(" v%i tryid%u\n",ntohs(*(unsigned short*)(buf+8)),ntohl(*(u_int32_t*)(buf+10))); | | printf(" v%i tryid%u\n",ntohs(*(unsigned short*)(buf+8)),(unsigned int)ntohl(*(u_int32_t*)(buf+10))); |
| #endif | | #endif |
| { | | { |
| ip_handshake_info *hsi=new ip_handshake_info(buf); | | ip_handshake_info *hsi=new ip_handshake_info(buf); |
| | |
| dumprid(ipx_MyAddress+4); | | dumprid(ipx_MyAddress+4); |
| putchar('\n'); | | putchar('\n'); |
| #endif | | #endif |
| | | |
| return 0; | | return 0; |
| } | | } |
| /* Parse PORTSHIFT numeric parameter | | /* Parse PORTSHIFT numeric parameter |