summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4772bdd)
SCCS-vsn: sys/vax/if/if_en.c 4.25
SCCS-vsn: sys/vax/if/if_en.c 4.26
-/* if_en.c 4.24 81/12/22 */
+/* if_en.c 4.26 81/12/22 */
es->es_if.if_net = ui->ui_flags;
es->es_if.if_host[0] =
(~(((struct endevice *)eninfo[ui->ui_unit]->ui_addr)->en_addr)) & 0xff;
es->es_if.if_net = ui->ui_flags;
es->es_if.if_host[0] =
(~(((struct endevice *)eninfo[ui->ui_unit]->ui_addr)->en_addr)) & 0xff;
+#ifdef ENKLUDGE
+ if (es->es_if.if_net == 10) {
+ es->es_if.if_host[0] <<= 16;
+ es->es_if.if_host[0] |= 0x4e;
+ }
+#endif
es->es_if.if_addr =
if_makeaddr(es->es_if.if_net, es->es_if.if_host[0]);
es->es_if.if_init = eninit;
es->es_if.if_addr =
if_makeaddr(es->es_if.if_net, es->es_if.if_host[0]);
es->es_if.if_init = eninit;
register struct ip *ip = mtod(m0, struct ip *);
int off;
register struct ip *ip = mtod(m0, struct ip *);
int off;
dest = ip->ip_dst.s_addr >> 24;
dest = ip->ip_dst.s_addr >> 24;
+#else
+ dest = (ip->ip_dst.s_addr >> 8) & 0xff;
+#endif
off = ntohs((u_short)ip->ip_len) - m->m_len;
if (off > 0 && (off & 0x1ff) == 0 && m->m_off >= MMINOFF + 2) {
type = ENPUP_TRAIL + (off>>9);
off = ntohs((u_short)ip->ip_len) - m->m_len;
if (off > 0 && (off & 0x1ff) == 0 && m->m_off >= MMINOFF + 2) {
type = ENPUP_TRAIL + (off>>9);