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

void rtnl_neightbl_set_dev ( struct rtnl_neightbl ntbl,
int  ifindex 
)

Set the device of a neighbour table to the specified value

  • ntbl neighbour table to change
  • ifindex interface index of the device

Definition at line 687 of file neightbl.c.

References rtnl_neightbl::nt_mask, and rtnl_neightbl::nt_parms.

{
      ntbl->nt_parms.ntp_ifindex = ifindex;
      ntbl->nt_parms.ntp_mask |= NEIGHTBLPARM_ATTR_IFINDEX;
      ntbl->nt_mask |= NEIGHTBL_ATTR_PARMS;
}


Generated by  Doxygen 1.6.0   Back to index