Revision 71ca7716 sysdep/unix/krt.c

View differences:

sysdep/unix/krt.c
890 890
  p->p.accept_ra_types = RA_OPTIMAL;
891 891
  p->p.import_control = krt_import_control;
892 892
  p->p.rt_notify = krt_notify;
893

  
893 894
  return &p->p;
894 895
}
895 896

  
......
907 908
    ;
908 909
}
909 910

  
911

  
912
static int
913
krt_get_attr(eattr * a, byte * buf, int buflen UNUSED)
914
{
915
  switch (a->id)
916
  {
917
  case EA_KRT_PREFSRC:
918
    bsprintf(buf, "prefsrc");
919
    return GA_NAME;
920
  case EA_KRT_REALM:
921
    bsprintf(buf, "realm");
922
    return GA_NAME;
923
  default:
924
    return GA_UNKNOWN;
925
  }
926
}
927

  
928

  
910 929
struct protocol proto_unix_kernel = {
911 930
  name:		"Kernel",
912 931
  template:	"kernel%d",
932
  attr_class:	EAP_KRT,
913 933
  preconfig:	krt_preconfig,
914 934
  postconfig:	krt_postconfig,
915 935
  init:		krt_init,
916 936
  start:	krt_start,
917 937
  shutdown:	krt_shutdown,
918 938
  reconfigure:	krt_reconfigure,
939
  get_attr:	krt_get_attr,
919 940
#ifdef KRT_ALLOW_LEARN
920 941
  dump:		krt_dump,
921 942
  dump_attrs:	krt_dump_attrs,

Also available in: Unified diff