void *object)
{
struct access_list *alist;
- /* struct prefix_ipv4 match; */
- if (type == RMAP_BGP) {
+ if (type == RMAP_BGP && prefix->family == AF_INET) {
alist = access_list_lookup(AFI_IP, (char *)rule);
if (alist == NULL)
return RMAP_NOMATCH;
struct bgp_info *bgp_info;
struct prefix_ipv4 p;
- if (type == RMAP_BGP) {
+ if (type == RMAP_BGP && prefix->family == AF_INET) {
bgp_info = object;
p.family = AF_INET;
p.prefix = bgp_info->attr->nexthop;
struct peer *peer;
struct prefix_ipv4 p;
- if (type == RMAP_BGP) {
+ if (type == RMAP_BGP && prefix->family == AF_INET) {
bgp_info = object;
peer = bgp_info->peer;
{
struct prefix_list *plist;
- if (type == RMAP_BGP) {
+ if (type == RMAP_BGP && prefix->family == AF_INET) {
plist = prefix_list_lookup(AFI_IP, (char *)rule);
if (plist == NULL)
return RMAP_NOMATCH;
struct bgp_info *bgp_info;
struct prefix_ipv4 p;
- if (type == RMAP_BGP) {
+ if (type == RMAP_BGP && prefix->family == AF_INET) {
bgp_info = object;
p.family = AF_INET;
p.prefix = bgp_info->attr->nexthop;
struct peer *peer;
struct prefix_ipv4 p;
- if (type == RMAP_BGP) {
+ if (type == RMAP_BGP && prefix->family == AF_INET) {
bgp_info = object;
peer = bgp_info->peer;
{
struct access_list *alist;
- if (type == RMAP_BGP) {
+ if (type == RMAP_BGP && prefix->family == AF_INET6) {
alist = access_list_lookup(AFI_IP6, (char *)rule);
if (alist == NULL)
return RMAP_NOMATCH;
{
struct prefix_list *plist;
- if (type == RMAP_BGP) {
+ if (type == RMAP_BGP && prefix->family == AF_INET6) {
plist = prefix_list_lookup(AFI_IP6, (char *)rule);
if (plist == NULL)
return RMAP_NOMATCH;