How can I get mobile node IP address in OPNET 14.5? -


i tried following code in opnet modeler 14.5

objid addr_info_attr_objid; char address_string[128]; addr_info_attr_objid = op_id_self(); op_ima_obj_attr_get(addr_info_attr_objid, "address", address_string); 

to node ip address gives error message:

<<<recoverable error>>> attribute name(address) unrecognizzed object(542) 

you have find proper ip interface first. based on code, not right way ip address of one-interface node, such server/client model.

here sample code

op_ima_obj_attr_get(ip_moudle_objid, "ip router parameters [0].interface information [3].address", &address_str); 

Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -