eCosPro® Reference Manual
Prev |  | Next

# netbuf_fromaddr()

## Name

netbuf_fromaddr() -- Obtain the sender's IP address for a netbuf

## Synopsis

``struct ip_addr *netbuf_fromaddr`(struct netbuf *buf);`

## Description

Returns the IP address of the host the netbuf buf was received from. If the netbuf has not been received from the network, the return value of this function is undefined. The function `netbuf_fromport()` can be used to obtain the port number of the remote host.

Prev | Home | Next
netbuf_chain() | Up | netbuf_fromport()