summaryrefslogtreecommitdiffstats
path: root/configure.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-03-31 08:35:38 +0000
committerRoy Marples <roy@marples.name>2009-03-31 08:35:38 +0000
commit6f767217f6e4c3be4a23fcd330f5252b8ff5c238 (patch)
treec93d968d8652a118e4d7ed02f8153f6d1e54f806 /configure.c
parent4a4bcf7cf5fa713dd62912f0c1c7c2e1ef543e4b (diff)
downloaddhcpcd-6f767217f6e4c3be4a23fcd330f5252b8ff5c238.tar.xz
Add the ability to arping an address and select a profile based on the
hardware address replied with or the ip address.
Diffstat (limited to 'configure.c')
-rw-r--r--configure.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.c b/configure.c
index dbb9118d..5d8b6b41 100644
--- a/configure.c
+++ b/configure.c
@@ -202,6 +202,11 @@ make_env(const struct interface *iface, char ***argv)
e--;
}
*--p = '\0';
+ if (*iface->state->profile) {
+ e = strlen("profile=") + strlen(iface->state->profile) + 2;
+ env[elen] = xmalloc(e);
+ snprintf(env[elen++], e, "profile=%s", iface->state->profile);
+ }
if (iface->wireless) {
e = strlen("new_ssid=") + strlen(iface->ssid) + 2;
if (iface->state->new != NULL ||