[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] extracting mac address from stack


  • To: Nicolas Ojeda Bar <no263@xxxxxxxxxxxxxxx>
  • From: Ania Skorupa <ania.skorupa@xxxxxxxxx>
  • Date: Tue, 13 Jan 2015 11:27:06 +0000 (UTC)
  • Cc: "mirageos-devel@xxxxxxxxxxxxxxxxxxxx" <mirageos-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 13 Jan 2015 11:30:09 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=R4nM33daV9pPGm5ibpVZlUjtxX4KVta+PwGjHoFKMZxYDdAg5OEBjsIyxccNfdduoKzp+nhqu1BB/goTJuKRkYrqzca3FjoY7dPQd+7tGECOUaLuhVE+xzpbkZqBM5Zw6ztMW+5WBu3hlf6TazbdmNQeYnRnf3KlJctQnErudRdAcYMKKGqFbI7vvXZ25+Ttct2du9iIr58ZYrY5BV75wWjF5Wigs/IVFyl6rdN8+HepH/V7dqgcl8UCVQ8ynd40s/AeDZFotSEKN1gipPLFnW+B5nzZhJ1YxR/1MLvvfWfZ+KzJUYQtpZo0y3p2s47gRaVS3en2pRbwoqwUQexGeA==;
  • List-id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>

thanks Nikolas.

as STACKV4 is a type, I can change your code to

Eth.mac (S.IPV4.id (S.ipv4 s))

again, the problem is that I have to pass tap0 as a parameter of type NETWORK to Main and create ethernet interface Eth = Ethif.Make(N), and still receive the error message:

Error: This _expression_ has type S.IPV4.ethif
       but an _expression_ was expected of type Eth.t = Ethif.Make(N).t

any suggestion?


On Saturday, January 10, 2015 12:39 PM, Nicolas Ojeda Bar <no263@xxxxxxxxxxxxxxx> wrote:


You can use the ETHIF.mac (STACKV4.IPV4.id s) (where s is the stack).
The `DEVICE.id` type should probably be abstract, but this works for
now.

Cheers,
Nicolas

On Thu, Jan 8, 2015 at 12:00 PM, Ania Skorupa <ania.skorupa@xxxxxxxxx> wrote:
> hi,
>
> in stackv4 example in mirage-skeleton, is there any simple way to extract
> mac address of tap0 in unikernel.ml?
>
> The other way that I can think of is to pass tap0 as another parameter to
> the unikernel, but it doesn't look a neat solution.
>
> thanks.

>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

>


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.