Xtables-addons: man/SYSRQ sample script

Message ID alpine.LNX.2.01.1208231511560.32157@frira.zrqbmnf.qr
State Not Applicable
Headers show

Commit Message

Jan Engelhardt Aug. 23, 2012, 1:12 p.m.
On Tuesday 2012-08-14 11:48, Jan Krcmar wrote:
>please add the information to the man page of xtables-addons section SYSRQ
>using ipv6 one must use non-shortened format, otherwise it does not work

The page now looks like this.

To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


diff --git a/extensions/libxt_SYSRQ.man b/extensions/libxt_SYSRQ.man
index ab230a8..ade9f13 100644
--- a/extensions/libxt_SYSRQ.man
+++ b/extensions/libxt_SYSRQ.man
@@ -62,7 +62,7 @@  password="password"
 seqno="$(date +%s)"
 salt="$(dd bs=12 count=1 if=/dev/urandom 2>/dev/null |
     openssl enc \-base64)"
 req="$req,$(echo \-n "$req,$ipaddr,$password" | sha1sum | cut \-c1\-40)"
@@ -75,8 +75,8 @@  sysrq key can be used at once, but bear in mind that, for example, a sync may
 not complete before a subsequent reboot or poweroff.
 An IPv4 address should have no leading zeros, an IPv6 address should
-be in the form recommended by RFC 5952.  The debug option will log the
-correct form of the address.
+be in the full expanded form (as shown above). The debug option will cause
+output to be emitted in the same form.
 The hashing scheme should be enough to prevent mis-use of SYSRQ in many
 environments, but it is not perfect: take reasonable precautions to