summaryrefslogtreecommitdiff
path: root/include/net.h
diff options
context:
space:
mode:
authorDavid Updegraff <dave@cray.com>2007-06-11 10:41:07 -0500
committerBen Warren <bwarren@qstreams.com>2007-08-13 23:22:31 -0400
commit53a5c424bf8655b7b4e2c305a441963259a26a81 (patch)
tree281e5aed270485a3c496479c0d46cea87e00c420 /include/net.h
parent5d110f0aa69f065ee386ec1840dfee1e8cc46bc1 (diff)
multicast tftp: RFC2090
Implemented IETF RFC2090, Multicast TFTP. Initial implementation on Realtek RTL8139 and Freescale TSEC. Signed-off-by: David Updegraff <dave@cray.com> Signed-off-by: Ben Warren <bwarren@qstreams.com>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/net.h b/include/net.h
index aa58e333a6..603452ab32 100644
--- a/include/net.h
+++ b/include/net.h
@@ -99,10 +99,12 @@ struct eth_device {
int state;
int (*init) (struct eth_device*, bd_t*);
- int (*send) (struct eth_device*, volatile void* pachet, int length);
+ int (*send) (struct eth_device*, volatile void* packet, int length);
int (*recv) (struct eth_device*);
void (*halt) (struct eth_device*);
-
+#ifdef CONFIG_MCAST_TFTP
+ int (*mcast) (struct eth_device*, u32 ip, u8 set);
+#endif
struct eth_device *next;
void *priv;
};
@@ -124,6 +126,11 @@ extern int eth_rx(void); /* Check for received packets */
extern void eth_halt(void); /* stop SCC */
extern char *eth_get_name(void); /* get name of current device */
+#ifdef CONFIG_MCAST_TFTP
+int eth_mcast_join( IPaddr_t mcast_addr, u8 join);
+u32 ether_crc (size_t len, unsigned char const *p);
+#endif
+
/**********************************************************************/
/*