15 #include <linux/netdevice.h>
33 pri = netdev_priv(dev);
67 .write = umcast_write,
70 static int mcast_setup(
char *
str,
char **mac_out,
void *
data)
73 char *port_str =
NULL, *ttl_str =
NULL, *remain;
77 { .addr =
"239.192.168.1",
85 "specification : '%s'\n", remain);
89 if (port_str !=
NULL) {
91 if ((*last !=
'\0') || (last == port_str)) {
98 if (ttl_str !=
NULL) {
100 if ((*last !=
'\0') || (last == ttl_str)) {
116 static int ucast_setup(
char *str,
char **mac_out,
void *data)
119 char *lport_str =
NULL, *rport_str =
NULL, *remain;
128 &lport_str, &rport_str,
NULL);
129 if (remain !=
NULL) {
131 "specification : '%s'\n", remain);
135 if (lport_str !=
NULL) {
137 if ((*last !=
'\0') || (last == lport_str)) {
139 "'%s'\n", lport_str);
144 if (rport_str !=
NULL) {
146 if ((*last !=
'\0') || (last == rport_str)) {
148 "'%s'\n", rport_str);
161 static struct transport mcast_transport = {
164 .setup = mcast_setup,
166 .kern = &umcast_kern_info,
171 static struct transport ucast_transport = {
174 .setup = ucast_setup,
176 .kern = &umcast_kern_info,
181 static int register_umcast(
void)