def METHOD_NAME(entry, intf_list):
  l = cast(intf_list, POINTER(dnet_intf_list))
  if l.contents.length >= INTF_NAME_COUNT:
    return -1
  for i in enumerate(entry.contents.intf_name):
    l.contents.interfaces[l.contents.length][i[0]] = i[1]
  l.contents.length += 1
  return 0 