On 26.04.2013 08:23, Sami Halabi wrote:
Hi Eitan,
Thank your for your response.
the ioctl is the example was in Luigi netmap page... maybe Luigi can help
here???????

can you say why the print's are wrong?
They print the addresses of the variables, not their values.

int i = 1234;

printf("i=%d\n", &i); /* Note the &, prints the address of i, or not, at its 
whim */

printf("i=%d\n", i);  /* Note no &, prints the value of i */


I say "at its whim" because once you have a mismatch between the type requested (%d requests int) and the type provided (&i provides int *), you are in the terrain of undefined behaviour, and **ANYTHING** can happen. Be glad you aren't running on the notoriously twitchy DeathStation 9000.

-- Steve

_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to