Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2012 09:13:01 +0400
From:      Stanislav Zaharov <root.vagner@gmail.com>
To:        Eitan Adler <lists@eitanadler.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: sockstat.c
Message-ID:  <CAFDDX6_DhOOm8oC_wTPz5JttLbsCZ9mDHQWtooG8qi0JHjnDaA@mail.gmail.com>
In-Reply-To: <CAF6rxgns6VSKk=zyLQNvv0m_ZGB3w15bsVOeQFtDT0mKpcaamw@mail.gmail.com>
References:  <CAFDDX6_eYwfrV6et4w%2B2%2Bcy3hGuUTY4y3Rj8BHcU_cLOTdWL%2Bg@mail.gmail.com> <CAF6rxgns6VSKk=zyLQNvv0m_ZGB3w15bsVOeQFtDT0mKpcaamw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--047d7b33d664e273ca04c2f49178
Content-Type: text/plain; charset=UTF-8

Sorry, patch now as an attachment

On Thu, Jun 21, 2012 at 3:55 AM, Eitan Adler <lists@eitanadler.com> wrote:

> On 20 June 2012 16:48, Stanislav Zaharov <root.vagner@gmail.com> wrote:
> > Hi all!
> > I changed the sockstat.c, function display() - added a resize of fields,
> > depending on the length of the data. Can I suggest you look at the
> > resulting source
> > code?
>
> no patch is attached. Can you resend or upload somewhere and give the url?
>
>
> --
> Eitan Adler
>



-- 
Dear                          ,



Respectfully,
Stanislav Putrya
System & network administrator
LTD "RMK Kovsh"
icq: 328585847
e-mail: root.vagner@gmail.com
e-mail: vagner_rider@bk.ru

--047d7b33d664e273ca04c2f49178
Content-Type: application/octet-stream; name="sockstat.patch"
Content-Disposition: attachment; filename="sockstat.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_h3pdl6qe0

KioqIC91c3Ivc3JjL3Vzci5iaW4vc29ja3N0YXQvc29ja3N0YXQuYwkyMDExLTExLTExIDA4OjIw
OjIyLjAwMDAwMDAwMCArMDQwMAotLS0gL3Vzci9zcmMvc29ja3N0YXQuYwkyMDEyLTA2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KSAhPSAtMSkKICAJCXN3aXRjaCAobykgewogIAkJY2FzZSAnNCc6CiAg
CQkJb3B0XzQgPSAxOwogIAkJCWJyZWFrOwogIAkJY2FzZSAnNic6CioqKioqKioqKioqKioqKgoq
KiogNzExLDcyMCAqKioqCi0tLSA4MjAsODMyIC0tLS0KICAJCQlvcHRfbCA9IDE7CiAgCQkJYnJl
YWs7CiAgCQljYXNlICdwJzoKICAJCQlwYXJzZV9wb3J0cyhvcHRhcmcpOwogIAkJCWJyZWFrOwor
IAkJY2FzZSAncic6CisgCQkJb3B0X3IgPSAxOworIAkJCWJyZWFrOwogIAkJY2FzZSAnUCc6CiAg
CQkJcHJvdG9zX2RlZmluZWQgPSBwYXJzZV9wcm90b3Mob3B0YXJnKTsKICAJCQlicmVhazsKICAJ
CWNhc2UgJ3UnOgogIAkJCW9wdF91ID0gMTsK
--047d7b33d664e273ca04c2f49178--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDDX6_DhOOm8oC_wTPz5JttLbsCZ9mDHQWtooG8qi0JHjnDaA>