diff options
Diffstat (limited to 'arch/um/drivers/mcast_user.c')
-rw-r--r-- | arch/um/drivers/mcast_user.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/um/drivers/mcast_user.c b/arch/um/drivers/mcast_user.c index e427b5322a36..5f647d7a7292 100644 --- a/arch/um/drivers/mcast_user.c +++ b/arch/um/drivers/mcast_user.c | |||
@@ -20,8 +20,6 @@ | |||
20 | #include "um_malloc.h" | 20 | #include "um_malloc.h" |
21 | #include "user.h" | 21 | #include "user.h" |
22 | 22 | ||
23 | #define MAX_PACKET (ETH_MAX_PACKET + ETH_HEADER_OTHER) | ||
24 | |||
25 | static struct sockaddr_in *new_addr(char *addr, unsigned short port) | 23 | static struct sockaddr_in *new_addr(char *addr, unsigned short port) |
26 | { | 24 | { |
27 | struct sockaddr_in *sin; | 25 | struct sockaddr_in *sin; |
@@ -154,18 +152,13 @@ int mcast_user_write(int fd, void *buf, int len, struct mcast_data *pri) | |||
154 | return net_sendto(fd, buf, len, data_addr, sizeof(*data_addr)); | 152 | return net_sendto(fd, buf, len, data_addr, sizeof(*data_addr)); |
155 | } | 153 | } |
156 | 154 | ||
157 | static int mcast_set_mtu(int mtu, void *data) | ||
158 | { | ||
159 | return mtu; | ||
160 | } | ||
161 | |||
162 | const struct net_user_info mcast_user_info = { | 155 | const struct net_user_info mcast_user_info = { |
163 | .init = mcast_user_init, | 156 | .init = mcast_user_init, |
164 | .open = mcast_open, | 157 | .open = mcast_open, |
165 | .close = mcast_close, | 158 | .close = mcast_close, |
166 | .remove = mcast_remove, | 159 | .remove = mcast_remove, |
167 | .set_mtu = mcast_set_mtu, | ||
168 | .add_address = NULL, | 160 | .add_address = NULL, |
169 | .delete_address = NULL, | 161 | .delete_address = NULL, |
170 | .max_packet = MAX_PACKET - ETH_HEADER_OTHER | 162 | .mtu = ETH_MAX_PACKET, |
163 | .max_packet = ETH_MAX_PACKET + ETH_HEADER_OTHER, | ||
171 | }; | 164 | }; |