diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-24 18:12:42 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-24 18:56:06 +0100 |
| commit | 57541e29d9d7fba916a77292d80e8f35a132bcb4 (patch) | |
| tree | a9c4bb734d0fad1c0e68286481bdeaacfb0b7eff /sys/linux/init.go | |
| parent | 309bb18442e6e224837d85fdedfe93f58233fc45 (diff) | |
sys/linux: add basic X25 descriptions
Diffstat (limited to 'sys/linux/init.go')
| -rw-r--r-- | sys/linux/init.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/linux/init.go b/sys/linux/init.go index 5c40e566f..ce317e626 100644 --- a/sys/linux/init.go +++ b/sys/linux/init.go @@ -30,6 +30,7 @@ func InitTarget(target *prog.Target) { AF_NFC: target.GetConst("AF_NFC"), AF_LLC: target.GetConst("AF_LLC"), AF_BLUETOOTH: target.GetConst("AF_BLUETOOTH"), + AF_X25: target.GetConst("AF_X25"), AF_AX25: target.GetConst("AF_AX25"), AF_NETROM: target.GetConst("AF_NETROM"), AF_ROSE: target.GetConst("AF_ROSE"), @@ -114,6 +115,7 @@ type arch struct { AF_NFC uint64 AF_LLC uint64 AF_BLUETOOTH uint64 + AF_X25 uint64 AF_AX25 uint64 AF_NETROM uint64 AF_ROSE uint64 @@ -183,7 +185,7 @@ func (arch *arch) sanitizeCall(c *prog.Call) { family := c.Args[0].(*prog.ConstArg) switch uint64(uint32(family.Val)) { case arch.AF_NFC, arch.AF_LLC, arch.AF_BLUETOOTH, - arch.AF_AX25, arch.AF_NETROM, arch.AF_ROSE: + arch.AF_X25, arch.AF_AX25, arch.AF_NETROM, arch.AF_ROSE: default: family.Val = ^uint64(0) } |
