X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fsparse%2Fnetinet%2Fin.h;h=a2204282db91fbbbe8ee2f9d37d8daa4ad2d1809;hb=e731d71bf47b8370e4bfa87827113eedd20b7398;hp=781358bd30829ee788f8704045c0141b77f8a854;hpb=978188b242c8900f2a598f8d5bb233d9155ebf36;p=sliver-openvswitch.git diff --git a/include/sparse/netinet/in.h b/include/sparse/netinet/in.h index 781358bd3..a2204282d 100644 --- a/include/sparse/netinet/in.h +++ b/include/sparse/netinet/in.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2013 Nicira, Inc. + * Copyright (c) 2011, 2013, 2014 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +48,15 @@ struct in6_addr { extern const struct in6_addr in6addr_any; +/* Ditto, for IPv6. */ +struct sockaddr_in6 { + sa_family_t sin6_family; + in_port_t sin6_port; /* Transport layer port # */ + uint32_t sin6_flowinfo; /* IPv6 flow information */ + struct in6_addr sin6_addr; /* IPv6 address */ + uint32_t sin6_scope_id; /* IPv6 scope-id */ +}; + #define IPPROTO_IP 0 #define IPPROTO_HOPOPTS 0 #define IPPROTO_ICMP 1 @@ -84,6 +93,7 @@ extern const struct in6_addr in6addr_any; #define INADDR_ANY 0x00000000 #define INADDR_BROADCAST 0xffffffff +#define INADDR_LOOPBACK 0x7f000001 #define INADDR_NONE 0xffffffff #define INET6_ADDRSTRLEN 46