Skip to content

Commit 88cf061

Browse files
committedFeb 6, 2012
Fixed typo that stopped proper setting of routes.
Multi-hop routing now works again.
1 parent cfc51e2 commit 88cf061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎linux/route.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void add_del_route(uint32_t dest, uint8_t netmask, uint32_t router, uint32_t src
126126
route.rt_flags = (netmask == 32 ? (RTF_HOST | RTF_UP) : RTF_UP);
127127
route.rt_metric = 1;
128128

129-
/* Make sure gateway field address type is set *
129+
/* Make sure gateway field address type is set */
130130
addr = (struct sockaddr_in *)&route.rt_gateway;
131131
addr->sin_family = AF_INET;
132132

0 commit comments

Comments
 (0)
Please sign in to comment.