Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/netdump/netdump_client.c
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Lines | netdump_start(struct dumperinfo *di) | ||||
dcp.dc_ifp = nd_ifp; | dcp.dc_ifp = nd_ifp; | ||||
dcp.dc_client = nd_client.s_addr; | dcp.dc_client = nd_client.s_addr; | ||||
dcp.dc_server = nd_server.s_addr; | dcp.dc_server = nd_server.s_addr; | ||||
dcp.dc_gateway = nd_gateway.s_addr; | dcp.dc_gateway = nd_gateway.s_addr; | ||||
dcp.dc_herald_port = NETDUMP_PORT; | dcp.dc_herald_port = NETDUMP_PORT; | ||||
dcp.dc_client_ack_port = NETDUMP_ACKPORT; | dcp.dc_client_port = NETDUMP_ACKPORT; | ||||
dcp.dc_herald_data = nd_path; | dcp.dc_herald_data = nd_path; | ||||
dcp.dc_herald_datalen = (nd_path[0] == 0) ? 0 : strlen(nd_path) + 1; | dcp.dc_herald_datalen = (nd_path[0] == 0) ? 0 : strlen(nd_path) + 1; | ||||
error = debugnet_connect(&dcp, &pcb); | error = debugnet_connect(&dcp, &pcb); | ||||
if (error != 0) { | if (error != 0) { | ||||
printf("failed to contact netdump server\n"); | printf("failed to contact netdump server\n"); | ||||
/* Squash debugnet to something the dumper code understands. */ | /* Squash debugnet to something the dumper code understands. */ | ||||
▲ Show 20 Lines • Show All 497 Lines • Show Last 20 Lines |