]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/net.h
kirkwood_egiga: CONFIG_SKIP_LOCAL_MAC_RANDOMIZATION
[karo-tx-uboot.git] / include / net.h
index 4873000c0d87b1adbb6f871dbce23dd964b19851..a180881dc73d498a2fd283e460bd08c8480d245c 100644 (file)
@@ -105,6 +105,7 @@ struct eth_device {
 #ifdef CONFIG_MCAST_TFTP
        int (*mcast) (struct eth_device*, u32 ip, u8 set);
 #endif
+       int  (*write_hwaddr) (struct eth_device*);
        struct eth_device *next;
        void *priv;
 };
@@ -508,15 +509,15 @@ extern void       VLAN_to_string (ushort x, char *s);
 /* Convert a string to a vlan id */
 extern ushort string_to_VLAN(char *s);
 
-/* read an IP address from a environment variable */
-extern IPaddr_t getenv_IPaddr (char *);
-
 /* read a VLAN id from an environment variable */
 extern ushort getenv_VLAN(char *);
 
 /* copy a filename (allow for "..." notation, limit length) */
 extern void    copy_filename (char *dst, char *src, int size);
 
+/* get a random source port */
+extern unsigned int random_port(void);
+
 /**********************************************************************/
 
 #endif /* __NET_H__ */