diff --git a/gtp.c b/gtp.c index 338e351..5d47f56 100644 --- a/gtp.c +++ b/gtp.c @@ -27,9 +27,6 @@ #include "gtp.h" #include "gtp_nl.h" -/* implementation-specific definitions */ - -/* FIXME: initialize this !! */ static uint32_t gtp_h_initval; struct gsn { @@ -1196,6 +1193,8 @@ static int __init gtp_init(void) { int err; + get_random_bytes(>p_h_initval, sizeof(gtp_h_initval)); + err = genl_register_family_with_ops(>p_genl_family, gtp_genl_ops); if (err < 0) return err;