Skip to content

Commit

Permalink
- add support to the route command for making routes sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
kmacy committed Jan 10, 2009
1 parent 6cc5e76 commit b754e50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sbin/route/keywords
Expand Up @@ -33,6 +33,7 @@ mtu
net
netmask
nostatic
nostick
osi
prefixlen
proto1
Expand All @@ -47,6 +48,7 @@ sendpipe
shutdown
ssthresh
static
sticky
weight
x25
xns
Expand Down
6 changes: 6 additions & 0 deletions sbin/route/route.c
Expand Up @@ -638,6 +638,12 @@ newroute(argc, argv)
case K_STATIC:
flags |= RTF_STATIC;
break;
case K_STICKY:
flags |= RTF_STICKY;
break;
case K_NOSTICK:
flags &= ~RTF_STICKY;
break;
case K_IFA:
if (!--argc)
usage((char *)NULL);
Expand Down

0 comments on commit b754e50

Please sign in to comment.