• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/netgraph/

Lines Matching refs:ether

36  * This node type routes packets from the ether hook to either the default hook
373 macfilter_find_mac(macfilter_p mfp, const u_char *ether, u_int *ri)
381 int d = bcmp(ether, mf_macs[middle].ether, ETHER_ADDR_LEN);
406 macfilter_mactable_change(macfilter_p mfp, u_char *ether, int hookid)
409 int found = macfilter_find_mac(mfp, ether, &i);
413 MACFILTER_DEBUG("ether=" MAC_FMT " found=%d i=%d ether=" MAC_FMT " hookid=%d->%d used=%d allocated=%d",
414 MAC_S_ARGS(ether), found, i, MAC_S_ARGS(mf_macs[i].ether),
446 bcopy(ether, mf_macs[i].ether, ETHER_ADDR_LEN);
496 MACFILTER_DEBUG("ether=" MAC_FMT " hook=%s",
497 MAC_S_ARGS(md->ether), md->hookname);
503 return macfilter_mactable_change(mfp, md->ether, hookid);
509 MACFILTER_DEBUG("ether=" MAC_FMT " hookid=%d",
510 MAC_S_ARGS(mdi->ether), mdi->hookid);
517 return macfilter_mactable_change(mfp, mdi->ether, mdi->hookid);
532 u_char *ether = ether_header->ether_dhost;
539 int found = macfilter_find_mac(mfp, ether, &i);
548 MACFILTER_DEBUG("ether=" MAC_FMT " len=%db->%lldb: bytes: %s -> %s",
549 MAC_S_ARGS(ether), m->m_len - ETHER_HDR_LEN, mf_macs[i].bytes_out,
554 MACFILTER_DEBUG("ether=" MAC_FMT " len=%db->?b: bytes: %s->%s",
555 MAC_S_ARGS(ether), m->m_len - ETHER_HDR_LEN,
573 u_char *ether = ether_header->ether_shost;
579 int found = macfilter_find_mac(mfp, ether, &i);
590 MACFILTER_DEBUG("ether=" MAC_FMT " len=%db->%lldb: bytes: %s->%s",
591 MAC_S_ARGS(ether), m->m_len - ETHER_HDR_LEN, mf_macs[i].bytes_in,
596 MACFILTER_DEBUG("ether=" MAC_FMT " len=%db->?b: bytes: %s->%s",
597 MAC_S_ARGS(ether), m->m_len - ETHER_HDR_LEN,