/* * The lower layers may not require more space, ever. Make sure it's * enough.
*/ #define MAX_PHONET_HEADER (8 + MAX_HEADER)
/* * Every Phonet* socket has this structure first in its * protocol-specific structure under name c.
*/ struct pn_sock { struct sock sk;
u16 sobject;
u16 dobject;
u8 resource;
};
/* * Get the other party's sockaddr from received skb. The skb begins * with a Phonet header.
*/ staticinline void pn_skb_get_src_sockaddr(struct sk_buff *skb, struct sockaddr_pn *sa)
{ struct phonethdr *ph = pn_hdr(skb);
u16 obj = pn_object(ph->pn_sdev, ph->pn_sobj);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.