summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-01-01 20:51:04 +0000
committerRoy Marples <roy@marples.name>2009-01-01 20:51:04 +0000
commitc53cf4ef4b332cd1ff0cb1b0dc23fc193aebb892 (patch)
treebc4b3e699a9a40ecf7eb74249ca0c89f2ccb7f61 /net.c
parent91a44b91b06f127a98ae7f64e377e59d47eba329 (diff)
downloaddhcpcd-c53cf4ef4b332cd1ff0cb1b0dc23fc193aebb892.tar.xz
You can now add a configure block per ssid if the interface is wireless.
Diffstat (limited to 'net.c')
-rw-r--r--net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net.c b/net.c
index 45dab802..ed580cc5 100644
--- a/net.c
+++ b/net.c
@@ -1,6 +1,6 @@
/*
* dhcpcd - DHCP client daemon
- * Copyright 2006-2008 Roy Marples <roy@marples.name>
+ * Copyright 2006-2009 Roy Marples <roy@marples.name>
* All rights reserved
* Redistribution and use in source and binary forms, with or without
@@ -196,7 +196,7 @@ init_interface(const char *ifname)
/* We reserve the 100 range for virtual interfaces, if and when
* we can work them out. */
iface->metric = 200 + if_nametoindex(iface->name);
- if (if_wireless(ifname) == 0)
+ if (getifssid(ifname, iface->ssid) != -1)
iface->metric += 100;
#ifdef SIOCGIFHWADDR