Skip to content

Commit

Permalink
Add IPv6 support for OpenFlow, OVSDB, NetFlow, and sFlow.
Browse files Browse the repository at this point in the history
Does not add IPv6 support for in-band control.

Co-authored-by: Ben Pfaff <[email protected]>
Signed-off-by: Nandan Nivgune <[email protected]>
Signed-off-by: Abhijit Bhopatkar <[email protected]>
Signed-off-by: Arun Sharma <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
Arun Sharma and blp committed Feb 7, 2014
1 parent 978188b commit e731d71
Show file tree
Hide file tree
Showing 26 changed files with 792 additions and 462 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ v2.1.0 - xx xxx xxxx
hard limit on the number of flows in the datapath. It defaults to 200,000
flows. OVS automatically adjusts this number depending on network
conditions.
- Added IPv6 support for active and passive socket communications.


v2.0.0 - 15 Oct 2013
Expand Down
12 changes: 11 additions & 1 deletion include/sparse/netinet/in.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit e731d71

Please sign in to comment.