Lines Matching refs:addr

248  * The environment variable to be set is defined by <@base_name><@index>addr.
518 extern struct in_addr net_ip; /* Our IP addr (0 = unknown) */
519 extern struct in_addr net_server_ip; /* Server IP addr (0 = unknown) */
589 int net_update_ether(struct ethernet_hdr *et, uchar *addr, uint prot);
600 * @addr: Address to check (must be 16-bit aligned)
604 unsigned compute_ip_checksum(const void *addr, unsigned nbytes);
621 * @addr: Address to check (must be 16-bit aligned)
625 int ip_checksum_ok(const void *addr, unsigned nbytes);
762 * @addr: Pointer to a six-byte array containing the Ethernet address
766 static inline int is_zero_ethaddr(const u8 *addr)
768 return !(addr[0] | addr[1] | addr[2] | addr[3] | addr[4] | addr[5]);
773 * @addr: Pointer to a six-byte array containing the Ethernet address
778 static inline int is_multicast_ethaddr(const u8 *addr)
780 return 0x01 & addr[0];
785 * @addr: Pointer to a six-byte array containing the Ethernet address
789 static inline int is_broadcast_ethaddr(const u8 *addr)
791 return (addr[0] & addr[1] & addr[2] & addr[3] & addr[4] & addr[5]) ==
797 * @addr: Pointer to a six-byte array containing the Ethernet address
804 static inline int is_valid_ethaddr(const u8 *addr)
808 return !is_multicast_ethaddr(addr) && !is_zero_ethaddr(addr);
813 * @addr: Pointer to a six-byte array containing the Ethernet address
818 static inline void net_random_ethaddr(uchar *addr)
824 // addr[i] = rand_r(&seed);
826 // addr[0] &= 0xfe; /* clear multicast bit */
827 // addr[0] |= 0x02; /* set local assignment bit (IEEE802) */
870 * @param addr - memory address where data is stored
876 int update_tftp(ulong addr, char *interface, char *devstring);