store the name of the interface in the interface object

This commit is contained in:
Jeremy Ellington 2004-06-04 16:05:22 +00:00
parent 620f9d4aaf
commit a45fb5e859

View File

@ -260,6 +260,7 @@ int main(int argc, char ** argv)
printf("Error loading interface %s\n", intfname);
goto out_free;
}
strncpy(intf->name, intfname, strlen(intfname));
} else {
printf("No interface specified!\n");
usage();