| 472 | } |
| 473 | |
| 474 | static void |
| 475 | setbridge_deladdr(const char *val, int d, int s, const struct afswtch *afp) |
| 476 | { |
| 477 | struct ifbareq req; |
| 478 | struct ether_addr *ea; |
| 479 | |
| 480 | memset(&req, 0, sizeof(req)); |
| 481 | |
| 482 | ea = ether_aton(val); |
| 483 | if (ea == NULL) |
| 484 | errx(1, "invalid address: %s", val); |
| 485 | |
| 486 | memcpy(req.ifba_dst, ea->octet, sizeof(req.ifba_dst)); |
| 487 | |
| 488 | if (do_cmd(s, BRDGDADDR, &req, sizeof(req), 1) < 0) |
| 489 | err(1, "BRDGDADDR %s", val); |
| 490 | } |
| 491 | |
| 492 | static void |
| 493 | setbridge_addr(const char *val, int d, int s, const struct afswtch *afp) |