Deleted Added
full compact
alias_sctp.h (215153) alias_sctp.h (222809)
1/*-
2 * Copyright (c) 2008
3 * Swinburne University of Technology, Melbourne, Australia.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 31 unchanged lines hidden (view full) ---

40 *
41 *
42 * This project has been made possible in part by a grant from
43 * the Cisco University Research Program Fund at Community
44 * Foundation Silicon Valley.
45 *
46 */
47
1/*-
2 * Copyright (c) 2008
3 * Swinburne University of Technology, Melbourne, Australia.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 31 unchanged lines hidden (view full) ---

40 *
41 *
42 * This project has been made possible in part by a grant from
43 * the Cisco University Research Program Fund at Community
44 * Foundation Silicon Valley.
45 *
46 */
47
48/* $FreeBSD: head/sys/netinet/libalias/alias_sctp.h 215153 2010-11-12 00:44:18Z lstewart $ */
48/* $FreeBSD: head/sys/netinet/libalias/alias_sctp.h 222809 2011-06-07 06:57:22Z ae $ */
49
50#ifndef _ALIAS_SCTP_H_
51#define _ALIAS_SCTP_H_
52
53#include <sys/param.h>
54#ifdef _KERNEL
55#include <sys/malloc.h>
56#include <sys/module.h>

--- 73 unchanged lines hidden (view full) ---

130 uint32_t l_vtag; /**< local side verification tag */
131 uint16_t l_port; /**< local side port number */
132 uint32_t g_vtag; /**< global side verification tag */
133 uint16_t g_port; /**< global side port number */
134 struct in_addr l_addr; /**< local ip address */
135 struct in_addr a_addr; /**< alias ip address */
136 int state; /**< current state of NAT association */
137 int TableRegister; /**< stores which look up tables association is registered in */
49
50#ifndef _ALIAS_SCTP_H_
51#define _ALIAS_SCTP_H_
52
53#include <sys/param.h>
54#ifdef _KERNEL
55#include <sys/malloc.h>
56#include <sys/module.h>

--- 73 unchanged lines hidden (view full) ---

130 uint32_t l_vtag; /**< local side verification tag */
131 uint16_t l_port; /**< local side port number */
132 uint32_t g_vtag; /**< global side verification tag */
133 uint16_t g_port; /**< global side port number */
134 struct in_addr l_addr; /**< local ip address */
135 struct in_addr a_addr; /**< alias ip address */
136 int state; /**< current state of NAT association */
137 int TableRegister; /**< stores which look up tables association is registered in */
138 int exp; /**< timer expiration in seconds from uptime */
138 int exp; /**< timer expiration in seconds from uptime */
139 int exp_loc; /**< current location in timer_Q */
140 int num_Gaddr; /**< number of global IP addresses in the list */
141 LIST_HEAD(sctpGlobalAddresshead,sctp_GlobalAddress) Gaddr; /**< List of global addresses */
139 int exp_loc; /**< current location in timer_Q */
140 int num_Gaddr; /**< number of global IP addresses in the list */
141 LIST_HEAD(sctpGlobalAddresshead,sctp_GlobalAddress) Gaddr; /**< List of global addresses */
142 LIST_ENTRY (sctp_nat_assoc) list_L; /**< Linked list of pointers for Local table*/
143 LIST_ENTRY (sctp_nat_assoc) list_G; /**< Linked list of pointers for Global table */
144 LIST_ENTRY (sctp_nat_assoc) timer_Q; /**< Linked list of pointers for timer Q */
142 LIST_ENTRY (sctp_nat_assoc) list_L; /**< Linked list of pointers for Local table*/
143 LIST_ENTRY (sctp_nat_assoc) list_G; /**< Linked list of pointers for Global table */
144 LIST_ENTRY (sctp_nat_assoc) timer_Q; /**< Linked list of pointers for timer Q */
145//Using libalias locking
146};
147
148struct sctp_GlobalAddress {
149 struct in_addr g_addr;
150 LIST_ENTRY (sctp_GlobalAddress) list_Gaddr; /**< Linked list of pointers for Global table */
151};
152

--- 44 unchanged lines hidden ---
145//Using libalias locking
146};
147
148struct sctp_GlobalAddress {
149 struct in_addr g_addr;
150 LIST_ENTRY (sctp_GlobalAddress) list_Gaddr; /**< Linked list of pointers for Global table */
151};
152

--- 44 unchanged lines hidden ---