- tpacket("received", tp, n);
- /* should verify client address */
- tp->th_opcode = ntohs(tp->th_opcode);
- tp->th_block = ntohs(tp->th_block);
- if (tp->th_opcode == ERROR) {
- printf("Error code %d: %s\n", tp->th_code,
- tp->th_msg);
- goto abort;
+ tpacket("received", &from, rtp, n);
+ rtp->th_opcode = ntohs(rtp->th_opcode);
+ rtp->th_block = ntohs(rtp->th_block);
+ if (rtp->th_opcode == ERROR) {
+ printf("Error code %d: %s\n", rtp->th_code,
+ rtp->th_msg);
+ aborted = 1;
+ goto done;