netlink_unspecified.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. // +build !linux
  2. package netlink
  3. import "net"
  4. func LinkSetUp(link Link) error {
  5. return ErrNotImplemented
  6. }
  7. func LinkSetDown(link Link) error {
  8. return ErrNotImplemented
  9. }
  10. func LinkSetMTU(link Link, mtu int) error {
  11. return ErrNotImplemented
  12. }
  13. func LinkSetMaster(link Link, master *Link) error {
  14. return ErrNotImplemented
  15. }
  16. func LinkSetNsPid(link Link, nspid int) error {
  17. return ErrNotImplemented
  18. }
  19. func LinkSetNsFd(link Link, fd int) error {
  20. return ErrNotImplemented
  21. }
  22. func LinkSetName(link Link, name string) error {
  23. return ErrNotImplemented
  24. }
  25. func LinkSetAlias(link Link, name string) error {
  26. return ErrNotImplemented
  27. }
  28. func LinkSetHardwareAddr(link Link, hwaddr net.HardwareAddr) error {
  29. return ErrNotImplemented
  30. }
  31. func LinkSetVfHardwareAddr(link Link, vf int, hwaddr net.HardwareAddr) error {
  32. return ErrNotImplemented
  33. }
  34. func LinkSetVfVlan(link Link, vf, vlan int) error {
  35. return ErrNotImplemented
  36. }
  37. func LinkSetVfTxRate(link Link, vf, rate int) error {
  38. return ErrNotImplemented
  39. }
  40. func LinkSetNoMaster(link Link) error {
  41. return ErrNotImplemented
  42. }
  43. func LinkSetMasterByIndex(link Link, masterIndex int) error {
  44. return ErrNotImplemented
  45. }
  46. func LinkSetXdpFd(link Link, fd int) error {
  47. return ErrNotImplemented
  48. }
  49. func LinkByName(name string) (Link, error) {
  50. return nil, ErrNotImplemented
  51. }
  52. func LinkByAlias(alias string) (Link, error) {
  53. return nil, ErrNotImplemented
  54. }
  55. func LinkByIndex(index int) (Link, error) {
  56. return nil, ErrNotImplemented
  57. }
  58. func LinkSetHairpin(link Link, mode bool) error {
  59. return ErrNotImplemented
  60. }
  61. func LinkSetGuard(link Link, mode bool) error {
  62. return ErrNotImplemented
  63. }
  64. func LinkSetFastLeave(link Link, mode bool) error {
  65. return ErrNotImplemented
  66. }
  67. func LinkSetLearning(link Link, mode bool) error {
  68. return ErrNotImplemented
  69. }
  70. func LinkSetRootBlock(link Link, mode bool) error {
  71. return ErrNotImplemented
  72. }
  73. func LinkSetFlood(link Link, mode bool) error {
  74. return ErrNotImplemented
  75. }
  76. func LinkAdd(link Link) error {
  77. return ErrNotImplemented
  78. }
  79. func LinkDel(link Link) error {
  80. return ErrNotImplemented
  81. }
  82. func SetHairpin(link Link, mode bool) error {
  83. return ErrNotImplemented
  84. }
  85. func SetGuard(link Link, mode bool) error {
  86. return ErrNotImplemented
  87. }
  88. func SetFastLeave(link Link, mode bool) error {
  89. return ErrNotImplemented
  90. }
  91. func SetLearning(link Link, mode bool) error {
  92. return ErrNotImplemented
  93. }
  94. func SetRootBlock(link Link, mode bool) error {
  95. return ErrNotImplemented
  96. }
  97. func SetFlood(link Link, mode bool) error {
  98. return ErrNotImplemented
  99. }
  100. func LinkList() ([]Link, error) {
  101. return nil, ErrNotImplemented
  102. }
  103. func AddrAdd(link Link, addr *Addr) error {
  104. return ErrNotImplemented
  105. }
  106. func AddrDel(link Link, addr *Addr) error {
  107. return ErrNotImplemented
  108. }
  109. func AddrList(link Link, family int) ([]Addr, error) {
  110. return nil, ErrNotImplemented
  111. }
  112. func RouteAdd(route *Route) error {
  113. return ErrNotImplemented
  114. }
  115. func RouteDel(route *Route) error {
  116. return ErrNotImplemented
  117. }
  118. func RouteList(link Link, family int) ([]Route, error) {
  119. return nil, ErrNotImplemented
  120. }
  121. func XfrmPolicyAdd(policy *XfrmPolicy) error {
  122. return ErrNotImplemented
  123. }
  124. func XfrmPolicyDel(policy *XfrmPolicy) error {
  125. return ErrNotImplemented
  126. }
  127. func XfrmPolicyList(family int) ([]XfrmPolicy, error) {
  128. return nil, ErrNotImplemented
  129. }
  130. func XfrmStateAdd(policy *XfrmState) error {
  131. return ErrNotImplemented
  132. }
  133. func XfrmStateDel(policy *XfrmState) error {
  134. return ErrNotImplemented
  135. }
  136. func XfrmStateList(family int) ([]XfrmState, error) {
  137. return nil, ErrNotImplemented
  138. }
  139. func NeighAdd(neigh *Neigh) error {
  140. return ErrNotImplemented
  141. }
  142. func NeighSet(neigh *Neigh) error {
  143. return ErrNotImplemented
  144. }
  145. func NeighAppend(neigh *Neigh) error {
  146. return ErrNotImplemented
  147. }
  148. func NeighDel(neigh *Neigh) error {
  149. return ErrNotImplemented
  150. }
  151. func NeighList(linkIndex, family int) ([]Neigh, error) {
  152. return nil, ErrNotImplemented
  153. }
  154. func NeighDeserialize(m []byte) (*Neigh, error) {
  155. return nil, ErrNotImplemented
  156. }
  157. func SocketGet(local, remote net.Addr) (*Socket, error) {
  158. return nil, ErrNotImplemented
  159. }