diff options
Diffstat (limited to 'tapset/inet_sock.stp')
-rw-r--r-- | tapset/inet_sock.stp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tapset/inet_sock.stp b/tapset/inet_sock.stp index 33de9775..3962f5a1 100644 --- a/tapset/inet_sock.stp +++ b/tapset/inet_sock.stp @@ -16,7 +16,11 @@ function inet_get_local_port:long(sock:long) %(kernel_v < "2.6.11" %? port = @cast(sock, "inet_sock", "kernel")->inet->num; %: +%(kernel_v < "2.6.33" %? port = @cast(sock, "inet_sock", "kernel")->num; +%: + port = @cast(sock, "inet_sock", "kernel")->inet_num; +%) %) return port; } @@ -27,7 +31,11 @@ function inet_get_ip_source:string(sock:long) %(kernel_v < "2.6.11" %? daddr = @cast(sock, "inet_sock", "kernel")->inet->daddr; %: +%(kernel_v < "2.6.33" %? daddr = @cast(sock, "inet_sock", "kernel")->daddr; +%: + daddr = @cast(sock, "inet_sock", "kernel")->inet_daddr; +%) %) return daddr_to_string(daddr); } |