Browse Source

Adds errno and err reporting to inet_sendto.

MissValeska 10 years ago
parent
commit
d6986b3f4d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/inet.c

+ 1
- 1
src/inet.c View File

@@ -1121,7 +1121,7 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
1121 1121
 				inet_send(s, msg, len/2, flags);
1122 1122
 				err=inet_send(s, (const char *)msg+(len/2),
1123 1123
 						len-(len/2), flags);
1124
-                                error("\nEMSGSIZE inet_sendto testing.\n");
1124
+                                error("\nsendto error after fragmention is: %d, err is: %d \n", errno, err);
1125 1125
 			break;
1126 1126
 		case EFAULT:
1127 1127
 			error("The value of to is: %d", to);

Loading…
Cancel
Save