207 Sc_id uint32 |
207 Sc_id uint32 |
208 Sc_unit uint32 |
208 Sc_unit uint32 |
209 Sc_reserved [5]uint32 |
209 Sc_reserved [5]uint32 |
210 } |
210 } |
211 |
211 |
|
212 type RawSockaddrVM struct { |
|
213 Len uint8 |
|
214 Family uint8 |
|
215 Reserved1 uint16 |
|
216 Port uint32 |
|
217 Cid uint32 |
|
218 } |
|
219 |
|
220 type XVSockPCB struct { |
|
221 Xv_len uint32 |
|
222 Xv_vsockpp uint64 |
|
223 Xvp_local_cid uint32 |
|
224 Xvp_local_port uint32 |
|
225 Xvp_remote_cid uint32 |
|
226 Xvp_remote_port uint32 |
|
227 Xvp_rxcnt uint32 |
|
228 Xvp_txcnt uint32 |
|
229 Xvp_peer_rxhiwat uint32 |
|
230 Xvp_peer_rxcnt uint32 |
|
231 Xvp_last_pid int32 |
|
232 Xvp_gencnt uint64 |
|
233 Xv_socket XSocket |
|
234 _ [4]byte |
|
235 } |
|
236 |
|
237 type XSocket struct { |
|
238 Xso_len uint32 |
|
239 Xso_so uint32 |
|
240 So_type int16 |
|
241 So_options int16 |
|
242 So_linger int16 |
|
243 So_state int16 |
|
244 So_pcb uint32 |
|
245 Xso_protocol int32 |
|
246 Xso_family int32 |
|
247 So_qlen int16 |
|
248 So_incqlen int16 |
|
249 So_qlimit int16 |
|
250 So_timeo int16 |
|
251 So_error uint16 |
|
252 So_pgid int32 |
|
253 So_oobmark uint32 |
|
254 So_rcv XSockbuf |
|
255 So_snd XSockbuf |
|
256 So_uid uint32 |
|
257 } |
|
258 |
|
259 type XSocket64 struct { |
|
260 Xso_len uint32 |
|
261 _ [8]byte |
|
262 So_type int16 |
|
263 So_options int16 |
|
264 So_linger int16 |
|
265 So_state int16 |
|
266 _ [8]byte |
|
267 Xso_protocol int32 |
|
268 Xso_family int32 |
|
269 So_qlen int16 |
|
270 So_incqlen int16 |
|
271 So_qlimit int16 |
|
272 So_timeo int16 |
|
273 So_error uint16 |
|
274 So_pgid int32 |
|
275 So_oobmark uint32 |
|
276 So_rcv XSockbuf |
|
277 So_snd XSockbuf |
|
278 So_uid uint32 |
|
279 } |
|
280 |
|
281 type XSockbuf struct { |
|
282 Cc uint32 |
|
283 Hiwat uint32 |
|
284 Mbcnt uint32 |
|
285 Mbmax uint32 |
|
286 Lowat int32 |
|
287 Flags int16 |
|
288 Timeo int16 |
|
289 } |
|
290 |
|
291 type XVSockPgen struct { |
|
292 Len uint32 |
|
293 Count uint64 |
|
294 Gen uint64 |
|
295 Sogen uint64 |
|
296 } |
|
297 |
212 type _Socklen uint32 |
298 type _Socklen uint32 |
213 |
299 |
214 type Xucred struct { |
300 type Xucred struct { |
215 Version uint32 |
301 Version uint32 |
216 Uid uint32 |
302 Uid uint32 |
278 |
364 |
279 type ICMPv6Filter struct { |
365 type ICMPv6Filter struct { |
280 Filt [8]uint32 |
366 Filt [8]uint32 |
281 } |
367 } |
282 |
368 |
283 const ( |
369 type TCPConnectionInfo struct { |
284 SizeofSockaddrInet4 = 0x10 |
370 State uint8 |
285 SizeofSockaddrInet6 = 0x1c |
371 Snd_wscale uint8 |
286 SizeofSockaddrAny = 0x6c |
372 Rcv_wscale uint8 |
287 SizeofSockaddrUnix = 0x6a |
373 _ uint8 |
288 SizeofSockaddrDatalink = 0x14 |
374 Options uint32 |
289 SizeofSockaddrCtl = 0x20 |
375 Flags uint32 |
290 SizeofXucred = 0x4c |
376 Rto uint32 |
291 SizeofLinger = 0x8 |
377 Maxseg uint32 |
292 SizeofIovec = 0x10 |
378 Snd_ssthresh uint32 |
293 SizeofIPMreq = 0x8 |
379 Snd_cwnd uint32 |
294 SizeofIPMreqn = 0xc |
380 Snd_wnd uint32 |
295 SizeofIPv6Mreq = 0x14 |
381 Snd_sbbytes uint32 |
296 SizeofMsghdr = 0x30 |
382 Rcv_wnd uint32 |
297 SizeofCmsghdr = 0xc |
383 Rttcur uint32 |
298 SizeofInet4Pktinfo = 0xc |
384 Srtt uint32 |
299 SizeofInet6Pktinfo = 0x14 |
385 Rttvar uint32 |
300 SizeofIPv6MTUInfo = 0x20 |
386 Txpackets uint64 |
301 SizeofICMPv6Filter = 0x20 |
387 Txbytes uint64 |
|
388 Txretransmitbytes uint64 |
|
389 Rxpackets uint64 |
|
390 Rxbytes uint64 |
|
391 Rxoutoforderbytes uint64 |
|
392 Txretransmitpackets uint64 |
|
393 } |
|
394 |
|
395 const ( |
|
396 SizeofSockaddrInet4 = 0x10 |
|
397 SizeofSockaddrInet6 = 0x1c |
|
398 SizeofSockaddrAny = 0x6c |
|
399 SizeofSockaddrUnix = 0x6a |
|
400 SizeofSockaddrDatalink = 0x14 |
|
401 SizeofSockaddrCtl = 0x20 |
|
402 SizeofSockaddrVM = 0xc |
|
403 SizeofXvsockpcb = 0xa8 |
|
404 SizeofXSocket = 0x64 |
|
405 SizeofXSockbuf = 0x18 |
|
406 SizeofXVSockPgen = 0x20 |
|
407 SizeofXucred = 0x4c |
|
408 SizeofLinger = 0x8 |
|
409 SizeofIovec = 0x10 |
|
410 SizeofIPMreq = 0x8 |
|
411 SizeofIPMreqn = 0xc |
|
412 SizeofIPv6Mreq = 0x14 |
|
413 SizeofMsghdr = 0x30 |
|
414 SizeofCmsghdr = 0xc |
|
415 SizeofInet4Pktinfo = 0xc |
|
416 SizeofInet6Pktinfo = 0x14 |
|
417 SizeofIPv6MTUInfo = 0x20 |
|
418 SizeofICMPv6Filter = 0x20 |
|
419 SizeofTCPConnectionInfo = 0x70 |
302 ) |
420 ) |
303 |
421 |
304 const ( |
422 const ( |
305 PTRACE_TRACEME = 0x0 |
423 PTRACE_TRACEME = 0x0 |
306 PTRACE_CONT = 0x7 |
424 PTRACE_CONT = 0x7 |