Re: [go-nuts] Create methods for structs at runtime

2017-06-17 Thread Dat Huynh
Hi Ian, Could you please let me know if there is any plan to fix the limitation? Indeed, I am considering if it is worthwhile to rewrite my projects in Go. I have hundreds of interfaces in my Java apps and this feature will help me a lot. Thank you very much. Sincerely, Dat. On Wed, Jun 1

Re: [go-nuts] Writing an ethernet frame into the OS

2017-06-17 Thread Dave Cheney
That tap/tun interface is a good way of do this. It's built into linux and there is a driver for osx. There are packages available in godoc.org, and it's not hard to write your own (as you literally write raw frames to the tun interface) -- You received this message because you are subscribed

Re: [go-nuts] Writing an ethernet frame into the OS

2017-06-17 Thread fusi . enrico . maria
Hi Michael thanks again for the answer. Also I found the answer by myself. Apparently, it was not a problem between Read() and Write(). The issue is that https://github.com/songgao/water

Re: [go-nuts] Writing an ethernet frame into the OS

2017-06-17 Thread Michael Jones
Oh, no problem. English is my first language but that is no special advantage in understanding what people mean--I misunderstand my wife all the time. It sounds like you want to inject packets into the operating system's inbound stream. Look here: https://stackoverflow.com/questions/2516314/linux

Re: [go-nuts] Writing an ethernet frame into the OS

2017-06-17 Thread fusi . enrico . maria
Hi Michael I do suspect my bad English made my request unclear, my apologies for that. Let me clarify. basically I don"t care of the payload of the frame. What I am trying to do is to have a program running locally to be able to take a valid frame -from somewhere - and inject into the local OS

Re: [go-nuts] Writing an ethernet frame into the OS

2017-06-17 Thread Michael Jones
FYI: https://godoc.org/github.com/google/gopacket On Sat, Jun 17, 2017 at 9:00 AM, Michael Jones wrote: > Sorry to say that I don't have a direct answer for you. > > However, I happen to be doing some packet analysis at the moment--focused > first in the analysis part--and have recently started

Re: [go-nuts] Writing an ethernet frame into the OS

2017-06-17 Thread Michael Jones
Sorry to say that I don't have a direct answer for you. However, I happen to be doing some packet analysis at the moment--focused first in the analysis part--and have recently started looking for helpful frameworks/libraries into which my code can be embedded. What I found so far is: https://gith

[go-nuts] Writing an ethernet frame into the OS

2017-06-17 Thread fusi . enrico . maria
Hi All anyone knows how to write an ethernet frame into a device, in a way the operating system thinks is to be received? Let me explain the issue: I am writing a software (for Linux only) which creates a tap device on machine A, reads the frames, encrypts and sends them via the network to the

Re: [go-nuts] Is it safe to invoke len(channel) on multi-gorountine

2017-06-17 Thread julio . nemesis
I almost got into the trap with this, trying to prioritize selected channel... https://play.golang.org/p/VOrPwx7HC_ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email