On 05/18/2011 04:28 PM, Mark Slicker wrote:
> On Wed, May 18, 2011 at 10:48 AM, Marc Kleine-Budde <[email protected]> 
> wrote:
>>
>> Hmmm...I don't remember a time that ifconfig up wasn't necessary.
>>
> 
> Yes, you are right. It was only the configuration that changed, but
> something I read made me think 'ip' brought the interface up too.

You can do this with ip, too.

>>> I ran the other program again, this one uses libsocketcan for
>>> configuration, and I see the errors again, I didn't write this code so
>>> I have look into this issue more.
>>
>> Changing the bitrate is only possible if the interface is down. Hence
>> you need to bring it up again, after changing the bitrate.
>>
> 
> The errors it seems all came from using incompatible bit rates, I
> should have checked this code more thoroughly.

You can display the current bitrate with ip.

cheers, Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to