summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/ts_386ex/tools/network_ada/tcprelay/print_error.c
blob: 5dab06aad8e50bff6c18a157beabbe4c86d0d29b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <string.h>
#include <errno.h>

void
print_error (void) {
  printf("Problem connecting socket: %s\n", strerror (errno));
}

void
dump_sin (unsigned char *dp) {
  int i;

  printf("Dump of sockaddr_in =\n");
  for(i=0; i<16; i++)
    printf("%x ", *dp++);
  printf("\n");
}