Logo Search packages:      
Sourcecode: uaputl version File versions  Download package

void print_mac_filter ( TLVBUF_STA_MAC_ADDR_FILTER *  tlv )

Show mac filter tlv.

Parameters:
tlvPoniter to filter tlv

$return N/A

Definition at line 5046 of file uaputl.c.

References ETH_ALEN, and print_mac().

Referenced by apcmd_sta_filter_table(), and print_tlv().

{
    int i;
    switch (tlv->FilterMode) {
    case 0:
        printf("Filter Mode = Filter table is disabled\n");
        return;
    case 1:
        printf
            ("Filter Mode = Allow mac address specified in the allwed list\n");
        break;
    case 2:
        printf
            ("Filter Mode = Block MAC addresses specified in the  banned list\n");
        break;
    }
    for (i = 0; i < tlv->Count; i++) {
        printf("MAC_%d = ", i);
        print_mac(&tlv->MacAddress[i * ETH_ALEN]);
        printf("\n");
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index