Hi: Could I ask a question about protocol selection? If I use dev_add_pack()(/net/core/dev.c) to add a packet_type, and its protocol field is ETH_P_IP. I wonder which protocol, IP or my own function? I have traced source code but still can't figure it out. Can anyone help me? best regards Yi-Wen ---------- Original Message ----------- From: "Suvidh Mathur" <Suvidh.Mathur@lntinfotech.com> To: "Adam Flizikowski" <adam_fli@poczta.onet.pl> Cc: <linux-net@vger.kernel.org> Sent: Fri, 11 Jul 2003 19:53:11 +0530 Subject: RE: dev.c - protocol selection - why two for's > Adam, > I do not think this place is for asking your coding related porblems. > > Btw, I'm not sure what you are trying to do in the code snippet, but > the & on the first argument makes it a double pointer. Probably not > what you require. > > Suvidh > > Friday, 11 July, 2003 7:24 PM > To: "Suvidh Mathur" <Suvidh.Mathur@lntinfotech.com> > cc: <linux-net@vger.kernel.org> > From: "Adam Flizikowski" <adam_fli@poczta.onet.pl> > Subject: RE: dev.c - protocol selection - why two for's > > Suvidh, > > thanks for the explanation (!). i wanted to be sure i am doing my debuging > modifications right. > > BTW do you know, why my compiler could complain when i do sth like > this in network device driver - 8159too.c > > ******************************************** > char *moj_bufor; //at the beginning of the file > > moj_bufor = vmalloc(4000); > > /* somewhere later in the code but inside an existinf fucntion def */ > > sprintf( &(moj_bufor+offset), "some text"); // offset is taken from > strlen(moj_bufor) > > ******************************************** > ^ > ..it says: " invalid lvalue in unary `&' " > > what i did wrong? > > thanks in advance. > > best regards > > adam > > - > : send the line "unsubscribe linux-net" > in the body of a message to majordomo@vger.kernel.org More majordomo > info at http://vger.kernel.org/majordomo-info.html ------- End of Original Message ------- - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html