Doc : <<ifconfig bridge0 rule pass in on fxp0 src 0:de:ad:be:ef:0 tag USER1>> Want to do something like <<ifconfig bridge0 rule pass in on fxp0 src 0:de:ad:*:*:* tag OPENBSDAWESOME>> or <<ifconfig bridge0 rule pass in on fxp0 src /\\A00:de:ad:/ tag OPENBSDAWESOME>>
Read Code : found, in if_bridge.c (following SIOCBRDGARL from ifconfig) << bcopy(&req->ifbr_src, &n->brl_src, sizeof(struct ether_addr)); bcopy(&req->ifbr_dst, &n->brl_dst, sizeof(struct ether_addr)); >> Search for usage of the (documented) field << find /usr/src/ -type f | xargs grep ifbr_src /usr/src/share/man/man4/bridge.4: struct ether_addr ifbr_src; /* source mac */ /usr/src/sbin/ifconfig/brconfig.c: printf(" src %s", ether_ntoa(&r->ifbr_src)); /usr/src/sbin/ifconfig/brconfig.c: dea = &rule.ifbr_src; >> Now I'm lost --------------------------------------------------------------------------------------------------------------------- () ascii ribbon campaign - against html e-mail /\