2 * An ethernet /dev/null.
3 * Useful as a bridging target with ethernet-based VPN.
6 #include "../port/lib.h"
11 #include "../port/error.h"
12 #include "../port/netif.h"
16 ctl(Ether *ether, void *buf, long n)
21 cb = parsecmd(buf, n);
23 && strcmp(cb->f[0], "ea")==0
24 && parseether(ea, cb->f[1]) == 0){
26 memmove(ether->ea, ea, Eaddrlen);
27 memmove(ether->addr, ether->ea, Eaddrlen);
32 return -1; /* not reached */
47 memset(ea, 0, sizeof ea);
50 ether->transmit = nop;
52 ether->interrupt = nil;
55 ether->promiscuous = nil;
56 ether->multicast = nil;
64 addethercard("sink", reset);