File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,5 +217,7 @@ main(int argc, char **argv)
217217
218218 main_loop (netmap_port_one , netmap_port_two , udp_port );
219219
220+ (void )pkt_select ; /* silence the compiler */
221+
220222 return 0 ;
221223}
Original file line number Diff line number Diff line change 2121#include <netinet/udp.h>
2222#include <netinet/tcp.h>
2323
24-
2524static int stop = 0 ;
2625
2726static void
@@ -61,7 +60,6 @@ static int
6160main_loop (const char * netmap_port , int udp_port )
6261{
6362 while (!stop ) {
64- (void )udp_port_match ; /* silence the compiler */
6563 }
6664
6765 return 0 ;
@@ -128,5 +126,7 @@ main(int argc, char **argv)
128126
129127 main_loop (netmap_port , udp_port );
130128
129+ (void )udp_port_match ; /* silence the compiler */
130+
131131 return 0 ;
132132}
Original file line number Diff line number Diff line change @@ -69,10 +69,10 @@ pkt_udp_port_swap(char *buf)
6969 /* Filter out non-UDP traffic. */
7070 return 0 ;
7171 }
72- udph = (struct udphdr * )(iph + 1 );
73- tmp = udph -> uh_sport ;
72+ udph = (struct udphdr * )(iph + 1 );
73+ tmp = udph -> uh_sport ;
7474 udph -> uh_sport = udph -> uh_dport ;
75- udph -> uh_dport = tmp ;
75+ udph -> uh_dport = tmp ;
7676
7777 return 1 ;
7878}
You can’t perform that action at this time.
0 commit comments