ip address allocation P2020 RDB-PCA

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ip address allocation P2020 RDB-PCA

1,308 次查看
hammadnayeem
Contributor II

I wish to assign ip address to P2020RDB-PCA through my C Code , instead of defining by ifconfig command at the serial console prompt.

Pls tell a way out.

0 项奖励
回复
2 回复数

1,209 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attached ifconfig.c file coming from net-tools package.

Please refer to set_ifstate function regarding how to set IP address with socket programming.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,209 次查看
r8070z
NXP Employee
NXP Employee

Have a great day,

Please check answers for

How to set the IP address from C in linux - Stack Overflow

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复