From owner-freebsd-net@FreeBSD.ORG Sat Apr 12 22:53:39 2008 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 377BA106564A for ; Sat, 12 Apr 2008 22:53:39 +0000 (UTC) (envelope-from ccowart@rescomp.berkeley.edu) Received: from hal.rescomp.berkeley.edu (hal.Rescomp.Berkeley.EDU [169.229.70.150]) by mx1.freebsd.org (Postfix) with ESMTP id 174688FC16 for ; Sat, 12 Apr 2008 22:53:38 +0000 (UTC) (envelope-from ccowart@rescomp.berkeley.edu) Received: by hal.rescomp.berkeley.edu (Postfix, from userid 1225) id DF7723C04E9; Sat, 12 Apr 2008 15:36:45 -0700 (PDT) Date: Sat, 12 Apr 2008 15:36:45 -0700 From: Christopher Cowart To: net@freebsd.org Message-ID: <20080412223645.GN81568@hal.rescomp.berkeley.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XzwO5SPJOYU+7Pos" Content-Disposition: inline Organization: RSSP-IT, UC Berkeley User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Subject: Redirect functionality in ng_nat X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2008 22:53:39 -0000 --XzwO5SPJOYU+7Pos Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I'm running a 7.0-RELEASE machine. I've backported the 7-STABLE for ng_nat, because I'm really interested in the static NAT features from libalias. ng_nat(4) says: | NGM_NAT_REDIRECT_ADDR (redirectaddr) | Redirect traffic for public IP address to a machine on the local | network. This function is known as static NAT. The following | struct ng_nat_redirect_addr must be supplied as argument. | | struct ng_nat_redirect_addr { | struct in_addr local_addr; | struct in_addr alias_addr; | char description[NG_NAT_DESC_LENGTH]; | }; | | Unique ID for this redirection is returned as response to this | message. I'm a little confused on exactly how to pass a struct as a message to a netgraph node via ngctl. What am I missing here? Thanks, --=20 Chris Cowart Network Technical Lead Network & Infrastructure Services, RSSP-IT UC Berkeley --XzwO5SPJOYU+7Pos Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iQIVAwUBSAE5fSPHEDszU3zYAQLCDhAApAXrkUv+byoc0C/QeafWdwuhU7VuMDFm b36nykc0WdLPjv0ZLJhOstT5hTk9txf2CK2DTMLXSemGhr2iQ5vl+/gflSXansX+ TxATsQXLbHFsedR2pFPaVKrLw7ohSzQ0WjzCtR17X0CCtIsvxK0iPBqH38jmaP+d xOJNfc5c08iIKCSyIuN2N7JxmrTR/qH/53gTH0OIXIkNN19KPIrIQbvB+aZiwOHu atZrjqKEZZAxM++RZoIiSZOOn985rv6mtbBi41NzTIOP+Ja7dYg5roLTqNv20bGu m8rfYTV48YzIPqBDnMfSXjOCbVeRRtfj9Lfg69NJ5/mwTtl07GQSBqpE+c68fRnn HbLPNk0AHqnPCHVHSpCPlSNAwqQQLxqonvsydQgz11Qn60ggc+fSD8BYbc15lpYZ FNcWEVdnOTSuktpm1HjbnyWmQn4J2vKNFlOrxEXMdV/kAH2vaL5Rb/JAcllAFYCO Azyy7AvKZXPhZc8YDh+fCYeOrq/oONc/cmUak2QF7sD0ZfHJMpQyOEl6oxRPJe91 laIi9VLCIkXAcwYdY345btLd/E0mUsYroyEp2DqQnkKlNjIdv/elr2h1RB3EnrE8 Eqt/cdU4+aL/57FMbQ4EGQvqnBM1UPlg2Sy6Z8Eufj/5lG1RfQKBDN22seMJLuV4 djsb6HGfGi8= =xjtn -----END PGP SIGNATURE----- --XzwO5SPJOYU+7Pos--