Net-BGPdump

 view release on metacpan or  search on metacpan

BGPdump.xs  view on Meta::CPAN

eof(THIS)
    Net::BGPdump THIS
    CODE:
    RETVAL = THIS->eof;
    OUTPUT:
    RETVAL

void
file_type(THIS)
    Net::BGPdump THIS
    PPCODE:
    switch (THIS->f->format) {
        case 0:
            // not opened
            break;
        case 1:
            mXPUSHs(newSVpv("uncompressed", 0));
            break;
        case 2:
            mXPUSHs(newSVpv("bzip2", 0));
            break;

BGPdump.xs  view on Meta::CPAN

    RETVAL

void
filter_read(THIS, ipv6, lo_time, hi_time)
    Net::BGPdump THIS
    int    ipv6
    time_t lo_time
    time_t hi_time
    PREINIT:
    BGPDUMP_ENTRY *entry;
    PPCODE:
    do {
        entry = bgpdump_read_next(THIS);
        if (entry == NULL)
            continue;
        if (lo_time > 0 && entry->time < lo_time)
            goto next_entry;
        if (hi_time > 0 && entry->time >= hi_time)
            goto next_entry;
        switch(entry->type) {
            case BGPDUMP_TYPE_MRTD_BGP:

BGPdump.xs  view on Meta::CPAN

    // return

void
filter_message_read(THIS, ipv6, lo_time, hi_time)
    Net::BGPdump THIS
    int    ipv6
    time_t lo_time
    time_t hi_time
    PREINIT:
    BGPDUMP_ENTRY *entry;
    PPCODE:
    do {
        entry = bgpdump_read_next(THIS);
        if (entry == NULL)
            continue;
        if (lo_time > 0 && entry->time < lo_time)
            goto next_entry;
        if (hi_time > 0 && entry->time >= hi_time)
            goto next_entry;
        switch(entry->type) {
            case BGPDUMP_TYPE_MRTD_BGP:



( run in 0.738 second using v1.01-cache-2.11-cpan-5511b514fd6 )