Lines Matching defs:protocol
30 * conf->protocol in new_if
117 u16 protocol; /* ethertype, 0 - multiplexed */
223 * o initialize protocol-specific fields of the adapter data space.
238 /* Initialize protocol-specific fields */
328 /* Initialize protocol-specific fields of adapter data space */
391 chan->protocol = conf->protocol ? ETH_P_X25 : ETH_P_IP;
559 * The trick here is to put packet type (Ethertype) into 'protocol' field of
561 * set skb->protocol to 0 and discard packet later.
569 skb->protocol = htons(type);
593 * 1. This routine is called either by the protocol stack or by the "net
596 * protocol stack and can be used for flow control with protocol layer. */
604 chan->protocol = ntohs(skb->protocol);
608 else if (chan->svc && chan->protocol &&
609 chan->protocol != ntohs(skb->protocol)) {
612 card->devname, ntohs(skb->protocol), dev->name);
614 } else if (chan->protocol == ETH_P_IP) {
635 } else { /* chan->protocol == ETH_P_X25 */
759 * decapsulate packet and pass socket buffer to the protocol stack.
802 if ((skb = dev_alloc_skb((chan->protocol == ETH_P_X25 ? 1 : 0) +
812 if (chan->protocol == ETH_P_X25) /* X.25 socket layer control */
817 skb->protocol = htons(chan->protocol);
1107 /* Get protocol statistics. */
1404 if (chan->protocol == ETH_P_X25)
1423 if (chan->protocol == ETH_P_X25)
1493 skb->protocol = x25_type_trans(skb, dev);
1596 printk(KERN_INFO "name: addr: txoff: protocol:\n");
1604 chan->protocol == ETH_P_IP ? "IP" : "X25");