Changeset 1fbd938 for lib/format_rt.c
- Timestamp:
- 02/16/06 11:56:02 (16 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 880aa58
- Parents:
- ee5e4c7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_rt.c
r70b38dc r1fbd938 68 68 #define RT_INFO libtrace->format_data 69 69 70 char *rt_deny_reason(uint8_t reason) { 71 char *string = 0; 72 73 switch(reason) { 74 case RT_DENY_WRAPPER: 75 string = "Rejected by TCP Wrappers"; 76 break; 77 case RT_DENY_FULL: 78 string = "Max connections reached on server"; 79 break; 80 case RT_DENY_AUTH: 81 string = "Authentication failed"; 82 break; 83 default: 84 string = "Unknown reason"; 85 } 86 87 return string; 88 } 89 90 70 91 struct libtrace_format_data_t { 71 92 char *hostname; … … 107 128 } 108 129 109 / / We are connected, now receive message from server130 /* We are connected, now receive message from server */ 110 131 111 132 if (recv(RT_INFO->input_fd, &connect_msg, sizeof(rt_header_t), 0) != sizeof(rt_header_t) ) { … … 484 505 "$Id$", 485 506 "rt", 486 rt_init_input, /* init_input */507 rt_init_input, /* init_input */ 487 508 NULL, /* config_input */ 488 rt_start_input, /* start_input */509 rt_start_input, /* start_input */ 489 510 NULL, /* init_output */ 490 511 NULL, /* config_output */ 491 512 NULL, /* start_output */ 492 rt_fin_input, /* fin_input */ 513 NULL, /* pause_output */ 514 rt_fin_input, /* fin_input */ 493 515 NULL, /* fin_output */ 494 rt_read_packet, /* read_packet */516 rt_read_packet, /* read_packet */ 495 517 NULL, /* write_packet */ 496 518 NULL, /* get_link_type */ … … 500 522 NULL, /* get_timeval */ 501 523 NULL, /* get_seconds */ 524 NULL, /* seek_erf */ 525 NULL, /* seek_timeval */ 526 NULL, /* seek_seconds */ 502 527 NULL, /* get_capture_length */ 503 528 NULL, /* get_wire_length */
Note: See TracChangeset
for help on using the changeset viewer.