FreeCalypso > hg > freecalypso-sw
comparison rvinterf/lowlevel/rvifmain.c @ 178:7ab6b29e76bb
rvinterf: forwarding of Rx packets to clients implemented
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 23 Nov 2013 22:15:16 +0000 |
parents | fef035264dd4 |
children | ebfa9657d03d |
comparison
equal
deleted
inserted
replaced
177:fef035264dd4 | 178:7ab6b29e76bb |
---|---|
121 { | 121 { |
122 switch (rxpkt[0]) { | 122 switch (rxpkt[0]) { |
123 case RVT_RV_HEADER: | 123 case RVT_RV_HEADER: |
124 if (rxpkt_len < 6) | 124 if (rxpkt_len < 6) |
125 goto unknown; | 125 goto unknown; |
126 print_rv_trace(); | 126 if (!background || logF) |
127 print_rv_trace(); | |
128 if (client_head) | |
129 forward_rv_trace(); | |
127 return; | 130 return; |
128 case RVT_L1_HEADER: | 131 case RVT_L1_HEADER: |
129 print_l1_trace(); | 132 if (!background || logF) |
133 print_l1_trace(); | |
134 if (client_head) | |
135 forward_nonrvt_pkt(); | |
130 return; | 136 return; |
131 case RVT_L23_HEADER: | 137 case RVT_L23_HEADER: |
132 print_g23_trace(); | 138 if (!background || logF) |
139 print_g23_trace(); | |
140 if (client_head) | |
141 forward_nonrvt_pkt(); | |
133 return; | 142 return; |
134 case RVT_TM_HEADER: | 143 case RVT_TM_HEADER: |
135 print_etm_output_raw(); | 144 if (!background || logF) |
145 print_etm_output_raw(); | |
146 if (client_head) | |
147 forward_nonrvt_pkt(); | |
136 return; | 148 return; |
137 default: | 149 default: |
138 unknown: | 150 unknown: |
139 print_unknown_packet(); | 151 print_unknown_packet(); |
140 } | 152 } |