Skip to content

Commit

Permalink
uml: pcap devices should get MACs from command line
Browse files Browse the repository at this point in the history
Allow a pcap device to be assigned a MAC on the command line.  They don't
really need one, but it is handy to be able to do when your distro assigns a
new ethernet device whenever it sees a new MAC.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 8, 2007
1 parent 7d98230 commit 0ba34e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/drivers/pcap_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int pcap_setup(char *str, char **mac_out, void *data)
.filter = NULL });

remain = split_if_spec(str, &host_if, &init->filter,
&options[0], &options[1], NULL);
&options[0], &options[1], mac_out, NULL);
if(remain != NULL){
printk(KERN_ERR "pcap_setup - Extra garbage on "
"specification : '%s'\n", remain);
Expand Down

0 comments on commit 0ba34e1

Please sign in to comment.