From owner-freebsd-drivers@FreeBSD.ORG Thu Feb 26 12:16:06 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F05D0A07 for ; Thu, 26 Feb 2015 12:16:06 +0000 (UTC) Received: from nm28-vm5.bullet.mail.ne1.yahoo.com (nm28-vm5.bullet.mail.ne1.yahoo.com [98.138.91.250]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AF51EB82 for ; Thu, 26 Feb 2015 12:16:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1424952763; bh=DtZaM3da7m3xcEdcrorWpUftRBD3Ie0aYyI1DUEWSBk=; h=Date:From:Reply-To:To:Subject:From:Subject; b=DugZNPVOfzcaVorn4uY797GqJMQmNQPiP0FUyRemgefsKYHuVynnNb2MdCbH6LnNv2iGaiDXDDe9WUp8uJDltuOjTEa0rdPbdcxranXxlsI2uAJ8eyFfWU5pyb7RxvSJkZo/vKDYcsaRFQLaM2MDLPl2k2mp7mK+JuSnDOXftl7VPVjNJuvK808VWlC6y7zBG7OQ/Nenk0o93ii/Ga53Sv0bJ8itZnciIQVnIsc0kbxLm3PmD9jh0WCTmsgMpWD2/eUnFJw1h/vaMC8R+HK/kk5xWs7W+4fmFaSD4V2qUzsHucJGqPPbMyQmYtNLi4vqD0YkB0pVGGpWms+e09FSUw== Received: from [98.138.226.177] by nm28.bullet.mail.ne1.yahoo.com with NNFMP; 26 Feb 2015 12:12:43 -0000 Received: from [98.138.89.171] by tm12.bullet.mail.ne1.yahoo.com with NNFMP; 26 Feb 2015 12:12:43 -0000 Received: from [127.0.0.1] by omp1027.mail.ne1.yahoo.com with NNFMP; 26 Feb 2015 12:12:43 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 13019.41502.bm@omp1027.mail.ne1.yahoo.com X-YMail-OSG: NFYj2sIVM1nU_Kkb0eKqJKhh.2ExUG74vrE0dwExuOGw37Dj9pJ7GWpaAZTC17Y tfwmSL5NELAHwYeH0dMe6iAAD8kOh1xDUQthxGRcgVDhwtzdHD_K8Z4LyMNzCx_ovCEtk94XT32R SyVctzuJWmt8FFHaHxHoeV4CGBMeSqGQkfXoM.ogb4aO2TgDRd8YCrK52MGjAPkHjuU7DgX7sogW WBElIwF_nQUiTAFLFzEBuWOPamYYNorzpt2stK04cRFDnO6WTvjcRS_UOsajy5mxzn0K9Oimy7gO AKoeRA17_M7m.s0uCRY_tDJqWQC1I31wQ7BndBJm1JDL4ziG7IJCduYnsHoVYDMIKqjhCtZiA58T 0pbP0fi.AUG1onO2QL3Vfbp4DePUSi8evF4MoEMm_zzTS8sRE3yvNA6JNkPzChERClfOXq2mv9n0 9lnC4eHMeUr1SyvSY70TCruy7vzzUbB9AuYjyF_vxJxznpGq0 Received: by 98.138.105.240; Thu, 26 Feb 2015 12:12:42 +0000 Date: Thu, 26 Feb 2015 12:12:41 +0000 (UTC) From: Nomad Esst Reply-To: Nomad Esst To: "freebsd-drivers@freebsd.org" Message-ID: <1852835618.385915.1424952761541.JavaMail.yahoo@mail.yahoo.com> Subject: Changing gre interface nam MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 12:16:07 -0000 Hi allI want to change "gre" interface name to e.g. "zun" by editing gre source codes, how can I do so?Thanks in advance ... From owner-freebsd-drivers@FreeBSD.ORG Thu Feb 26 14:14:08 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 19FADE7D for ; Thu, 26 Feb 2015 14:14:08 +0000 (UTC) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DA932BAA for ; Thu, 26 Feb 2015 14:14:07 +0000 (UTC) Received: by padfb1 with SMTP id fb1so14236551pad.8 for ; Thu, 26 Feb 2015 06:14:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=nmJ6F3KOQ0i0Ti2MgXqVTPxYDbEK1we/pVsQHkK74d8=; b=lov95oWIQ4QQmP5MN/wXRziFPcdQctoPIJPiV+stEFDm3iqJ9DC4S6vdAhrlZ01hcI DqZnlBwG8dgSFWyB2dLQ4g/QY090N78FGQ2dgjQ1I5TMB+JNI87U4hzBG4dzsYTmFw+Q siKYX+U3aYbHXuRqdHFEbwJjT8nyb7gBkAty/ajmcPU/UDSySUWZ4luug2F7D9KRB3aV KwO95sOTly9tPsac95wMokhU/li8v0n9xL49oQTXR6rF1+o9ty6n7xdryabT3S4/LDnT oUTKAsVClAafHj1o0eC1tjJvScnWAQEOj72P7Ag6GFsMKwVIZ4JWeN/FlPZCc0WaAeEn v33A== X-Gm-Message-State: ALoCoQlWxsXMYWkMGd69KyyaGO9d9rOiQ73pG8WkoTeHUa4jJCnFYa6WR3JUyOv0ktU3OYrQokam X-Received: by 10.69.27.42 with SMTP id jd10mr15066282pbd.97.1424959655984; Thu, 26 Feb 2015 06:07:35 -0800 (PST) Received: from [10.64.25.63] ([69.53.236.236]) by mx.google.com with ESMTPSA id ru8sm1196313pbb.20.2015.02.26.06.07.34 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Feb 2015 06:07:35 -0800 (PST) Sender: Warner Losh Subject: Re: Changing gre interface nam Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_AC20D67A-5F04-40D2-A251-29E0AF8F33EB"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b5 From: Warner Losh In-Reply-To: <1852835618.385915.1424952761541.JavaMail.yahoo@mail.yahoo.com> Date: Thu, 26 Feb 2015 07:07:30 -0700 Message-Id: <9B3B4E73-6BE6-41BD-A52B-D4F93C528B6F@bsdimp.com> References: <1852835618.385915.1424952761541.JavaMail.yahoo@mail.yahoo.com> To: Nomad Esst X-Mailer: Apple Mail (2.2070.6) Cc: "freebsd-drivers@freebsd.org" X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 14:14:08 -0000 --Apple-Mail=_AC20D67A-5F04-40D2-A251-29E0AF8F33EB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 26, 2015, at 5:12 AM, Nomad Esst via freebsd-drivers = wrote: >=20 > Hi allI want to change "gre" interface name to e.g. "zun" by editing = gre source codes, how can I do so?Thanks in advance =E2=80=A6 ifconfig can remap it w/o changing the source. If you want to change it in the source, then look at struct ifnet and = how it is initialized in the attach routine. If you don=E2=80=99t know = what this means, then you should go the ifconfig route. Warner --Apple-Mail=_AC20D67A-5F04-40D2-A251-29E0AF8F33EB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJU7yiiAAoJEGwc0Sh9sBEAEbkP/iONGMQpBjhxRj4LajNYMKQd y2IqGdy5kOwnTl8Njw380ck9gCnU4/jl5OU2rR5NCbTjMSPxYpQ6kyXY06uMx7wj T8Mw7Bz1aXbJ6SpmmKqA8evENoG5SrYqEjt+d1fKmnhDqEbHOwrUd3R6ct4nlr9g oL4Wl6SHQG2VfuC39aCqDq2OVH7yMC7HymymFKcRpw0Uz3sjYvg5ROnHbmvWDROZ UkoZdm5/LhFRlGU3WakH2t4ysAbwwGJrKtew7uJSsRIRBH59ck08KfSPRviHz8pn iPnZaETj6VYsAeQIVoY4s/EdZgut/YGkQ9xbDtafw1xMwz5pxsxkYSgduFVAweRz bT8kW4f4cPy2g8xaCPQvJ1sHR6I8IP7hNXl9nCzyLfBukJTnP24XsqxPnqsfSJZC ptGy/r5PraOr5zZ8vuQVD+YcH3VG4L4pAiRZxtCY0pHOs8zCrQ9Gkok7BDbViLgy xsKw70q1DfSwqe7wmubwZ1GPLoXtyixG9p/cxyQg4uXRQIK/XBEj1JpOdlwKyN8C TRMI1INkQ92jcTAV/hkBpfu6mYiW0QGkPlaTuEZA5T6tEV+JMnKrDr/vmSK+Vyb5 v2vjtwLTAsIfgOqK4pVUDQQ1v0zjhfmEc1yJthIiPU2J56SC2mlAKNc1mUc2y3vr AZM+LsbR8pr2QZ6D5XNd =vL/M -----END PGP SIGNATURE----- --Apple-Mail=_AC20D67A-5F04-40D2-A251-29E0AF8F33EB-- From owner-freebsd-drivers@FreeBSD.ORG Thu Feb 26 17:15:30 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 71560886 for ; Thu, 26 Feb 2015 17:15:30 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4A69665A for ; Thu, 26 Feb 2015 17:15:30 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-54-116-245.nwrknj.fios.verizon.net [173.54.116.245]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 37D1DB913; Thu, 26 Feb 2015 12:15:29 -0500 (EST) From: John Baldwin To: freebsd-drivers@freebsd.org, Nomad Esst Subject: Re: Changing gre interface nam Date: Thu, 26 Feb 2015 07:51:19 -0500 Message-ID: <26480004.bulZaxa5Hj@ralph.baldwin.cx> User-Agent: KMail/4.14.2 (FreeBSD/10.1-STABLE; KDE/4.14.2; amd64; ; ) In-Reply-To: <1852835618.385915.1424952761541.JavaMail.yahoo@mail.yahoo.com> References: <1852835618.385915.1424952761541.JavaMail.yahoo@mail.yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 26 Feb 2015 12:15:29 -0500 (EST) X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 17:15:30 -0000 On Thursday, February 26, 2015 12:12:41 PM Nomad Esst via freebsd-drivers wrote: > Hi allI want to change "gre" interface name to e.g. "zun" by editing gre > source codes, how can I do so?Thanks in advance ... Change the 'grename' constant variable. -- John Baldwin