Lines 1649-1661
static int ipx_info(void)
Link Here
|
1649 |
} |
1649 |
} |
1650 |
|
1650 |
|
1651 |
/* Fetch and resolve the Source */ |
1651 |
/* Fetch and resolve the Source */ |
1652 |
(void) ap->input(4, sad, &sa); |
1652 |
(void) ap->input(0, sad, &sa); |
1653 |
safe_strncpy(buf, ap->sprint(&sa, flag_not & FLAG_NUM_HOST), sizeof(buf)); |
1653 |
safe_strncpy(buf, ap->sprint(&sa, flag_not & FLAG_NUM_HOST), sizeof(buf)); |
1654 |
snprintf(sad, sizeof(sad), "%s:%04X", buf, sport); |
1654 |
snprintf(sad, sizeof(sad), "%s:%04X", buf, sport); |
1655 |
|
1655 |
|
1656 |
if (!nc) { |
1656 |
if (!nc) { |
1657 |
/* Fetch and resolve the Destination */ |
1657 |
/* Fetch and resolve the Destination */ |
1658 |
(void) ap->input(4, dad, &sa); |
1658 |
(void) ap->input(0, dad, &sa); |
1659 |
safe_strncpy(buf, ap->sprint(&sa, flag_not & FLAG_NUM_HOST), sizeof(buf)); |
1659 |
safe_strncpy(buf, ap->sprint(&sa, flag_not & FLAG_NUM_HOST), sizeof(buf)); |
1660 |
snprintf(dad, sizeof(dad), "%s:%04X", buf, dport); |
1660 |
snprintf(dad, sizeof(dad), "%s:%04X", buf, dport); |
1661 |
} else |
1661 |
} else |